]> git.karo-electronics.de Git - linux-beck.git/commitdiff
at86rf230: generate random perm extended address
authorAlexander Aring <alex.aring@gmail.com>
Wed, 5 Nov 2014 19:51:26 +0000 (20:51 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 5 Nov 2014 20:53:05 +0000 (21:53 +0100)
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>
drivers/net/ieee802154/at86rf230.c

index bf477851415b2035b2595fcaae4e8779e505ab68..a6db768067156971edf011b075156e8114e49f03 100644 (file)
@@ -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)) {