|
@@ -7582,6 +7582,8 @@ wlan_hdd_wifi_test_config_policy[
|
|
|
= {.type = NLA_U8},
|
|
|
[QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE]
|
|
|
= {.type = NLA_U8},
|
|
|
+ [QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE] = {
|
|
|
+ .type = NLA_U8},
|
|
|
};
|
|
|
|
|
|
/**
|
|
@@ -10877,6 +10879,32 @@ static int hdd_test_config_6ghz_security_test_mode(struct hdd_context *hdd_ctx,
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
+#ifdef WLAN_FEATURE_11BE_MLO
|
|
|
+static int hdd_test_config_emlsr_mode(struct hdd_context *hdd_ctx,
|
|
|
+ struct nlattr *attr)
|
|
|
+
|
|
|
+{
|
|
|
+ uint8_t cfg_val;
|
|
|
+
|
|
|
+ cfg_val = nla_get_u8(attr);
|
|
|
+ hdd_info("11be op mode setting %d", cfg_val);
|
|
|
+ if (cfg_val) {
|
|
|
+ hdd_debug("eMLSR mode is enabled");
|
|
|
+ ucfg_mlme_set_emlsr_mode_enabled(hdd_ctx->psoc, cfg_val);
|
|
|
+ } else {
|
|
|
+ hdd_debug("Default mode: MLMR, no action required");
|
|
|
+ }
|
|
|
+
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+#else
|
|
|
+static inline int
|
|
|
+hdd_test_config_emlsr_mode(struct hdd_context *hdd_ctx, struct nlattr *attr)
|
|
|
+{
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+#endif
|
|
|
+
|
|
|
/**
|
|
|
* __wlan_hdd_cfg80211_set_wifi_test_config() - Wifi test configuration
|
|
|
* vendor command
|
|
@@ -11759,6 +11787,14 @@ __wlan_hdd_cfg80211_set_wifi_test_config(struct wiphy *wiphy,
|
|
|
ret_val = ucfg_send_wfatest_cmd(adapter->vdev, &wfa_param);
|
|
|
}
|
|
|
|
|
|
+ cmd_id = QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE;
|
|
|
+ if (tb[cmd_id] && adapter->device_mode == QDF_STA_MODE) {
|
|
|
+ wfa_param.vdev_id = adapter->vdev_id;
|
|
|
+ wfa_param.value = nla_get_u8(tb[cmd_id]);
|
|
|
+
|
|
|
+ ret_val = hdd_test_config_emlsr_mode(hdd_ctx, tb[cmd_id]);
|
|
|
+ }
|
|
|
+
|
|
|
if (update_sme_cfg)
|
|
|
sme_update_config(mac_handle, sme_config);
|
|
|
|