mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2024-11-22 05:14:35 +00:00
Merge pull request #1123 from bwh-mind/compat
Kernel compatibility fixes
This commit is contained in:
commit
d07318ce9a
@ -17,10 +17,11 @@
|
|||||||
|
|
||||||
#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0))
|
#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0))
|
||||||
/* Porting from linux kernel v5.15 48eab831ae8b9f7002a533fa4235eed63ea1f1a3 3f6cffb8604b537e3d7ea040d7f4368689638eaf*/
|
/* Porting from linux kernel v5.15 48eab831ae8b9f7002a533fa4235eed63ea1f1a3 3f6cffb8604b537e3d7ea040d7f4368689638eaf*/
|
||||||
static inline void eth_hw_addr_set(struct net_device *dev, const u8 *addr)
|
static inline void rtw_eth_hw_addr_set(struct net_device *dev, const u8 *addr)
|
||||||
{
|
{
|
||||||
memcpy(dev->dev_addr, addr, ETH_ALEN);
|
memcpy(dev->dev_addr, addr, ETH_ALEN);
|
||||||
}
|
}
|
||||||
|
#define eth_hw_addr_set rtw_eth_hw_addr_set
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1640,7 +1640,9 @@ static void __exit rtw_drv_halt(void)
|
|||||||
rtw_mstat_dump(RTW_DBGDUMP);
|
rtw_mstat_dump(RTW_DBGDUMP);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef MODULE_IMPORT_NS
|
||||||
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
|
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
|
||||||
|
#endif
|
||||||
|
|
||||||
module_init(rtw_drv_entry);
|
module_init(rtw_drv_entry);
|
||||||
module_exit(rtw_drv_halt);
|
module_exit(rtw_drv_halt);
|
||||||
|
Loading…
Reference in New Issue
Block a user