atusb: don't change csma settings while set channel
This patch fixes the behaviour to not overwrite csma settings when set channel afterwards. Cc: Stefan Schmidt <stefan@osg.samsung.com> Acked-by: Stefan Schmidt <stefan@osg.samsung.com> Signed-off-by: Alexander Aring <aar@pengutronix.de> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
parent
9e262f5037
commit
3896129451
@ -366,11 +366,7 @@ static int atusb_channel(struct ieee802154_hw *hw, u8 page, u8 channel)
|
|||||||
struct atusb *atusb = hw->priv;
|
struct atusb *atusb = hw->priv;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
/* This implicitly sets the CCA (Clear Channel Assessment) mode to 0,
|
ret = atusb_write_subreg(atusb, SR_CHANNEL, channel);
|
||||||
* "Mode 3a, Carrier sense OR energy above threshold".
|
|
||||||
* We should probably make this configurable. @@@
|
|
||||||
*/
|
|
||||||
ret = atusb_write_reg(atusb, RG_PHY_CC_CCA, channel);
|
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
msleep(1); /* @@@ ugly synchronization */
|
msleep(1); /* @@@ ugly synchronization */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user