net: usb: asix88179_178a: set permanent address once only
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>
This commit is contained in:
parent
9b5d5f4f96
commit
84c4df4002
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue