aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_out.c
diff options
context:
space:
mode:
authorIvo van Doorn <[email protected]>2008-02-25 23:15:01 +0100
committerJohn W. Linville <[email protected]>2008-02-28 09:13:09 -0500
commitb290d433618aa7122f6e6c4a62ddc79412a48d4d (patch)
tree2c24cf5ac226d7c15bca28e79ccd2c7139b7a03d /net/lapb/lapb_out.c
parent8bfb04756a698e38825656eab3bc339a321551b3 (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 <[email protected]> Signed-off-by: John W. Linville <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions