diff options
author | Bjørn Mork <bjorn@mork.no> | 2013-08-30 18:08:52 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-09-03 20:57:50 -0400 |
commit | 314cb11b493e7b8cfc7e2db01ad8e4e8bc0a259d (patch) | |
tree | 758a813e35f67ff4007a1f38bb12923315d7f1cf /drivers/staging/vt6655/hostap.c | |
parent | d32a96e26acce17c565480363a1078f0c9e677f1 (diff) |
staging: vt6655: inherit addr_assign_type along with dev_addr
A device inheriting a random or set address should reflect this in
its addr_assign_type.
Cc: Forest Bond <forest@alittletooquiet.net>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/staging/vt6655/hostap.c')
-rw-r--r-- | drivers/staging/vt6655/hostap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vt6655/hostap.c b/drivers/staging/vt6655/hostap.c index 57a08c5771f..8acff44a9e7 100644 --- a/drivers/staging/vt6655/hostap.c +++ b/drivers/staging/vt6655/hostap.c @@ -86,7 +86,7 @@ static int hostap_enable_hostapd(PSDevice pDevice, int rtnl_locked) apdev_priv = netdev_priv(pDevice->apdev); *apdev_priv = *pDevice; - memcpy(pDevice->apdev->dev_addr, dev->dev_addr, ETH_ALEN); + eth_hw_addr_inherit(pDevice->apdev, dev); pDevice->apdev->netdev_ops = &apdev_netdev_ops; |