26 lines
1.0 KiB
Diff
26 lines
1.0 KiB
Diff
From c8b4455419a14a17be3585d475ec9c9df62a4d77 Mon Sep 17 00:00:00 2001
|
|
From: Julian Sikorski <belegdol+github@gmail.com>
|
|
Date: Sat, 29 Jul 2023 10:50:50 +0000
|
|
Subject: [PATCH] Fix building on 5.4.251+ kernel
|
|
|
|
---
|
|
include/osdep_service_linux.h | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/net/wireless/rtl8189es/include/osdep_service_linux.h b/drivers/net/wireless/rtl8189es/include/osdep_service_linux.h
|
|
index 15255cb..f4ed355 100644
|
|
--- a/drivers/net/wireless/rtl8189es/include/osdep_service_linux.h
|
|
+++ b/drivers/net/wireless/rtl8189es/include/osdep_service_linux.h
|
|
@@ -220,7 +220,7 @@ typedef void *timer_hdl_context;
|
|
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
|
|
#endif
|
|
|
|
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0))
|
|
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0) && LINUX_VERSION_CODE > KERNEL_VERSION(5, 5, 0)) || LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 251)
|
|
/* Porting from linux kernel commits
|
|
48eab831ae8b9f7002a533fa4235eed63ea1f1a3
|
|
3f6cffb8604b537e3d7ea040d7f4368689638eaf
|
|
--
|
|
2.34.1
|
|
|