diff options
author | Michal Kazior <michal.kazior@tieto.com> | 2013-11-13 05:05:10 -0500 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2013-11-15 03:58:01 -0500 |
commit | c4dd0d01da8979bd5c7f4367661115617bc389ea (patch) | |
tree | 4f20263ac0646866003411c60292c0907dcdc9c8 /drivers/net | |
parent | 67e3c63fef6041f41e22335852de9d3924cff7a1 (diff) |
ath10k: allow dynamic bandwidth in hw rate control
Frames were never retransmitted with
different/lower bandwidths, e.g. only 80MHz
bandwidth was used when dealing with a VHT80
peer.
Allow HW rate control to try out different
bandwidths when retransmitting. This increases
robustness.
Also, document the parameter properly.
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/mac.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath10k/wmi.h | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index 56f030ed357a..db819429134a 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c | |||
@@ -1964,7 +1964,7 @@ static int ath10k_start(struct ieee80211_hw *hw) | |||
1964 | ath10k_warn("could not enable WMI_PDEV_PARAM_PMF_QOS (%d)\n", | 1964 | ath10k_warn("could not enable WMI_PDEV_PARAM_PMF_QOS (%d)\n", |
1965 | ret); | 1965 | ret); |
1966 | 1966 | ||
1967 | ret = ath10k_wmi_pdev_set_param(ar, ar->wmi.pdev_param->dynamic_bw, 0); | 1967 | ret = ath10k_wmi_pdev_set_param(ar, ar->wmi.pdev_param->dynamic_bw, 1); |
1968 | if (ret) | 1968 | if (ret) |
1969 | ath10k_warn("could not init WMI_PDEV_PARAM_DYNAMIC_BW (%d)\n", | 1969 | ath10k_warn("could not init WMI_PDEV_PARAM_DYNAMIC_BW (%d)\n", |
1970 | ret); | 1970 | ret); |
diff --git a/drivers/net/wireless/ath/ath10k/wmi.h b/drivers/net/wireless/ath/ath10k/wmi.h index 81e33a7dbaf2..8b824f9c2f1e 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.h +++ b/drivers/net/wireless/ath/ath10k/wmi.h | |||
@@ -2234,7 +2234,12 @@ enum wmi_pdev_param { | |||
2234 | * 0: no protection 1:use CTS-to-self 2: use RTS/CTS | 2234 | * 0: no protection 1:use CTS-to-self 2: use RTS/CTS |
2235 | */ | 2235 | */ |
2236 | WMI_PDEV_PARAM_PROTECTION_MODE, | 2236 | WMI_PDEV_PARAM_PROTECTION_MODE, |
2237 | /* Dynamic bandwidth 0: disable 1: enable */ | 2237 | /* |
2238 | * Dynamic bandwidth - 0: disable, 1: enable | ||
2239 | * | ||
2240 | * When enabled HW rate control tries different bandwidths when | ||
2241 | * retransmitting frames. | ||
2242 | */ | ||
2238 | WMI_PDEV_PARAM_DYNAMIC_BW, | 2243 | WMI_PDEV_PARAM_DYNAMIC_BW, |
2239 | /* Non aggregrate/ 11g sw retry threshold.0-disable */ | 2244 | /* Non aggregrate/ 11g sw retry threshold.0-disable */ |
2240 | WMI_PDEV_PARAM_NON_AGG_SW_RETRY_TH, | 2245 | WMI_PDEV_PARAM_NON_AGG_SW_RETRY_TH, |