|
@@ -6262,6 +6262,7 @@ wlan_hdd_wifi_config_policy[QCA_WLAN_VENDOR_ATTR_CONFIG_MAX + 1] = {
|
|
|
[QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT] = {.type = NLA_U8},
|
|
|
[QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE] = {.type = NLA_U8 },
|
|
|
[QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE] = {.type = NLA_U8},
|
|
|
+ [QCA_WLAN_VENDOR_ATTR_CONFIG_GTX] = {.type = NLA_U8},
|
|
|
};
|
|
|
|
|
|
static const struct nla_policy
|
|
@@ -7218,6 +7219,21 @@ __wlan_hdd_cfg80211_wifi_configuration_set(struct wiphy *wiphy,
|
|
|
hdd_ctx->force_rsne_override);
|
|
|
}
|
|
|
|
|
|
+ if (tb[QCA_WLAN_VENDOR_ATTR_CONFIG_GTX]) {
|
|
|
+ uint8_t config_gtx;
|
|
|
+
|
|
|
+ config_gtx = nla_get_u8(tb[QCA_WLAN_VENDOR_ATTR_CONFIG_GTX]);
|
|
|
+ if (config_gtx > 1) {
|
|
|
+ hdd_err_rl("Invalid config_gtx value %d", config_gtx);
|
|
|
+ return -EINVAL;
|
|
|
+ }
|
|
|
+ ret_val = sme_cli_set_command(adapter->session_id,
|
|
|
+ WMI_VDEV_PARAM_GTX_ENABLE,
|
|
|
+ config_gtx, VDEV_CMD);
|
|
|
+ if (ret_val)
|
|
|
+ hdd_err("Failed to set GTX");
|
|
|
+ }
|
|
|
+
|
|
|
return ret_val;
|
|
|
}
|
|
|
|