Skip to main content

Overview

WPS (Wi-Fi Protected Setup) simplifies connecting to a network without entering a passphrase. Two methods exist: Push Button Configuration (PBC) and PIN entry.

Push Button (PBC)

Physical button on router triggers a 2-minute association window. 1. Start wpa_supplicant:
2. Trigger PBC:
Press the WPS button on the router within 2 minutes. 3. Get IP:

PIN Method

1. Start wpa_supplicant:
2. Get BSSID of target:
3. Connect with PIN:
Leave PIN blank to generate one automatically:
4. Get IP:

wpa_supplicant Base Config

Minimal config file needed to run wpa_supplicant:
Save as /etc/wpa_supplicant/wpa_supplicant.conf.
WPS PIN method requires the router to have the Registrar role. Some routers disable PIN after repeated failures (lockout protection).