fix build for kernel 6.15

This commit is contained in:
Dominik Wójt
2025-05-03 20:20:21 +02:00
parent ac64712f67
commit b01f1ad2eb
4 changed files with 295 additions and 284 deletions

569
Makefile

File diff suppressed because it is too large Load Diff

View File

@@ -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.

View File

@@ -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)

View File

@@ -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;
}