OSDN Git Service

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)
commit27032059677b98f33634ceb90488812db432cbc9
tree076010e37d575228288315b1f317a0fc0e94fbab
parent5f2aa25e0e5b221a176ab3d1c51d51da265cb4a7
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