]> git.baikalelectronics.ru Git - kernel.git/commit
rt2x00: Fix TX status reporting for rt2800pci.
authorAlban Browaeys <prahal@yahoo.com>
Sun, 28 Feb 2010 16:14:40 +0000 (17:14 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 16 Mar 2010 18:52:00 +0000 (14:52 -0400)
commit06acfccb7d549822b19dc805de706548821ebdeb
tree94870a1a7f0b771bd3d6d0a6e4a084ecbde70cf7
parent7998a0b1ee5faeaf6e43951a86b9fd6465e9f832
rt2x00: Fix TX status reporting for rt2800pci.

After testing, we found that TX_STA_FIFO_MCS is the last MCS value
tried. If the transmission failed, 8 frames have been transmitted. If the
transmission succeed, we can easily compute the number of retry.  This patch fix
the way status is reported to mac80211 rate control. It has 2 bugs :

1. mcs can contain the short preamble flag and it will lead to wrong
computations.

2. minstrel nearly always say that 54 Mbits is the best rate, even if we are
very far from the AP

Signed-off-by: Benoit Papillault <benoit.papillault@free.fr>
Signed-off-by: Alban Browaeys <prahal@yahoo.com>
Acked-by: Ivo van Doorn <ivdoorn@gmail.com>
Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800pci.c