aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2x00.h
diff options
context:
space:
mode:
authorLars Ericsson <Lars_Ericsson@telia.com>2009-08-08 17:54:24 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-08-14 09:13:52 -0400
commit193df183b15cda78f6b2373f576e243327ea0d8f (patch)
tree18e2eb38a90ed0ee07287c836aaff0c7be7873da /drivers/net/wireless/rt2x00/rt2x00.h
parent93354cbbcbfca920495377158c0f61c36be79e13 (diff)
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>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00.h')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h
index cbec91ef6f76..704e94474b1d 100644
--- a/drivers/net/wireless/rt2x00/rt2x00.h
+++ b/drivers/net/wireless/rt2x00/rt2x00.h
@@ -245,14 +245,11 @@ struct link_ant {
245 struct antenna_setup active; 245 struct antenna_setup active;
246 246
247 /* 247 /*
248 * RSSI information for the different antennas. 248 * RSSI history information for the antenna.
249 * These statistics are used to determine when 249 * Used to determine when to switch antenna
250 * to switch antenna when using software diversity. 250 * when using software diversity.
251 *
252 * rssi[0] -> Antenna A RSSI
253 * rssi[1] -> Antenna B RSSI
254 */ 251 */
255 int rssi_history[2]; 252 int rssi_history;
256 253
257 /* 254 /*
258 * Current RSSI average of the currently active antenna. 255 * Current RSSI average of the currently active antenna.