libwifi: mtk: Add wps enrollee. PIN, PBS, stop
Tests done. Status, set pin, and show pin not available for enrollee role
ubus call wifi.wps status '{"vif" : "wlan0"}' hostapd_cli -iwlan0 wps_get_status
ubus call wifi.wps status '{"vif" : "wlan1"}' hostapd_cli -iwlan1 wps_get_status
ubus call wifi.wps status '{"vif" : "wlan1_1"}' //Not available
ubus call wifi.wps stop '{"vif" : "wlan0"}' hostapd_cli -iwlan0 wps_cancel
ubus call wifi.wps stop '{"vif" : "wlan1"}' hostapd_cli -iwlan1 wps_cancel
ubus call wifi.wps stop '{"vif" : "wlan1_1"}' hostapd_cli -iwlan1_1 wps_cancel
ubus call wifi.wps start '{"vif" : "wlan0","mode" : "pbc", "role" : "registrar" }' hostapd_cli -iwlan0 wps_pbc
ubus call wifi.wps start '{"vif" : "wlan1","mode" : "pbc", "role" : "registrar" }' hostapd_cli -iwlan1 wps_pbc
ubus call wifi.wps start '{"vif" : "wlan1_1","mode" : "pbc", "role" : "enrollee" }' hostapd_cli -iwlan1_1 wps_pbc
ubus call wifi.wps start '{"vif" : "wlan0","mode" : "pin", "role" : "registrar" , "pin" : "00001234"}' hostapd_cli -iwlan0 wps_pin any 00001234
ubus call wifi.wps start '{"vif" : "wlan1","mode" : "pin", "role" : "registrar" , "pin" : "00001234"}' hostapd_cli -iwlan1 wps_pin any 00001234
ubus call wifi.wps start '{"vif" : "wlan1_1","mode" : "pin", "role" : "enrollee" , "pin" : "00001234"}' hostapd_cli wps_pin any 00001234
ubus call wifi.wps setpin '{"vif" : "wlan0", "pin" : "00000000"}' hostapd_cli -iwlan0 wps_ap_pin set 00001234
ubus call wifi.wps setpin '{"vif" : "wlan1", "pin" : "00001234"}' hostapd_cli -iwlan1 wps_ap_pin set 00001234
ubus call wifi.wps setpin '{"vif" : "wlan1_1", "pin" : "00001234"}' //Not available
ubus call wifi.wps showpin '{"vif" : "wlan0"}' *hostapd_cli -iwlan0 wps_ap_pin get
ubus call wifi.wps showpin '{"vif" : "wlan1"}' *hostapd_cli -iwlan1 wps_ap_pin get
ubus call wifi.wps showpin '{"vif" : "wlan1_1"}' //Not available
Signed-off-by: Bartlomiej Grzeskowiak bartlomiej.grzeskowiak@iopsys.eu