]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: fix RTS/CTS handling
authorFelix Fietkau <nbd@openwrt.org>
Sun, 17 Jan 2010 20:08:50 +0000 (21:08 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 19 Jan 2010 21:43:09 +0000 (16:43 -0500)
commit6c8a93c9cfd6add26d986365dc42fbcb09769d3a
tree076010e37d575228288315b1f317a0fc0e94fbab
parent7da835fa18e9c2b0d1efa6b4f59ab54c4a4249e2
ath9k: fix RTS/CTS handling

The Tx DMA descriptor has two kinds of flags that select RTS/CTS usage.
The first one (global for the frame) selects whether RTS/CTS or
CTS-to-self should be used, the second one enables RTS/CTS or
CTS-to-self usage for an individual multi-rate-retry entry.
Previously the code preparing the descriptor only enabled the global
flag, if the first MRR series selected the local one.
Fix this by enabling the global flag if any of the MRR entries need it.
With this patch, rate control can properly select the use of RTS/CTS
for all MRR entries except the first one, which is the default behavior.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/xmit.c