diff options
author | Alexander Aring <alex.aring@gmail.com> | 2015-05-17 21:45:07 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-05-19 11:44:46 +0200 |
commit | e214a9040a602552d40d0c71cdb38fac8f619cd6 (patch) | |
tree | 98155ea8376c61f8a501b96e42d1b027efafa4a9 /drivers/net/ieee802154/fakelb.c | |
parent | 12da8d97ab3239101077a415c2587bfbf6725216 (diff) | |
download | blackbird-op-linux-e214a9040a602552d40d0c71cdb38fac8f619cd6.tar.gz blackbird-op-linux-e214a9040a602552d40d0c71cdb38fac8f619cd6.zip |
fakelb: add virtual phy reset defaults
This patch adds reset defaults for the fakelb phy. I used the channel 13
and page 0 which is the same default like at86rf233.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/net/ieee802154/fakelb.c')
-rw-r--r-- | drivers/net/ieee802154/fakelb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ieee802154/fakelb.c b/drivers/net/ieee802154/fakelb.c index c60837e0df25..d693a539f8f3 100644 --- a/drivers/net/ieee802154/fakelb.c +++ b/drivers/net/ieee802154/fakelb.c @@ -173,6 +173,11 @@ static int fakelb_add_one(struct device *dev) /* 950 MHz GFSK 802.15.4d-2009 */ hw->phy->supported.channels[6] |= 0x3ffc00; + ieee802154_random_extended_addr(&hw->phy->perm_extended_addr); + /* fake phy channel 13 as default */ + hw->phy->current_channel = 13; + phy->channel = hw->phy->current_channel; + hw->parent = dev; err = ieee802154_register_hw(hw); |