From e3e894ed58e0099ed94684575b8a9818d7144ecc Mon Sep 17 00:00:00 2001 From: Arch User Date: Mon, 2 Mar 2026 05:54:23 +0300 Subject: [PATCH 1/6] Update ioctl_linux.c(Support Linux Kernel 7.0(RC-1) --- os_dep/linux/ioctl_linux.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/os_dep/linux/ioctl_linux.c b/os_dep/linux/ioctl_linux.c index cb1bba6..8888b1b 100644 --- a/os_dep/linux/ioctl_linux.c +++ b/os_dep/linux/ioctl_linux.c @@ -14,6 +14,8 @@ *****************************************************************************/ #define _IOCTL_LINUX_C_ + +#include #include #include #include @@ -22,6 +24,10 @@ #include "../../hal/hal_halmac.h" #endif +#ifdef __KERNEL__ +extern int mac_pton(const char *s, u8 *addr); +#endif + #if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 27)) #define iwe_stream_add_event(a, b, c, d, e) iwe_stream_add_event(b, c, d, e) #define iwe_stream_add_point(a, b, c, d, e) iwe_stream_add_point(b, c, d, e) From 8b104743647278d05415003b5f45f18daee068fe Mon Sep 17 00:00:00 2001 From: Arch User Date: Thu, 12 Mar 2026 06:56:53 +0300 Subject: [PATCH 2/6] Update ioctl_linux.c --- os_dep/linux/ioctl_linux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/os_dep/linux/ioctl_linux.c b/os_dep/linux/ioctl_linux.c index 8888b1b..1ccbbe1 100644 --- a/os_dep/linux/ioctl_linux.c +++ b/os_dep/linux/ioctl_linux.c @@ -25,6 +25,7 @@ #endif #ifdef __KERNEL__ +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(7, 0, 0)) extern int mac_pton(const char *s, u8 *addr); #endif From 27e51d1b9e17d16dbc9dcf9f0c3469b3c4dd835b Mon Sep 17 00:00:00 2001 From: Arch User Date: Thu, 12 Mar 2026 07:29:53 +0300 Subject: [PATCH 3/6] Update ioctl_linux.c add #endif --- os_dep/linux/ioctl_linux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/os_dep/linux/ioctl_linux.c b/os_dep/linux/ioctl_linux.c index 1ccbbe1..6103850 100644 --- a/os_dep/linux/ioctl_linux.c +++ b/os_dep/linux/ioctl_linux.c @@ -28,6 +28,7 @@ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(7, 0, 0)) extern int mac_pton(const char *s, u8 *addr); #endif +#endif #if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 27)) #define iwe_stream_add_event(a, b, c, d, e) iwe_stream_add_event(b, c, d, e) From 218c01eb394d2a51106943ffac1c80897230cf02 Mon Sep 17 00:00:00 2001 From: Arch User Date: Thu, 12 Mar 2026 23:51:48 +0300 Subject: [PATCH 4/6] Update osdep_service.h --- include/osdep_service.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/osdep_service.h b/include/osdep_service.h index ae08c06..3036b69 100644 --- a/include/osdep_service.h +++ b/include/osdep_service.h @@ -315,7 +315,7 @@ static __inline void thread_enter(char *name) allow_signal(SIGTERM); #endif } -void thread_exit(_completion *comp); +__noreturn void thread_exit(_completion *comp); void _rtw_init_completion(_completion *comp); void _rtw_wait_for_comp_timeout(_completion *comp); void _rtw_wait_for_comp(_completion *comp); From 04bb99fd6deb97d5c333e5520115d62463bde10d Mon Sep 17 00:00:00 2001 From: Arch User Date: Thu, 12 Mar 2026 23:54:13 +0300 Subject: [PATCH 5/6] Update rtw_mp.c --- core/rtw_mp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/core/rtw_mp.c b/core/rtw_mp.c index 951b76e..7a42db4 100644 --- a/core/rtw_mp.c +++ b/core/rtw_mp.c @@ -1356,7 +1356,6 @@ exit: pmptx->stop = 1; thread_exit(NULL); - return 0; } void fill_txdesc_for_mp(PADAPTER padapter, u8 *ptxdesc) From 7381b377a0c220e93e36b5fd3c68cba4a3dacfc0 Mon Sep 17 00:00:00 2001 From: Arch User Date: Thu, 12 Mar 2026 23:58:29 +0300 Subject: [PATCH 6/6] Update osdep_service.c --- os_dep/osdep_service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os_dep/osdep_service.c b/os_dep/osdep_service.c index e6954c3..833f823 100644 --- a/os_dep/osdep_service.c +++ b/os_dep/osdep_service.c @@ -872,7 +872,7 @@ u32 _rtw_down_sema(_sema *sema) } -inline void thread_exit(_completion *comp) +__noreturn inline void thread_exit(_completion *comp) { #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0) complete_and_exit(comp, 0);