From: Varka Bhadram Date: Fri, 29 May 2015 05:26:58 +0000 (+0530) Subject: cc2520: update current channel X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=d6d244d4df91ee4b468233050542c7482d705e69;p=openwrt%2Fstaging%2Fblogic.git cc2520: update current channel This patch updates the current channel to 11. This is the default value on reset. Signed-off-by: Varka Bhadram Signed-off-by: Marcel Holtmann --- 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)