[PATCH net-next 10/10] staging: vt6656: inherit addr_assign_type along with dev_addr

Bjørn Mork bjorn at mork.no
Fri Aug 23 09:35:13 UTC 2013


Cc: Forest Bond <forest at alittletooquiet.net>
Signed-off-by: Bjørn Mork <bjorn at mork.no>
---
 drivers/staging/vt6656/hostap.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/vt6656/hostap.c b/drivers/staging/vt6656/hostap.c
index c699a30..3ddef9d 100644
--- a/drivers/staging/vt6656/hostap.c
+++ b/drivers/staging/vt6656/hostap.c
@@ -77,7 +77,7 @@ static int hostap_enable_hostapd(struct vnt_private *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;
 
-- 
1.7.10.4



More information about the devel mailing list