Commit f6f4e86a authored by Alexander Aring's avatar Alexander Aring Committed by Marcel Holtmann

at86rf230: generate random perm extended address

This patch adds support for a random generated perm extended address for
the at86rf230 driver.
Signed-off-by: default avatarAlexander Aring <alex.aring@gmail.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent dee56d14
...@@ -1534,6 +1534,7 @@ static int at86rf230_probe(struct spi_device *spi) ...@@ -1534,6 +1534,7 @@ static int at86rf230_probe(struct spi_device *spi)
lp->spi = spi; lp->spi = spi;
hw->parent = &spi->dev; hw->parent = &spi->dev;
hw->vif_data_size = sizeof(*lp); 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); lp->regmap = devm_regmap_init_spi(spi, &at86rf230_regmap_spi_config);
if (IS_ERR(lp->regmap)) { if (IS_ERR(lp->regmap)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment