diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2010-01-25 12:59:58 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-01-25 16:36:29 -0500 |
commit | 3ed0fac3b56504aaaa3d800e7891ed4a7068b85c (patch) | |
tree | c5aec7623f986c4333ac1f0c7987861579073764 /drivers | |
parent | 723bae7ee44fd79c1cd3c7531ed581d373920774 (diff) |
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, | |||
1031 | u8 index = fls(field); | 1031 | u8 index = fls(field); |
1032 | u8 addr, en_addr, val_addr; | 1032 | u8 addr, en_addr, val_addr; |
1033 | /* we expect only one bit set */ | 1033 | /* we expect only one bit set */ |
1034 | B43_WARN_ON(field & (~(1 << index))); | 1034 | B43_WARN_ON(field & (~(1 << (index - 1)))); |
1035 | 1035 | ||
1036 | if (dev->phy.rev >= 3) { | 1036 | if (dev->phy.rev >= 3) { |
1037 | const struct nphy_rf_control_override_rev3 *rf_ctrl; | 1037 | const struct nphy_rf_control_override_rev3 *rf_ctrl; |