Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0be7fc7e authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Stefan Schmidt
Browse files

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: default avatarJulia Lawall <julia.lawall@lip6.fr>
Signed-off-by: default avatarGustavo A. R. Silva <garsilva@embeddedor.com>
Fixes: 7d840545 ("mrf24j40: replace magic numbers")
Acked-by: default avatarAlan Ott <alan@signal11.us>
Signed-off-by: default avatarStefan Schmidt <stefan@osg.samsung.com>
parent cd3a21b5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -635,7 +635,7 @@ static void mrf24j40_stop(struct ieee802154_hw *hw)

	/* Set TXNIE and RXIE. Disable Interrupts */
	regmap_update_bits(devrec->regmap_short, REG_INTCON,
			   BIT_TXNIE | BIT_TXNIE, BIT_TXNIE | BIT_TXNIE);
			   BIT_TXNIE | BIT_RXIE, BIT_TXNIE | BIT_RXIE);
}

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