sta_set_rfeature: Add support to Deauth_Per_SAQueryResp for WCN driver
Add support to disable sending Deauthentication frame on SA Query
Response timeout for WCN driver.
Signed-off-by: Veerendranath Jakkam <vjakkam@codeaurora.org>
diff --git a/sta.c b/sta.c
index 3f243e0..6312dbd 100644
--- a/sta.c
+++ b/sta.c
@@ -12361,6 +12361,23 @@
}
+static int wcn_sta_ignore_sa_query_timeout(struct sigma_dut *dut,
+ const char *intf,
+ uint8_t ignore_sa_query_timeout)
+{
+#ifdef NL80211_SUPPORT
+ return wcn_wifi_test_config_set_u8(
+ dut, intf,
+ QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT,
+ ignore_sa_query_timeout);
+#else /* NL80211_SUPPORT */
+ sigma_dut_print(dut, DUT_MSG_ERROR,
+ "Ignore SA Query timeout can't be set without NL80211_SUPPORT defined");
+ return -1;
+#endif /* NL80211_SUPPORT */
+}
+
+
static enum sigma_cmd_result
cmd_sta_set_rfeature_wpa3(const char *intf, struct sigma_dut *dut,
struct sigma_conn *conn,
@@ -12454,6 +12471,18 @@
}
}
+ val = get_param(cmd, "Deauth_Per_SAQueryResp");
+ if (val && atoi(val) == 0) {
+ if (wifi_chip_type == DRIVER_WCN) {
+ if (wcn_sta_ignore_sa_query_timeout(dut, intf, 1)) {
+ send_resp(dut, conn, SIGMA_ERROR,
+ "errorCode,Failed to set ignore SA Query timeout");
+ return STATUS_SENT_ERROR;
+ }
+ return SUCCESS_SEND_STATUS;
+ }
+ }
+
send_resp(dut, conn, SIGMA_ERROR,
"errorCode,Unsupported WPA3 rfeature");
return STATUS_SENT_ERROR;