From 2db475395d544883df72ba8d7716abf027c25854 Mon Sep 17 00:00:00 2001 From: Evgeny Boger Date: Sun, 19 Nov 2023 21:38:37 +0300 Subject: [PATCH] fix for removed REGULATORY_IGNORE_STALE_KICKOFF see https://github.com/morrownr/88x2bu-20210702/pull/186 for details --- os_dep/linux/wifi_regd.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/os_dep/linux/wifi_regd.c b/os_dep/linux/wifi_regd.c index 81e1dc7..5a0fa39 100644 --- a/os_dep/linux/wifi_regd.c +++ b/os_dep/linux/wifi_regd.c @@ -405,7 +405,12 @@ int rtw_regd_init(struct wiphy *wiphy) wiphy->regulatory_flags &= ~REGULATORY_DISABLE_BEACON_HINTS; #endif -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0)) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0)) \ + && ((LINUX_VERSION_CODE < KERNEL_VERSION(6, 1, 39)) \ + || (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 2, 0))) \ + && ((LINUX_VERSION_CODE < KERNEL_VERSION(6, 3, 13)) \ + || (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 4, 0))) \ + && (LINUX_VERSION_CODE < KERNEL_VERSION(6, 4, 4)) wiphy->regulatory_flags |= REGULATORY_IGNORE_STALE_KICKOFF; #endif