ath5k: fix txop calculation similar to what was done in ath9k
authorFelix Fietkau <nbd@openwrt.org>
Sun, 15 Jul 2012 15:20:30 +0000 (15:20 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 15 Jul 2012 15:20:30 +0000 (15:20 +0000)
SVN-Revision: 32735

package/mac80211/patches/421-ath5k_fix_txop.patch [new file with mode: 0644]

diff --git a/package/mac80211/patches/421-ath5k_fix_txop.patch b/package/mac80211/patches/421-ath5k_fix_txop.patch
new file mode 100644 (file)
index 0000000..7cef4a2
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/drivers/net/wireless/ath/ath5k/mac80211-ops.c
++++ b/drivers/net/wireless/ath/ath5k/mac80211-ops.c
+@@ -617,7 +617,7 @@ ath5k_conf_tx(struct ieee80211_hw *hw, s
+       qi.tqi_aifs = params->aifs;
+       qi.tqi_cw_min = params->cw_min;
+       qi.tqi_cw_max = params->cw_max;
+-      qi.tqi_burst_time = params->txop;
++      qi.tqi_burst_time = params->txop * 32;
+       ATH5K_DBG(ah, ATH5K_DEBUG_ANY,
+                 "Configure tx [queue %d],  "