distribution/packages/kernel/linux-drivers/RTL8812AU/patches/000-6.1.39-fix.patch

13 lines
570 B
Diff

diff --git a/os_dep/linux/wifi_regd.c b/os_dep/linux/wifi_regd.c
index ee12492..9f15d1a 100644
--- a/os_dep/linux/wifi_regd.c
+++ b/os_dep/linux/wifi_regd.c
@@ -405,7 +405,7 @@ int rtw_regd_init(struct wiphy *wiphy)
wiphy->regulatory_flags &= ~REGULATORY_DISABLE_BEACON_HINTS;
#endif
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0)) && (LINUX_VERSION_CODE < KERNEL_VERSION(6, 5, 0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0)) && (LINUX_VERSION_CODE < KERNEL_VERSION(6, 1, 38))
wiphy->regulatory_flags |= REGULATORY_IGNORE_STALE_KICKOFF;
#endif