mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-21 12:03:40 +00:00
rtl8188eu: Fix shadow copy of dev_addr
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
96ecc77616
commit
f5d1c8df2e
2 changed files with 2 additions and 2 deletions
|
@ -382,7 +382,7 @@ int rtw_change_ifname(struct adapter *padapter, const char *ifname)
|
||||||
|
|
||||||
rtw_init_netdev_name(pnetdev, ifname);
|
rtw_init_netdev_name(pnetdev, ifname);
|
||||||
|
|
||||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0)
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0)
|
||||||
memcpy(pnetdev->dev_addr, padapter->eeprompriv.mac_addr, ETH_ALEN);
|
memcpy(pnetdev->dev_addr, padapter->eeprompriv.mac_addr, ETH_ALEN);
|
||||||
#else
|
#else
|
||||||
dev_addr_set(pnetdev, padapter->eeprompriv.mac_addr);
|
dev_addr_set(pnetdev, padapter->eeprompriv.mac_addr);
|
||||||
|
|
|
@ -691,7 +691,7 @@ static struct adapter *rtw_usb_if1_init(struct dvobj_priv *dvobj,
|
||||||
rtw_init_wifidirect_addrs(padapter, padapter->eeprompriv.mac_addr,
|
rtw_init_wifidirect_addrs(padapter, padapter->eeprompriv.mac_addr,
|
||||||
padapter->eeprompriv.mac_addr);
|
padapter->eeprompriv.mac_addr);
|
||||||
#endif
|
#endif
|
||||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0)
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0)
|
||||||
memcpy(pnetdev->dev_addr, padapter->eeprompriv.mac_addr, ETH_ALEN);
|
memcpy(pnetdev->dev_addr, padapter->eeprompriv.mac_addr, ETH_ALEN);
|
||||||
#else
|
#else
|
||||||
dev_addr_set(pnetdev, padapter->eeprompriv.mac_addr);
|
dev_addr_set(pnetdev, padapter->eeprompriv.mac_addr);
|
||||||
|
|
Loading…
Reference in a new issue