STA: Add support for IgnoreH2E_RSNXE_BSSMemSel with DRIVER_WCN

Configure the driver to ignore SAE H2E-only requirement mismatch in
6 GHz BSS connection attempts.

Signed-off-by: Veerendranath Jakkam <vjakkam@codeaurora.org>
diff --git a/sta.c b/sta.c
index 121679a..c1fd492 100644
--- a/sta.c
+++ b/sta.c
@@ -2131,6 +2131,21 @@
 }
 
 
+static int wcn_set_ignore_h2e_rsnxe(struct sigma_dut *dut, const char *intf,
+				    uint8_t cfg)
+{
+#ifdef NL80211_SUPPORT
+	return wcn_wifi_test_config_set_u8(
+		dut, intf,
+		QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE, cfg);
+#else /* NL80211_SUPPORT */
+	sigma_dut_print(dut, DUT_MSG_ERROR,
+			"Ignore SAE H2E requirement mismatch can't be set without NL80211_SUPPORT defined");
+	return -1;
+#endif /* NL80211_SUPPORT */
+}
+
+
 static enum sigma_cmd_result cmd_sta_set_psk(struct sigma_dut *dut,
 					     struct sigma_conn *conn,
 					     struct sigma_cmd *cmd)
@@ -2265,6 +2280,9 @@
 		snprintf(buf, sizeof(buf), "SET ignore_sae_h2e_only %d",
 			 get_enable_disable(val));
 		wpa_command(intf, buf);
+		if (get_driver_type(dut) == DRIVER_WCN)
+			wcn_set_ignore_h2e_rsnxe(dut, intf,
+						 get_enable_disable(val));
 	}
 
 	val = get_param(cmd, "ECGroupID_RGE");
@@ -8972,6 +8990,9 @@
 		 * so allow this to continue. */
 	}
 
+	if (get_driver_type(dut) == DRIVER_WCN)
+		wcn_set_ignore_h2e_rsnxe(dut, intf, 0);
+
 	dut->saquery_oci_freq = 0;
 	dut->prev_disable_scs_support = 0;
 	dut->prev_disable_mscs_support = 0;