]> err.no Git - linux-2.6/commit
rt2x00: Don't switch to antenna with low rssi
authorIvo van Doorn <ivdoorn@gmail.com>
Mon, 25 Feb 2008 22:15:08 +0000 (23:15 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 28 Feb 2008 14:13:09 +0000 (09:13 -0500)
commit05253c93feb40901d80a0d6f239a0bc78860c679
treeb83242d123469de89bdc3f22f2f2232f4e482586
parent61667d8d5bf3c3ee09474069eaf4b93a4755ff8b
rt2x00: Don't switch to antenna with low rssi

When rssi_a > rssi_b is true and the current antenna
was already antenna A, then rt2x00 incorrectly jumped
to antenna B.

Also don't configure the antenna when there has been
no change in the antenna setup.

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00config.c
drivers/net/wireless/rt2x00/rt2x00dev.c