diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2010-01-25 20:59:58 +0300 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-01-26 00:36:29 +0300 |
commit | 3ed0fac3b56504aaaa3d800e7891ed4a7068b85c (patch) | |
tree | c5aec7623f986c4333ac1f0c7987861579073764 /drivers | |
parent | 723bae7ee44fd79c1cd3c7531ed581d373920774 (diff) | |
download | linux-3ed0fac3b56504aaaa3d800e7891ed4a7068b85c.tar.xz |
b43: N-PHY: fix one bit off in parsing RF Ctrl Override arguments
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/b43/phy_n.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/b43/phy_n.c b/drivers/net/wireless/b43/phy_n.c index a45a1f3ced42..061b01b814d1 100644 --- a/drivers/net/wireless/b43/phy_n.c +++ b/drivers/net/wireless/b43/phy_n.c @@ -1031,7 +1031,7 @@ static void b43_nphy_rf_control_override(struct b43_wldev *dev, u16 field, u8 index = fls(field); u8 addr, en_addr, val_addr; /* we expect only one bit set */ - B43_WARN_ON(field & (~(1 << index))); + B43_WARN_ON(field & (~(1 << (index - 1)))); if (dev->phy.rev >= 3) { const struct nphy_rf_control_override_rev3 *rf_ctrl; |