mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-21 12:03:40 +00:00
Merge pull request #455 from adamg88/linux-6.8-support
changes for kernel v6.8
This commit is contained in:
commit
f42fc9c45d
3 changed files with 7 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -7,6 +7,8 @@ EXTRA_CFLAGS += -Wno-unused-parameter
|
|||
EXTRA_CFLAGS += -Wno-unused-function
|
||||
EXTRA_CFLAGS += -Wno-unused
|
||||
EXTRA_CFLAGS += -Wno-uninitialized
|
||||
EXTRA_CFLAGS += -Wno-missing-prototypes
|
||||
EXTRA_CFLAGS += -Wno-missing-declarations
|
||||
|
||||
GCC_VER_49 := $(shell echo `$(CC) -dumpversion | cut -f1-2 -d.` \>= 4.9 | bc )
|
||||
ifeq ($(GCC_VER_49),1)
|
||||
|
|
|
@ -7,6 +7,10 @@
|
|||
#include <hal_data.h>
|
||||
#include <rtw_debug.h>
|
||||
|
||||
#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.");
|
||||
|
|
|
@ -167,7 +167,7 @@ static struct rtw_usb_drv usb_drv = {
|
|||
.usbdrv.supports_autosuspend = 1,
|
||||
#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,
|
||||
|
|
Loading…
Reference in a new issue