diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2008-02-25 23:15:01 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-02-28 09:13:09 -0500 |
commit | b290d433618aa7122f6e6c4a62ddc79412a48d4d (patch) | |
tree | 2c24cf5ac226d7c15bca28e79ccd2c7139b7a03d /drivers/net/hydra.c | |
parent | 8bfb04756a698e38825656eab3bc339a321551b3 (diff) |
rt2x00: Fix antenna diversity
Fix 2 issues in antenna diversity selection.
1) the following statement will always return true.
if ((rssi_curr - rssi_old) > -5 || (rssi_curr - rssi_old) < 5)
It is cleaner to check if the absolute value is smaller then 5.
2) Only enable software diversity when default antenna setup
indicates support for it. Don't select it when the hardware
does not indicate support for it...
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/hydra.c')
0 files changed, 0 insertions, 0 deletions