diff options
author | Alexander Aring <alex.aring@gmail.com> | 2015-09-21 12:24:27 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-09-22 12:51:21 +0300 |
commit | 766928fbf8c989f65184c3ed0d48fd3004213c46 (patch) | |
tree | 26397acb12c2a3a4ceb5f92b945d2b37c9c99d01 /drivers | |
parent | 2e6fd648b6b87e6a2289c875c6067acc3bd88b3e (diff) | |
download | linux-766928fbf8c989f65184c3ed0d48fd3004213c46.tar.xz |
mrf24j40: add default channel setting
Per default mrf24j40 has the channel 11 after reset. This patch adds the
right phy default value for the channel setting.
Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ieee802154/mrf24j40.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/ieee802154/mrf24j40.c b/drivers/net/ieee802154/mrf24j40.c index 89150bd43ab2..7c224cdbe561 100644 --- a/drivers/net/ieee802154/mrf24j40.c +++ b/drivers/net/ieee802154/mrf24j40.c @@ -720,6 +720,11 @@ err_ret: return ret; } +static void mrf24j40_phy_setup(struct mrf24j40 *devrec) +{ + devrec->hw->phy->current_channel = 11; +} + static int mrf24j40_probe(struct spi_device *spi) { int ret = -ENOMEM; @@ -759,6 +764,8 @@ static int mrf24j40_probe(struct spi_device *spi) if (ret) goto err_register_device; + mrf24j40_phy_setup(devrec); + ret = devm_request_threaded_irq(&spi->dev, spi->irq, NULL, |