summaryrefslogtreecommitdiffstats
path: root/drivers/net/ieee802154/cc2520.c
diff options
context:
space:
mode:
authorVarka Bhadram2015-05-29 07:26:58 +0200
committerMarcel Holtmann2015-05-31 13:40:54 +0200
commitd6d244d4df91ee4b468233050542c7482d705e69 (patch)
treee8f611e34a2a06497f82d0bff3f161994f78a2f4 /drivers/net/ieee802154/cc2520.c
parentcc2520: update initial transmit power value (diff)
downloadkernel-qcow2-linux-d6d244d4df91ee4b468233050542c7482d705e69.tar.gz
kernel-qcow2-linux-d6d244d4df91ee4b468233050542c7482d705e69.tar.xz
kernel-qcow2-linux-d6d244d4df91ee4b468233050542c7482d705e69.zip
cc2520: update current channel
This patch updates the current channel to 11. This is the default value on reset. Signed-off-by: Varka Bhadram <varkab@cdac.in> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/net/ieee802154/cc2520.c')
-rw-r--r--drivers/net/ieee802154/cc2520.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ieee802154/cc2520.c b/drivers/net/ieee802154/cc2520.c
index 2384c286163f..8141353221a1 100644
--- a/drivers/net/ieee802154/cc2520.c
+++ b/drivers/net/ieee802154/cc2520.c
@@ -762,6 +762,8 @@ static int cc2520_register(struct cc2520_private *priv)
priv->hw->phy->transmit_power = priv->hw->phy->supported.tx_powers[0];
}
+ priv->hw->phy->current_channel = 11;
+
dev_vdbg(&priv->spi->dev, "registered cc2520\n");
ret = ieee802154_register_hw(priv->hw);
if (ret)