https://openwrt.org/docs/user-guide/wifi_configuration#wps_options
https://forum.openwrt.org/t/how-to-use-wps-on-linksys-wrt/165148
There were some changes. So this is how it works with 23.05.0-rc2
.
Minimal steps needed to get WPS running:
In /etc/config/wireless
it is important in the wifi-iface
only in the 2.4 GHZ.
option wps_pushbutton '1'
But you can do it with LUCI
as well.
opkg update
# if you remove it, it will not work
# v22
opkg remove wpad-basic-wolfssl
# v23
opkg remove wpad-basic-mbedtls
# it will start working after re-install
# v22
opkg install wpad-wolfssl hostapd-utils
# v23
opkg install wpad-mbedtls hostapd-utils
reboot && exit
# v22
hostapd_cli -i wlan1 wps_pbc
# or v23
hostapd_cli wps_pbc
# or v23
hostapd_cli -i phy1-ap0 wps_pbc
# v22 or
hostapd_cli -i wlan1 wps_pin any $PIN
# v23 or
hostapd_cli wps_pin any $PIN
# v23 or
hostapd_cli -i phy1-ap0 wps_pin any $PIN
# /var/run/hostapd-phy1.conf???
reboot && exit
# regenerate the wifi interface
rm -f /etc/config/wireless
wifi config
iw reg get
iw dev
Do what it says above. Then on router on the bottom right there is the WPS button. Click for like 3 seconds or more and it will work.
config wifi-iface 'default_radio1'
option device 'radio1'
option network 'lan'
option mode 'ap'
option ssid 'your-ssid'
option key 'your-secret'
option encryption 'psk2+ccmp'
option wps_pushbutton '1'