OpenWrt WPS connection step by step

OpenWrt WPS connection step by step

Here concluded result from many posts.

Warning: Some connection properties can be changed after following configuration. So I recommend backup your wireless configuration in case.

  1. Connect your routerssh root@192.168.1.1
  2. Add wps_pushbutton '1' option to the /etc/config/wireless
  3. opkg update
  4. Remove dependencies opkg remove wpad-basic wpad-basic-wolfssl
  5. Install wpad opkg install wpad hostapd-utils
  6. Restart services service network restart or reboot
  7. Check service status whether active hostapd_cli -i wlan1 wps_get_status
  8. Enable connection order from router hostapd_cli wps_pbc without pressing button
  9. Enable connection order to desired device

Check the result with hostapd_cli -i wlan1 wps_get_status

PBC Status: Disabled
Last WPS result: Success
Peer Address: xx:xx:xx:xx:xx:xx

Your connection paired and established. You don't have to any additional setting, no longer. It will connect automatically after restarting these two devices.

Troubleshot

  • You can not isolate clients in this network, If you do, you do not find your device! So make sure your connection setting don't have option isolate '1' line in your configuration or setting.

  • Sample configuration

    config wifi-device 'radio1'
     option type 'mac80211'
     option path 'platform/ahb/18100000.wmac'
     option band '2g'
     option htmode 'HT20'
     option channel 'auto'
     option txpower '25'
     option cell_density '0'
    
    config wifi-iface 'wifinet2'
     option device 'radio1'
     option mode 'ap'
     option ssid 'desired netwirk ssid'
     option encryption 'psk-mixed'
     option key 'desired netwirk password'
     option network 'lan'
     option wps_pushbutton '1'