diff --git a/patch/misc/wireless-rtl8189es-Fix-building-on-5.4.251-kernel.patch b/patch/misc/wireless-rtl8189es-Fix-building-on-5.4.251-kernel.patch index 382459d4d..e3769753b 100644 --- a/patch/misc/wireless-rtl8189es-Fix-building-on-5.4.251-kernel.patch +++ b/patch/misc/wireless-rtl8189es-Fix-building-on-5.4.251-kernel.patch @@ -16,7 +16,7 @@ index 15255cb..f4ed355 100644 #endif -#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0)) -+#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 251)) ++#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 diff --git a/patch/misc/wireless-rtl8189fs-Fix-building-on-5.4.251-kernel.patch b/patch/misc/wireless-rtl8189fs-Fix-building-on-5.4.251-kernel.patch index 7dae3337c..8a343e93b 100644 --- a/patch/misc/wireless-rtl8189fs-Fix-building-on-5.4.251-kernel.patch +++ b/patch/misc/wireless-rtl8189fs-Fix-building-on-5.4.251-kernel.patch @@ -16,7 +16,7 @@ index e1daa04..6c6d0d8 100644 #endif -#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0)) -+#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 251)) ++#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 diff --git a/patch/misc/wireless-rtl8192eu-Fix-building-on-5.4.251-kernel.patch b/patch/misc/wireless-rtl8192eu-Fix-building-on-5.4.251-kernel.patch index 82d8bcafc..4fc39d465 100644 --- a/patch/misc/wireless-rtl8192eu-Fix-building-on-5.4.251-kernel.patch +++ b/patch/misc/wireless-rtl8192eu-Fix-building-on-5.4.251-kernel.patch @@ -16,7 +16,7 @@ index 8ade04f..3f8b0fa 100644 typedef unsigned long systime; -#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0)) -+#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 251)) ++#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 v5.15-rc1 48eab831ae8b9f7002a533fa4235eed63ea1f1a3 */ static inline void eth_hw_addr_set(struct net_device *dev, const u8 *addr) {