diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-03-09 10:02:54 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-03-14 18:49:14 (GMT) |
commit | 3b3e0efb5c72c4fc940af50b33626b8a78a907dc (patch) | |
tree | 140b316ad5a2edc56428f34eb62876f29125f8a2 /drivers/net/wireless/ath/ath9k/xmit.c | |
parent | 6caefd1271910820db81d4c951a1fe2c9e16ee0b (diff) | |
download | linux-3b3e0efb5c72c4fc940af50b33626b8a78a907dc.tar.xz |
ath9k: fix ready time of the multicast buffer queue
qi->tqi_readyTime is written directly to registers that expect
microseconds as unit instead of TU.
When setting the CABQ ready time, cur_conf->beacon_interval is in TU, so
convert it to microseconds before passing it to ath9k_hw.
This should hopefully fix some Tx DMA issues with buffered multicast
frames in AP mode.
Cc: stable@vger.kernel.org
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/xmit.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/xmit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c index fafacfe..3e7966b 100644 --- a/drivers/net/wireless/ath/ath9k/xmit.c +++ b/drivers/net/wireless/ath/ath9k/xmit.c @@ -1699,7 +1699,7 @@ int ath_cabq_update(struct ath_softc *sc) ath9k_hw_get_txq_props(sc->sc_ah, qnum, &qi); - qi.tqi_readyTime = (cur_conf->beacon_interval * + qi.tqi_readyTime = (TU_TO_USEC(cur_conf->beacon_interval) * ATH_CABQ_READY_TIME) / 100; ath_txq_update(sc, qnum, &qi); |