STA: Add support to parse SCSsupport test parameter
Add support to parse and send the SCS support parameter to
wpa_supplicant in order to enable/disable SCS capability.
Signed-off-by: Vinita S. Maloo <vmaloo@codeaurora.org>
diff --git a/sta.c b/sta.c
index 75e580d..949db7f 100644
--- a/sta.c
+++ b/sta.c
@@ -5329,6 +5329,31 @@
}
}
+ val = get_param(cmd, "SCSSupport");
+ if (val) {
+ char buf[30];
+ int disable_scs, len;
+
+ if (strcasecmp(val, "Enable") == 0) {
+ disable_scs = 0;
+ } else if (strcasecmp(val, "Disable") == 0) {
+ disable_scs = 1;
+ } else {
+ sigma_dut_print(dut, DUT_MSG_ERROR,
+ "Invalid SCSsupport parameter");
+ return INVALID_SEND_STATUS;
+ }
+
+ len = snprintf(buf, sizeof(buf), "SET disable_scs_support %d",
+ disable_scs);
+ if (len < 0 || len >= sizeof(buf) ||
+ wpa_command(intf, buf) != 0) {
+ send_resp(dut, conn, SIGMA_ERROR,
+ "ErrorCode,Failed to update SCS support");
+ return STATUS_SENT_ERROR;
+ }
+ }
+
return 1;
}
@@ -8157,6 +8182,7 @@
if (dut->program == PROGRAM_QM) {
wpa_command(intf, "SET interworking 1");
+ wpa_command(intf, "SET disable_scs_support 0");
snprintf(buf, sizeof(buf),
"ip -6 route replace fe80::/64 dev %s table local",
intf);