summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2010-01-25 18:59:58 +0100
committerJohn W. Linville <linville@tuxdriver.com>2010-01-25 16:36:29 -0500
commit3ed0fac3b56504aaaa3d800e7891ed4a7068b85c (patch)
treec5aec7623f986c4333ac1f0c7987861579073764 /drivers/net/wireless/b43
parent723bae7ee44fd79c1cd3c7531ed581d373920774 (diff)
downloadblackbird-op-linux-3ed0fac3b56504aaaa3d800e7891ed4a7068b85c.tar.gz
blackbird-op-linux-3ed0fac3b56504aaaa3d800e7891ed4a7068b85c.zip
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/net/wireless/b43')
-rw-r--r--drivers/net/wireless/b43/phy_n.c2
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;
OpenPOWER on IntegriCloud