From: Varka Bhadram Date: Fri, 26 Dec 2014 04:43:40 +0000 (+0530) Subject: cc2520: fix zero perm_extended_addr address X-Git-Tag: MMI-PSA29.97-13-9~10678^2~303^2~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7fc1b2d56f399f65e96559fe449c0ca09d2c36c7;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git cc2520: fix zero perm_extended_addr address It will remove the bug of havine zero perm_extended_addr address. Signed-off-by: Varka Bhadram Signed-off-by: Marcel Holtmann --- 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;