mrf24j40: add random extended addr generation
authorAlexander Aring <alex.aring@gmail.com>
Mon, 21 Sep 2015 09:24:28 +0000 (11:24 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 22 Sep 2015 09:51:21 +0000 (11:51 +0200)
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>
drivers/net/ieee802154/mrf24j40.c

index 7c224cdbe56153ca7a8cab5ab66199323f083b1e..80b3c6e72cb377a6b5ee54ac1e7136b387f6c53e 100644 (file)
@@ -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;
 }