Forced WPS version support for 60G
Add support for forcing WPS version sent in WPS IE. This is needed for
60 GHz WPS tests.
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
diff --git a/sta.c b/sta.c
index 7989b69..4aae8cb 100644
--- a/sta.c
+++ b/sta.c
@@ -3223,6 +3223,10 @@
dut->force_rsn_ie = FORCE_RSN_IE_ADD;
}
+ val = get_param(cmd, "WpsVersion");
+ if (val)
+ dut->wps_forced_version = get_wps_forced_version(dut, val);
+
val = get_param(cmd, "WscEAPFragment");
if (val && strcasecmp(val, "enable") == 0)
dut->eap_fragment = 1;
@@ -7051,6 +7055,8 @@
wpa_command(intf, "ERP_FLUSH");
wpa_command(intf, "SET radio_disabled 0");
+ dut->wps_forced_version = 0;
+
if (dut->wsc_fragment) {
dut->wsc_fragment = 0;
wpa_command(intf, "SET device_name Test client");