|
@@ -5752,6 +5752,21 @@ static int hdd_config_mgmt_retry(struct hdd_adapter *adapter,
|
|
|
retry, PDEV_CMD);
|
|
|
}
|
|
|
|
|
|
+static int hdd_config_ctrl_retry(struct hdd_adapter *adapter,
|
|
|
+ const struct nlattr *attr)
|
|
|
+{
|
|
|
+ uint8_t retry;
|
|
|
+ int param_id;
|
|
|
+
|
|
|
+ retry = nla_get_u8(attr);
|
|
|
+ retry = retry > CFG_CTRL_RETRY_MAX ?
|
|
|
+ CFG_CTRL_RETRY_MAX : retry;
|
|
|
+ param_id = WMI_PDEV_PARAM_CTRL_RETRY_LIMIT;
|
|
|
+
|
|
|
+ return wma_cli_set_command(adapter->session_id, param_id,
|
|
|
+ retry, PDEV_CMD);
|
|
|
+}
|
|
|
+
|
|
|
static int hdd_config_guard_time(struct hdd_adapter *adapter,
|
|
|
const struct nlattr *attr)
|
|
|
{
|
|
@@ -5864,6 +5879,8 @@ static const struct independent_setters independent_setters[] = {
|
|
|
hdd_config_agg_retry},
|
|
|
{QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY,
|
|
|
hdd_config_mgmt_retry},
|
|
|
+ {QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY,
|
|
|
+ hdd_config_ctrl_retry},
|
|
|
};
|
|
|
|
|
|
/**
|
|
@@ -5985,7 +6002,7 @@ __wlan_hdd_cfg80211_wifi_configuration_set(struct wiphy *wiphy,
|
|
|
bool vendor_ie_present = false, access_policy_present = false;
|
|
|
struct sir_set_tx_rx_aggregation_size request;
|
|
|
QDF_STATUS qdf_status;
|
|
|
- uint8_t retry, delay;
|
|
|
+ uint8_t delay;
|
|
|
uint32_t abs_delay;
|
|
|
int param_id;
|
|
|
uint32_t tx_fail_count;
|
|
@@ -6062,15 +6079,6 @@ __wlan_hdd_cfg80211_wifi_configuration_set(struct wiphy *wiphy,
|
|
|
access_policy);
|
|
|
}
|
|
|
|
|
|
- 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->session_id, 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]);
|