Cleanup memcpy warnings

Introduce eth_hw_addr_set from 5.15
Port 48eab831ae
Port 6ed178cb23
This commit is contained in:
Carlos Garcés
2022-03-13 11:43:51 +01:00
parent 5fb30bc593
commit 0f1952813c
5 changed files with 15 additions and 8 deletions

View File

@@ -404,8 +404,7 @@ int hostapd_mode_init(_adapter *padapter)
mac[4] = 0x11;
mac[5] = 0x12;
memcpy(pnetdev->dev_addr, mac, ETH_ALEN);
eth_hw_addr_set(pnetdev, mac);
rtw_netif_carrier_off(pnetdev);