2020-06-20 21:11:17 +00:00
|
|
|
--- a/os_dep/linux/ioctl_cfg80211.c
|
|
|
|
+++ b/os_dep/linux/ioctl_cfg80211.c
|
2023-08-15 22:11:45 +00:00
|
|
|
@@ -5196,6 +5196,15 @@ exit:
|
2020-06-20 21:11:17 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 8, 0)) || defined(BUILD_OPENWRT)
|
|
|
|
+static void cfg80211_rtw_update_mgmt_frame_registrations(struct wiphy *wiphy,
|
|
|
|
+ struct wireless_dev *wdev,
|
|
|
|
+ struct mgmt_frame_regs *upd)
|
|
|
|
+{
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+#endif
|
2021-02-19 00:34:43 +00:00
|
|
|
+
|
2020-06-20 21:11:17 +00:00
|
|
|
#if defined(CONFIG_TDLS) && (LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0))
|
|
|
|
static int cfg80211_rtw_tdls_mgmt(struct wiphy *wiphy,
|
2021-02-19 00:34:43 +00:00
|
|
|
struct net_device *ndev,
|
2023-08-15 22:11:45 +00:00
|
|
|
@@ -6009,7 +6018,10 @@ static struct cfg80211_ops rtw_cfg80211_
|
2020-06-20 21:11:17 +00:00
|
|
|
.cancel_remain_on_channel = cfg80211_rtw_cancel_remain_on_channel,
|
|
|
|
#endif
|
|
|
|
|
|
|
|
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) || defined(COMPAT_KERNEL_RELEASE)
|
|
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,8,0)) || defined(BUILD_OPENWRT)
|
|
|
|
+ .mgmt_tx = cfg80211_rtw_mgmt_tx,
|
|
|
|
+ .update_mgmt_frame_registrations = cfg80211_rtw_update_mgmt_frame_registrations,
|
|
|
|
+#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) || defined(COMPAT_KERNEL_RELEASE)
|
|
|
|
.mgmt_tx = cfg80211_rtw_mgmt_tx,
|
|
|
|
#elif (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,34) && LINUX_VERSION_CODE<=KERNEL_VERSION(2,6,35))
|
2021-02-19 00:34:43 +00:00
|
|
|
.action = cfg80211_rtw_mgmt_tx,
|