rtl88x2bu: fixes build with mac80211 5.15
This commit is contained in:
parent
9bb33781e9
commit
53343e0c9c
@ -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;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user