qcacld-3.0: Add support to configure BA operating mode

Add support to configure BA operating mode using nl command

Change-Id: Ibc566d7e090b5f54636b8029e0e8eef9d26c9ad8
CRs-Fixed: 2181889
This commit is contained in:
Kiran Kumar Lokere 2018-02-08 14:28:24 -08:00 • committed by snandini
commit a934561748

View file

@ -6265,6 +6265,8 @@ wlan_hdd_wifi_test_config_policy[
.type = NLA_U8},
[QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS] = {
.type = NLA_U8},
[QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ] = {
.type = NLA_U8},
};
/**
@ -7242,6 +7244,7 @@ __wlan_hdd_cfg80211_set_wifi_test_config(struct wiphy *wiphy,
struct nlattr *tb[QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX + 1];
int ret_val = 0;
uint8_t cfg_val = 0;
uint8_t set_val = 0;
tSmeConfigParams *sme_config;
ENTER_DEV(dev);
@ -7311,6 +7314,23 @@ __wlan_hdd_cfg80211_set_wifi_test_config(struct wiphy *wiphy,
qdf_mem_free(sme_config);
}
if (tb[QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ]) {
cfg_val = nla_get_u8(tb[
QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ]);
if (cfg_val) {
/*Auto BA mode*/
set_val = 0;
hdd_debug("BA operating mode is set to auto");
} else {
/*Manual BA mode*/
set_val = 1;
hdd_debug("BA operating mode is set to Manual");
}
ret_val = wma_cli_set_command(adapter->session_id,
WMI_VDEV_PARAM_BA_MODE, set_val, VDEV_CMD);
}
return ret_val;
}