From d6a11dfbb17ec5af73b8649142bd022deba118cb Mon Sep 17 00:00:00 2001 From: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com> Date: Wed, 9 Feb 2022 12:19:28 +0800 Subject: [PATCH] rtl88x2bu: fixes build with mac80211 5.15 (cherry picked from commit 53343e0c9c8d9ad63ac1dfea3d6344213a0fa2e8) Signed-off-by: Tianling Shen --- .../{020-wireless-5.8.patch => 030-wireless-5.8.patch} | 9 +++++++++ 1 file changed, 9 insertions(+) rename package/kernel/rtl88x2bu/patches/{020-wireless-5.8.patch => 030-wireless-5.8.patch} (67%) diff --git a/package/kernel/rtl88x2bu/patches/020-wireless-5.8.patch b/package/kernel/rtl88x2bu/patches/030-wireless-5.8.patch similarity index 67% rename from package/kernel/rtl88x2bu/patches/020-wireless-5.8.patch rename to package/kernel/rtl88x2bu/patches/030-wireless-5.8.patch index b5911b0436..0e92f1f845 100644 --- a/package/kernel/rtl88x2bu/patches/020-wireless-5.8.patch +++ b/package/kernel/rtl88x2bu/patches/030-wireless-5.8.patch @@ -1,5 +1,14 @@ --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c +@@ -437,7 +437,7 @@ u8 rtw_cfg80211_ch_switch_notify(_adapter *adapter, u8 ch, u8 bw, u8 offset, + + #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0)) + if (started) { +- #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0)) ++ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0)) || defined(BUILD_OPENWRT) + + /* --- cfg80211_ch_switch_started_notfiy() --- + * A new parameter, bool quiet, is added from Linux kernel v5.11, @@ -7808,7 +7808,7 @@ exit: return ret; }