diff options
author | John W. Linville <linville@tuxdriver.com> | 2012-07-12 13:44:50 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-07-12 13:44:50 -0400 |
commit | 38a00840638b4932152bca48098dbfa069d942a2 (patch) | |
tree | dd12897854f6df8aac237d5fd46551c74be8153a /drivers/net/wireless/b43 | |
parent | 391e5c22f5f4e55817f8ba18a08ea717ed2d4a1f (diff) | |
parent | 2f8684ce7a47c91da7e0ccba2686277c103d02b6 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
Diffstat (limited to 'drivers/net/wireless/b43')
-rw-r--r-- | drivers/net/wireless/b43/phy_n.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/drivers/net/wireless/b43/phy_n.c b/drivers/net/wireless/b43/phy_n.c index 108118820b36..b92bb9c92ad1 100644 --- a/drivers/net/wireless/b43/phy_n.c +++ b/drivers/net/wireless/b43/phy_n.c | |||
@@ -1369,7 +1369,7 @@ static void b43_nphy_rev3_rssi_cal(struct b43_wldev *dev) | |||
1369 | i << 2); | 1369 | i << 2); |
1370 | b43_nphy_poll_rssi(dev, 2, results[i], 8); | 1370 | b43_nphy_poll_rssi(dev, 2, results[i], 8); |
1371 | } | 1371 | } |
1372 | for (i = 0; i < 4; i++) { | 1372 | for (i = 0; i < 4; i += 2) { |
1373 | s32 curr; | 1373 | s32 curr; |
1374 | s32 mind = 40; | 1374 | s32 mind = 40; |
1375 | s32 minpoll = 249; | 1375 | s32 minpoll = 249; |
@@ -1415,14 +1415,15 @@ static void b43_nphy_rev3_rssi_cal(struct b43_wldev *dev) | |||
1415 | b43_nphy_scale_offset_rssi(dev, 0, 0, core + 1, 1, i); | 1415 | b43_nphy_scale_offset_rssi(dev, 0, 0, core + 1, 1, i); |
1416 | b43_nphy_poll_rssi(dev, i, poll_results, 8); | 1416 | b43_nphy_poll_rssi(dev, i, poll_results, 8); |
1417 | for (j = 0; j < 4; j++) { | 1417 | for (j = 0; j < 4; j++) { |
1418 | if (j / 2 == core) | 1418 | if (j / 2 == core) { |
1419 | offset[j] = 232 - poll_results[j]; | 1419 | offset[j] = 232 - poll_results[j]; |
1420 | if (offset[j] < 0) | 1420 | if (offset[j] < 0) |
1421 | offset[j] = -(abs(offset[j] + 4) / 8); | 1421 | offset[j] = -(abs(offset[j] + 4) / 8); |
1422 | else | 1422 | else |
1423 | offset[j] = (offset[j] + 4) / 8; | 1423 | offset[j] = (offset[j] + 4) / 8; |
1424 | b43_nphy_scale_offset_rssi(dev, 0, | 1424 | b43_nphy_scale_offset_rssi(dev, 0, |
1425 | offset[2 * core], core + 1, j % 2, i); | 1425 | offset[2 * core], core + 1, j % 2, i); |
1426 | } | ||
1426 | } | 1427 | } |
1427 | } | 1428 | } |
1428 | } | 1429 | } |