38 lines
1.4 KiB
Diff
38 lines
1.4 KiB
Diff
|
|
--- a/os_dep/linux/ioctl_cfg80211.c
|
||
|
|
+++ b/os_dep/linux/ioctl_cfg80211.c
|
||
|
|
@@ -7597,6 +7597,14 @@ exit:
|
||
|
|
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)
|
||
|
|
+{
|
||
|
|
+
|
||
|
|
+}
|
||
|
|
+#else
|
||
|
|
static void cfg80211_rtw_mgmt_frame_register(struct wiphy *wiphy,
|
||
|
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 6, 0))
|
||
|
|
struct wireless_dev *wdev,
|
||
|
|
@@ -7651,6 +7659,7 @@ static void cfg80211_rtw_mgmt_frame_register(struct wiphy *wiphy,
|
||
|
|
exit:
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
+#endif
|
||
|
|
|
||
|
|
#if defined(CONFIG_TDLS) && (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0))
|
||
|
|
static int cfg80211_rtw_tdls_mgmt(struct wiphy *wiphy,
|
||
|
|
@@ -10067,7 +10076,10 @@ static struct cfg80211_ops rtw_cfg80211_ops = {
|
||
|
|
.update_ft_ies = cfg80211_rtw_update_ft_ies,
|
||
|
|
#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,
|
||
|
|
.mgmt_frame_register = cfg80211_rtw_mgmt_frame_register,
|
||
|
|
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 34) && LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 35))
|