Disable WPS when starting 60G PCP
Make sure WPS is disabled when running 60G PCP tests since it may create
conflicts with some tests.
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
diff --git a/sta.c b/sta.c
index fe1a1e7..ebe34ce 100644
--- a/sta.c
+++ b/sta.c
@@ -4884,7 +4884,14 @@
}
sigma_dut_print(dut, DUT_MSG_DEBUG,
- "Supplicant set network with mode 2");
+ "Supplicant set network with mode 2. network_id %d",
+ net_id);
+
+ if (set_network(ifname, net_id, "wps_disabled", "0") < 0) {
+ sigma_dut_print(dut, DUT_MSG_INFO,
+ "Failed to set supplicant to WPS ENABLE");
+ return SIGMA_DUT_ERROR_CALLER_SEND_STATUS;
+ }
val = get_param(cmd, "Security");
if (val && strcasecmp(val, "OPEN") == 0) {