mac80211: add rtl8723bs for kernel 5.18 support for Ryan

This commit is contained in:
lean 2022-07-11 02:43:03 +08:00
parent beb34205ed
commit 86ea102156

View File

@ -0,0 +1,14 @@
--- a/drivers/staging/rtl8723bs/include/osdep_service_linux.h
+++ a/drivers/staging/rtl8723bs/include/osdep_service_linux.h
@@ -45,7 +45,11 @@
spinlock_t lock;
};
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 17, 0))
+ #define thread_exit() kthread_complete_and_exit(NULL, 0)
+#else
#define thread_exit() complete_and_exit(NULL, 0)
+#endif
static inline struct list_head *get_next(struct list_head *list)
{