]> git.baikalelectronics.ru Git - kernel.git/commit
rt2x00: Fix rt2800 retry calculation
authorIvo van Doorn <ivdoorn@gmail.com>
Mon, 23 Aug 2010 17:55:01 +0000 (19:55 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 25 Aug 2010 18:34:55 +0000 (14:34 -0400)
commita22caf1435d4607bd025b3bffeedebd9aef27695
treef92038442029ed7525c08debf41fafd91be44f50
parent179be7f3682632a2bf85027bb59f04d0a7b31477
rt2x00: Fix rt2800 retry calculation

The retry count for a frame is calculated by the realized MCS rate
subtracting of the requested MCS rate. However during TX done reporting
we accidently override the requested MCS rate with the realized MCS
rate. This causes the retry count to be reset to 0 always, and feeding
invalid rate information into minstrel_ht.

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800lib.c