hostapd: add support for WPS pushbutton station
authorDaniel Golle <daniel@makrotopia.org>
Thu, 22 Nov 2018 19:53:09 +0000 (20:53 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 12 Dec 2018 08:37:23 +0000 (09:37 +0100)
commitf5753aae233fa64b5d4784ade2cc170f7da539a4
treefe53918ad7ed179876f1e015e655569fdf0b19c1
parent5beedcddc3ad2c6f92c24ce2655a84524ca26594
hostapd: add support for WPS pushbutton station

similar to hostapd, also add a ubus interface for wpa_supplicant
which will allow handling WPS push-button just as it works for hostapd.
In order to have wpa_supplicant running without any network
configuration (so you can use it to retrieve credentials via WPS),
configure wifi-iface in /etc/config/wireless:

  config wifi-iface 'default_radio0'
      option device 'radio0'
      option network 'wwan'
      option mode 'sta'
      option encryption 'wps'

This section will automatically be edited if credentials have
successfully been acquired via WPS.

Size difference (mips_24kc): roughly +4kb for the 'full' variants of
wpa_supplicant and wpad which do support WPS.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
package/network/services/hostapd/Makefile
package/network/services/hostapd/files/hostapd.sh
package/network/services/hostapd/files/wpa_supplicant-basic.config
package/network/services/hostapd/files/wpa_supplicant-full.config
package/network/services/hostapd/files/wpa_supplicant-mini.config
package/network/services/hostapd/files/wpa_supplicant-p2p.config
package/network/services/hostapd/files/wps-hotplug.sh
package/network/services/hostapd/patches/600-ubus_support.patch
package/network/services/hostapd/src/wpa_supplicant/ubus.c [new file with mode: 0644]
package/network/services/hostapd/src/wpa_supplicant/ubus.h [new file with mode: 0644]