mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
26 lines
1.1 KiB
Diff
26 lines
1.1 KiB
Diff
From a252923b17dd29ec4db7958a64f6856fc8159284 Mon Sep 17 00:00:00 2001
|
|
From: Patrick Yavitz <pyavitz@armbian.com>
|
|
Date: Sat, 22 Jun 2024 09:22:03 -0400
|
|
Subject: [PATCH] update rtw_regd_init for kernel v6.1.0
|
|
|
|
Signed-off-by: Patrick Yavitz <pyavitz@armbian.com>
|
|
---
|
|
drivers/net/wireless/realtek/rtl8852bs/os_dep/linux/wifi_regd.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/net/wireless/realtek/rtl8852bs/os_dep/linux/wifi_regd.c b/drivers/net/wireless/realtek/rtl8852bs/os_dep/linux/wifi_regd.c
|
|
index 5986af6f9209..f05084a31066 100644
|
|
--- a/drivers/net/wireless/realtek/rtl8852bs/os_dep/linux/wifi_regd.c
|
|
+++ b/drivers/net/wireless/realtek/rtl8852bs/os_dep/linux/wifi_regd.c
|
|
@@ -1276,7 +1276,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))
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0)) && (LINUX_VERSION_CODE < KERNEL_VERSION(6, 1, 0))
|
|
wiphy->regulatory_flags |= REGULATORY_IGNORE_STALE_KICKOFF;
|
|
#endif
|
|
|
|
--
|
|
2.39.2
|