From 43111f19724a9ca4e351769e0c3db88fbb6f84f5 Mon Sep 17 00:00:00 2001 From: 5kft <5kft@users.noreply.github.com> Date: Sun, 21 Jan 2024 08:10:45 -0800 Subject: [PATCH] changes for kernel v6.8 --- Makefile | 3 ++- os_dep/linux/os_intfs.c | 4 ++++ os_dep/linux/usb_intf.c | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 34ddda0..d2fc7c5 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 2c07635..63716bf 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,