summaryrefslogtreecommitdiff
path: root/drivers/net/ibmveth.c
diff options
context:
space:
mode:
authorIvo van Doorn <ivdoorn@gmail.com>2008-02-25 22:15:01 (GMT)
committerJohn W. Linville <linville@tuxdriver.com>2008-02-28 14:13:09 (GMT)
commitb290d433618aa7122f6e6c4a62ddc79412a48d4d (patch)
tree2c24cf5ac226d7c15bca28e79ccd2c7139b7a03d /drivers/net/ibmveth.c
parent8bfb04756a698e38825656eab3bc339a321551b3 (diff)
downloadlinux-fsl-qoriq-b290d433618aa7122f6e6c4a62ddc79412a48d4d.tar.xz
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/ibmveth.c')
0 files changed, 0 insertions, 0 deletions