Commit 531bd079 authored by Felix Fietkau's avatar Felix Fietkau Committed by John W. Linville

ath9k/ath9k_htc: fix txop limit handling

In all those years apparently nobody noticed that the txop limit programmed
into the chip was off by a factor of 32 (!), probably because the VI and VO
queues aren't used that much aside from mgmt frames on VO.
Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent a364517b
...@@ -1351,7 +1351,7 @@ static int ath9k_htc_conf_tx(struct ieee80211_hw *hw, ...@@ -1351,7 +1351,7 @@ static int ath9k_htc_conf_tx(struct ieee80211_hw *hw,
qi.tqi_aifs = params->aifs; qi.tqi_aifs = params->aifs;
qi.tqi_cwmin = params->cw_min; qi.tqi_cwmin = params->cw_min;
qi.tqi_cwmax = params->cw_max; qi.tqi_cwmax = params->cw_max;
qi.tqi_burstTime = params->txop; qi.tqi_burstTime = params->txop * 32;
qnum = get_hw_qnum(queue, priv->hwq_map); qnum = get_hw_qnum(queue, priv->hwq_map);
......
...@@ -1388,7 +1388,7 @@ static int ath9k_conf_tx(struct ieee80211_hw *hw, ...@@ -1388,7 +1388,7 @@ static int ath9k_conf_tx(struct ieee80211_hw *hw,
qi.tqi_aifs = params->aifs; qi.tqi_aifs = params->aifs;
qi.tqi_cwmin = params->cw_min; qi.tqi_cwmin = params->cw_min;
qi.tqi_cwmax = params->cw_max; qi.tqi_cwmax = params->cw_max;
qi.tqi_burstTime = params->txop; qi.tqi_burstTime = params->txop * 32;
ath_dbg(common, CONFIG, ath_dbg(common, CONFIG,
"Configure tx [queue/halq] [%d/%d], aifs: %d, cw_min: %d, cw_max: %d, txop: %d\n", "Configure tx [queue/halq] [%d/%d], aifs: %d, cw_min: %d, cw_max: %d, txop: %d\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment