aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,
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;