diff --git a/Makefile b/Makefile index 998c802..c219095 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,8 @@ EXTRA_CFLAGS += -Wno-misleading-indentation EXTRA_CFLAGS += -Wno-implicit-fallthrough #EXTRA_CFLAGS += -Wno-return-type #EXTRA_CFLAGS += -Wno-discarded-qualifiers - +EXTRA_CFLAGS += -Wno-missing-prototypes +EXTRA_CFLAGS += -Wno-missing-declarations # Activates Concurrent Mode if uncommented #EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE diff --git a/os_dep/linux/os_intfs.c b/os_dep/linux/os_intfs.c index c1c22d2..8610688 100644 --- a/os_dep/linux/os_intfs.c +++ b/os_dep/linux/os_intfs.c @@ -17,6 +17,10 @@ #include #include +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 8, 0)) +#define strlcpy strscpy +#endif + MODULE_LICENSE("GPL"); MODULE_DESCRIPTION("Realtek Wireless Lan Driver"); MODULE_AUTHOR("Realtek Semiconductor Corp."); diff --git a/os_dep/linux/usb_intf.c b/os_dep/linux/usb_intf.c index fa2c048..d989158 100644 --- a/os_dep/linux/usb_intf.c +++ b/os_dep/linux/usb_intf.c @@ -337,7 +337,7 @@ struct rtw_usb_drv usb_drv = { .usbdrv.reset_resume = rtw_resume, #endif -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19)) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19)) && (LINUX_VERSION_CODE < KERNEL_VERSION(6, 8, 0)) .usbdrv.drvwrap.driver.shutdown = rtw_dev_shutdown, #else .usbdrv.driver.shutdown = rtw_dev_shutdown,