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>
This commit is contained in:
parent
723bae7ee4
commit
3ed0fac3b5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue