diff options
author | Alexander Aring <alex.aring@gmail.com> | 2015-09-21 11:24:28 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-09-22 11:51:21 +0200 |
commit | d344c91280326469e5f9c5a3b1b92ef0d1c5d25f (patch) | |
tree | e19f603fe39516c42a42f7ca87094b298802d428 /drivers/net/ieee802154/mrf24j40.c | |
parent | mrf24j40: add default channel setting (diff) | |
download | linux-d344c91280326469e5f9c5a3b1b92ef0d1c5d25f.tar.xz linux-d344c91280326469e5f9c5a3b1b92ef0d1c5d25f.zip |
mrf24j40: add random extended addr generation
The mrf24j40 has no source to get a permanent extended address. This
patch will add a random generated permanent extended address source.
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/net/ieee802154/mrf24j40.c')
-rw-r--r-- | drivers/net/ieee802154/mrf24j40.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ieee802154/mrf24j40.c b/drivers/net/ieee802154/mrf24j40.c index 7c224cdbe561..80b3c6e72cb3 100644 --- a/drivers/net/ieee802154/mrf24j40.c +++ b/drivers/net/ieee802154/mrf24j40.c @@ -722,6 +722,7 @@ err_ret: static void mrf24j40_phy_setup(struct mrf24j40 *devrec) { + ieee802154_random_extended_addr(&devrec->hw->phy->perm_extended_addr); devrec->hw->phy->current_channel = 11; } |