diff options
author | Varka Bhadram <varkabhadram@gmail.com> | 2014-12-26 10:13:40 +0530 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-12-30 07:15:55 +0100 |
commit | 7fc1b2d56f399f65e96559fe449c0ca09d2c36c7 (patch) | |
tree | 9252d2c9af05a138d037bed155044d573ebfefaa /drivers/net/ieee802154 | |
parent | f50f1c37a663b7b76013638f60a400a16ddd2158 (diff) | |
download | blackbird-obmc-linux-7fc1b2d56f399f65e96559fe449c0ca09d2c36c7.tar.gz blackbird-obmc-linux-7fc1b2d56f399f65e96559fe449c0ca09d2c36c7.zip |
cc2520: fix zero perm_extended_addr address
It will remove the bug of havine zero perm_extended_addr address.
Signed-off-by: Varka Bhadram <varkab@cdac.in>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/net/ieee802154')
-rw-r--r-- | drivers/net/ieee802154/cc2520.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ieee802154/cc2520.c b/drivers/net/ieee802154/cc2520.c index 64017f1eca7f..a43c8acb7268 100644 --- a/drivers/net/ieee802154/cc2520.c +++ b/drivers/net/ieee802154/cc2520.c @@ -650,6 +650,7 @@ static int cc2520_register(struct cc2520_private *priv) priv->hw->parent = &priv->spi->dev; priv->hw->extra_tx_headroom = 0; priv->hw->vif_data_size = sizeof(*priv); + ieee802154_random_extended_addr(&priv->hw->phy->perm_extended_addr); /* We do support only 2.4 Ghz */ priv->hw->phy->channels_supported[0] = 0x7FFF800; |