Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 183664
b: refs/heads/master
c: 857c0fc
h: refs/heads/master
v: v3
  • Loading branch information
Rafał Miłecki authored and John W. Linville committed Jan 15, 2010
1 parent 0b4b6b0 commit 3f2f09a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 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: e239d8591843945630521ec85edca08289f1a751
refs/heads/master: 857c0fc490d8474d1a232d9b6568a4b229634bcd
17 changes: 2 additions & 15 deletions trunk/drivers/net/wireless/b43/phy_lp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1710,19 +1710,6 @@ static const struct lpphy_rx_iq_comp lpphy_rev2plus_iq_comp = {
.c0 = 0,
};

static u8 lpphy_nbits(s32 val)
{
u32 tmp = abs(val);
u8 nbits = 0;

while (tmp != 0) {
nbits++;
tmp >>= 1;
}

return nbits;
}

static int lpphy_calc_rx_iq_comp(struct b43_wldev *dev, u16 samples)
{
struct lpphy_iq_est iq_est;
Expand All @@ -1749,8 +1736,8 @@ static int lpphy_calc_rx_iq_comp(struct b43_wldev *dev, u16 samples)
goto out;
}

prod_msb = lpphy_nbits(prod);
q_msb = lpphy_nbits(qpwr);
prod_msb = fls(abs(prod));
q_msb = fls(abs(qpwr));
tmp1 = prod_msb - 20;

if (tmp1 >= 0) {
Expand Down

0 comments on commit 3f2f09a

Please sign in to comment.