Skip to content

Commit

Permalink
net: usb: asix88179_178a: set permanent address once only
Browse files Browse the repository at this point in the history
The permanent address of asix88179_178a devices is read at probe time
and should not be overwritten later. Otherwise it may be overwritten
unintentionally with a configured address.

Signed-off-by: Alexander Kurz <akurz@blala.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Alexander Kurz authored and David S. Miller committed Mar 9, 2018
1 parent 9b5d5f4 commit 84c4df4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/net/usb/ax88179_178a.c
Original file line number Diff line number Diff line change
Expand Up @@ -1556,7 +1556,6 @@ static int ax88179_reset(struct usbnet *dev)

ax88179_read_cmd(dev, AX_ACCESS_MAC, AX_NODE_ID, ETH_ALEN, ETH_ALEN,
dev->net->dev_addr);
memcpy(dev->net->perm_addr, dev->net->dev_addr, ETH_ALEN);

/* RX bulk configuration */
memcpy(tmp, &AX88179_BULKIN_SIZE[0], 5);
Expand Down

0 comments on commit 84c4df4

Please sign in to comment.