qcacld-3.0: Extend cfg80211 configure API
qcacld-2.0 to qcacld-3.0 propagation
Extend cfg80211 configure API:
1. Vendor attribute for non aggregate/11g sw retry threshold.
2. Vendor attribute for aggregate sw retry threshold.
3. Vendor attribute for MGMT frame sw retry threshold.
4. Vendor attribute for CTRL frame sw retry threshold.
5. Vendor attribute for propagation delay.
Change-Id: Icdcb0e83432299014fb46507bdd5978b76919ab5
CRs-Fixed: 1035577
diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c
index da29cff..d4517ef 100644
--- a/core/hdd/src/wlan_hdd_cfg80211.c
+++ b/core/hdd/src/wlan_hdd_cfg80211.c
@@ -3889,6 +3889,11 @@
[QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND] = {.type = NLA_U8 },
[QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION] = {.type = NLA_U8 },
[QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION] = {.type = NLA_U8 },
+ [QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY] = {.type = NLA_U8 },
+ [QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY] = {.type = NLA_U8 },
+ [QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY] = {.type = NLA_U8 },
+ [QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY] = {.type = NLA_U8 },
+ [QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY] = {.type = NLA_U8 },
};
/**
@@ -3959,6 +3964,8 @@
uint8_t *scan_ie;
struct sir_set_tx_rx_aggregation_size request;
QDF_STATUS qdf_status;
+ uint8_t retry, delay;
+ int param_id;
ENTER_DEV(dev);
@@ -4068,6 +4075,57 @@
access_policy);
}
+ if (tb[QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY]) {
+ retry = nla_get_u8(tb[
+ QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY]);
+ retry = retry > CFG_NON_AGG_RETRY_MAX ?
+ CFG_NON_AGG_RETRY_MAX : retry;
+ param_id = WMI_PDEV_PARAM_NON_AGG_SW_RETRY_TH;
+ ret_val = wma_cli_set_command(adapter->sessionId, param_id,
+ retry, PDEV_CMD);
+ }
+
+ if (tb[QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY]) {
+ retry = nla_get_u8(tb[QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY]);
+ retry = retry > CFG_AGG_RETRY_MAX ?
+ CFG_AGG_RETRY_MAX : retry;
+
+ /* Value less than CFG_AGG_RETRY_MIN has side effect to t-put */
+ retry = ((retry > 0) && (retry < CFG_AGG_RETRY_MIN)) ?
+ CFG_AGG_RETRY_MIN : retry;
+ param_id = WMI_PDEV_PARAM_AGG_SW_RETRY_TH;
+ ret_val = wma_cli_set_command(adapter->sessionId, param_id,
+ retry, PDEV_CMD);
+ }
+
+ if (tb[QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY]) {
+ retry = nla_get_u8(tb[QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY]);
+ retry = retry > CFG_MGMT_RETRY_MAX ?
+ CFG_MGMT_RETRY_MAX : retry;
+ param_id = WMI_PDEV_PARAM_MGMT_RETRY_LIMIT;
+ ret_val = wma_cli_set_command(adapter->sessionId, param_id,
+ retry, PDEV_CMD);
+ }
+
+ if (tb[QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY]) {
+ retry = nla_get_u8(tb[QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY]);
+ retry = retry > CFG_CTRL_RETRY_MAX ?
+ CFG_CTRL_RETRY_MAX : retry;
+ param_id = WMI_PDEV_PARAM_CTRL_RETRY_LIMIT;
+ ret_val = wma_cli_set_command(adapter->sessionId, param_id,
+ retry, PDEV_CMD);
+ }
+
+ if (tb[QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY]) {
+ delay = nla_get_u8(tb[
+ QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY]);
+ delay = delay > CFG_PROPAGATION_DELAY_MAX ?
+ CFG_PROPAGATION_DELAY_MAX : delay;
+ param_id = WMI_PDEV_PARAM_PROPAGATION_DELAY;
+ ret_val = wma_cli_set_command(adapter->sessionId, param_id,
+ delay, PDEV_CMD);
+ }
+
if (vendor_ie_present && access_policy_present) {
if (access_policy == QCA_ACCESS_POLICY_DENY_UNLESS_LISTED) {
access_policy =