From: Rafał Miłecki Date: Mon, 25 Jan 2010 17:59:58 +0000 (+0100) Subject: b43: N-PHY: fix one bit off in parsing RF Ctrl Override arguments X-Git-Tag: firefly_0821_release~9833^2~3055^2~49^2~163 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3ed0fac3b56504aaaa3d800e7891ed4a7068b85c;p=firefly-linux-kernel-4.4.55.git b43: N-PHY: fix one bit off in parsing RF Ctrl Override arguments Signed-off-by: Rafał Miłecki Signed-off-by: John W. Linville --- 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;