Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 224895
b: refs/heads/master
c: 8cbe6e6
h: refs/heads/master
i:
  224893: d611c38
  224891: bb9e42b
  224887: a60ea01
  224879: 856ee15
  224863: aba24c3
  224831: 539e64f
  224767: 20004d2
v: v3
  • Loading branch information
Rafał Miłecki authored and John W. Linville committed Dec 2, 2010
1 parent 65f9759 commit c132dfd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8c1d5a7a2230a162af709fa118f051e0d18ff427
refs/heads/master: 8cbe6e66889d2e4dbea37b2fc6f276bd69d1ef67
14 changes: 8 additions & 6 deletions trunk/drivers/net/wireless/b43/phy_n.c
Original file line number Diff line number Diff line change
Expand Up @@ -2064,7 +2064,10 @@ static void b43_nphy_rev2_rssi_cal(struct b43_wldev *dev, u8 type)
u16 class, override;
u8 regs_save_radio[2];
u16 regs_save_phy[2];

s8 offset[4];
u8 core;
u8 rail;

u16 clip_state[2];
u16 clip_off[2] = { 0xFFFF, 0xFFFF };
Expand Down Expand Up @@ -2165,12 +2168,11 @@ static void b43_nphy_rev2_rssi_cal(struct b43_wldev *dev, u8 type)
if (results_min[i] == 248)
offset[i] = code - 32;

if (i % 2 == 0)
b43_nphy_scale_offset_rssi(dev, 0, offset[i], 1, 0,
type);
else
b43_nphy_scale_offset_rssi(dev, 0, offset[i], 2, 1,
type);
core = (i / 2) ? 2 : 1;
rail = (i % 2) ? 1 : 0;

b43_nphy_scale_offset_rssi(dev, 0, offset[i], core, rail,
type);
}

b43_radio_maskset(dev, B2055_C1_PD_RSSIMISC, 0xF8, state[0]);
Expand Down

0 comments on commit c132dfd

Please sign in to comment.