Skip to content

Commit 0be7fc7

Browse files
GustavoARSilvaStefan Schmidt
authored andcommitted
ieee802154: mrf24j40: fix incorrect mask in mrf24j40_stop
It seems that this is a copy/paste error and the proper bit masking is: BIT_TXNIE | BIT_RXIE This issue was detected with the help of Coccinelle. Reported-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com> Fixes: 7d84054 ("mrf24j40: replace magic numbers") Acked-by: Alan Ott <alan@signal11.us> Signed-off-by: Stefan Schmidt <stefan@osg.samsung.com>
1 parent cd3a21b commit 0be7fc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ieee802154/mrf24j40.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ static void mrf24j40_stop(struct ieee802154_hw *hw)
635635

636636
/* Set TXNIE and RXIE. Disable Interrupts */
637637
regmap_update_bits(devrec->regmap_short, REG_INTCON,
638-
BIT_TXNIE | BIT_TXNIE, BIT_TXNIE | BIT_TXNIE);
638+
BIT_TXNIE | BIT_RXIE, BIT_TXNIE | BIT_RXIE);
639639
}
640640

641641
static int mrf24j40_set_channel(struct ieee802154_hw *hw, u8 page, u8 channel)

0 commit comments

Comments
 (0)