rt2x00: Fix quality houskeeping for software diversity
authorLars Ericsson <Lars_Ericsson@telia.com>
Sat, 8 Aug 2009 21:54:24 +0000 (23:54 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 14 Aug 2009 13:13:52 +0000 (09:13 -0400)
commit193df183b15cda78f6b2373f576e243327ea0d8f
tree18e2eb38a90ed0ee07287c836aaff0c7be7873da
parent93354cbbcbfca920495377158c0f61c36be79e13
rt2x00: Fix quality houskeeping for software diversity

Antanna quality statistics is not handled correctly, which leads to
software diversity being shutdown completly.

The main problem is that during antenna diversity statistics can
be reset resulting in loosing the signal strength just before
evaluation.

rssi history is not updated correctly leading to incorrect comparison
material for basing antenna switching on.

Signed-off-by: Lars Ericsson <Lars_Ericsson@telia.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00.h
drivers/net/wireless/rt2x00/rt2x00link.c