mirror of
https://github.com/amazingfate/rtl8723ds.git
synced 2026-01-28 13:53:18 +00:00
fix build for kernel 6.15
This commit is contained in:
@@ -24,7 +24,7 @@ cd rtl8723ds
|
||||
nano Makefile
|
||||
```
|
||||
|
||||
Step - 2: Find the line that contains `EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE` and insert a `#` symbol at the beginning of that line.
|
||||
Step - 2: Find the line that contains `ccflags-y += -DCONFIG_CONCURRENT_MODE` and insert a `#` symbol at the beginning of that line.
|
||||
This comments that line and disables concurrent mode.
|
||||
|
||||
Step - 3: Now, run the following commands in the same Linux terminal.
|
||||
|
||||
@@ -326,7 +326,11 @@ extern void rtw_init_timer(_timer *ptimer, void *padapter, void *pfunc);
|
||||
|
||||
__inline static unsigned char _cancel_timer_ex(_timer *ptimer)
|
||||
{
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 15, 0))
|
||||
return timer_delete_sync(ptimer);
|
||||
#else
|
||||
return del_timer_sync(ptimer);
|
||||
#endif
|
||||
}
|
||||
|
||||
static __inline void thread_enter(char *name)
|
||||
|
||||
@@ -304,7 +304,11 @@ __inline static void _set_timer(_timer *ptimer, u32 delay_time)
|
||||
|
||||
__inline static void _cancel_timer(_timer *ptimer, u8 *bcancelled)
|
||||
{
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 15, 0))
|
||||
timer_delete_sync(ptimer);
|
||||
#else
|
||||
del_timer_sync(ptimer);
|
||||
#endif
|
||||
*bcancelled = 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user