summaryrefslogtreecommitdiff
path: root/drivers/staging/vt6655/ioctl.c
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2013-08-30 16:08:52 (GMT)
committerDavid S. Miller <davem@davemloft.net>2013-09-04 00:57:50 (GMT)
commit314cb11b493e7b8cfc7e2db01ad8e4e8bc0a259d (patch)
tree758a813e35f67ff4007a1f38bb12923315d7f1cf /drivers/staging/vt6655/ioctl.c
parentd32a96e26acce17c565480363a1078f0c9e677f1 (diff)
downloadlinux-fsl-qoriq-314cb11b493e7b8cfc7e2db01ad8e4e8bc0a259d.tar.xz
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/ioctl.c')
-rw-r--r--drivers/staging/vt6655/ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vt6655/ioctl.c b/drivers/staging/vt6655/ioctl.c
index 46e0e41..b5cd2e4 100644
--- a/drivers/staging/vt6655/ioctl.c
+++ b/drivers/staging/vt6655/ioctl.c
@@ -460,7 +460,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq)
}
if (sValue.dwValue == 1) {
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "up wpadev\n");
- memcpy(pDevice->wpadev->dev_addr, pDevice->dev->dev_addr, ETH_ALEN);
+ eth_hw_addr_inherit(pDevice->wpadev, pDevice->dev);
pDevice->bWPADEVUp = true;
} else {
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "close wpadev\n");