openwrt 开启wps

ref:

https://gist.github.com/alghanmi/4de45337ca517ebe3a56

https://www.cxyzjd.com/article/bingyu9875/50857500

opkg update
opkg remove wpad-mini wpad-basic
opkg install wpad hostapd-utils

重新启动路由器,进入无线设置,编辑无线连接,无线安全页面卡上有”

需要执行的脚本或者命令:
hostapd_cli -i wlan0 wps_pbc
[email protected]:/# hostapd_cli -i wlan0 wps_pbc
OK

或者

[email protected]:~# hostapd_cli -p /var/run/hostapd-phy0 wps_pbc