summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-11-05 20:51:26 +0100
committerMarcel Holtmann <marcel@holtmann.org>2014-11-05 21:53:05 +0100
commitf6f4e86a1a3be1c4ecbafe7828764736daf4cf63 (patch)
tree375993b49bdd85ab53f636e69e68b1a38a05cbdc /drivers
parentdee56d14779b1e01706adafb9e020303318e22e3 (diff)
downloadlinux-f6f4e86a1a3be1c4ecbafe7828764736daf4cf63.tar.gz
linux-f6f4e86a1a3be1c4ecbafe7828764736daf4cf63.tar.bz2
linux-f6f4e86a1a3be1c4ecbafe7828764736daf4cf63.zip
at86rf230: generate random perm extended address
This patch adds support for a random generated perm extended address for the at86rf230 driver. 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/at86rf230.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c
index bf477851415b..a6db76806715 100644
--- a/drivers/net/ieee802154/at86rf230.c
+++ b/drivers/net/ieee802154/at86rf230.c
@@ -1534,6 +1534,7 @@ static int at86rf230_probe(struct spi_device *spi)
lp->spi = spi;
hw->parent = &spi->dev;
hw->vif_data_size = sizeof(*lp);
+ ieee802154_random_extended_addr(&hw->phy->perm_extended_addr);
lp->regmap = devm_regmap_init_spi(spi, &at86rf230_regmap_spi_config);
if (IS_ERR(lp->regmap)) {