Added Kernel 5.17 support
This commit is contained in:
parent
1cc0023690
commit
e0c990215e
|
@ -2174,7 +2174,11 @@ int rtw_os_ndev_register(_adapter *adapter, const char *name)
|
|||
/* alloc netdev name */
|
||||
rtw_init_netdev_name(ndev, name);
|
||||
|
||||
#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0))
|
||||
_rtw_memcpy(ndev->dev_addr, adapter_mac_addr(adapter), ETH_ALEN);
|
||||
#else
|
||||
dev_addr_set(ndev, adapter_mac_addr(adapter));
|
||||
#endif
|
||||
|
||||
/* Tell the network stack we exist */
|
||||
|
||||
|
|
Loading…
Reference in New Issue