Skip to content

wps: Set pin for enrollee.

Bartlomiej Grzeskowiak requested to merge wps_pin_for_enrollee into devel

Return error if pin field is empty.

Signed-off-by: Bartlomiej Grzeskowiak bartlomiej.grzeskowiak@iopsys.eu

Tested with:
Command failed: Invalid argument:
ubus call wifi.wps start '{"vif" : "wlan1_1","mode" : "pin"}'
ubus call wifi.wps start '{"vif" : "wlan1_1","mode" : "pin", "role" : "registrar"}'
ubus call wifi.wps start '{"vif" : "wlan0","mode" : "pin", "role" : "enrollee"}'

Correct:
ubus call wifi.wps start '{"vif" : "wlan0","mode" : "pin", "role" : "registrar" , "pin" : "00001234"}'
ubus call wifi.wps start '{"vif" : "wlan1","mode" : "pin", "role" : "registrar" , "pin" : "00001234"}'
ubus call wifi.wps start '{"vif" : "wlan1_1","mode" : "pin", "role" : "enrollee" , "pin" : "00001234"}'

Merge request reports