diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2008-02-25 23:15:08 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-02-28 09:13:09 -0500 |
commit | 05253c93feb40901d80a0d6f239a0bc78860c679 (patch) | |
tree | b83242d123469de89bdc3f22f2f2232f4e482586 /drivers/net/wireless/rt2x00/rt2x00config.c | |
parent | 61667d8d5bf3c3ee09474069eaf4b93a4755ff8b (diff) | |
download | op-kernel-dev-05253c93feb40901d80a0d6f239a0bc78860c679.zip op-kernel-dev-05253c93feb40901d80a0d6f239a0bc78860c679.tar.gz |
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>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00config.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00config.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00config.c b/drivers/net/wireless/rt2x00/rt2x00config.c index 0d57d7f..07adc57 100644 --- a/drivers/net/wireless/rt2x00/rt2x00config.c +++ b/drivers/net/wireless/rt2x00/rt2x00config.c @@ -97,6 +97,10 @@ void rt2x00lib_config_antenna(struct rt2x00_dev *rt2x00dev, libconf.ant.rx = rx; libconf.ant.tx = tx; + if (rx == rt2x00dev->link.ant.active.rx && + tx == rt2x00dev->link.ant.active.tx) + return; + /* * Antenna setup changes require the RX to be disabled, * else the changes will be ignored by the device. |