67ebb82b38786069956c4312eeae7371a8b97ee2
[openwrt/openwrt.git] / package / kernel / rtl8812au-ct / patches / 003-wireless-5.8.patch
1 --- a/os_dep/linux/ioctl_cfg80211.c
2 +++ b/os_dep/linux/ioctl_cfg80211.c
3 @@ -5177,6 +5177,15 @@ exit:
4 return ret;
5 }
6
7 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 8, 0)) || defined(BUILD_OPENWRT)
8 +static void cfg80211_rtw_update_mgmt_frame_registrations(struct wiphy *wiphy,
9 + struct wireless_dev *wdev,
10 + struct mgmt_frame_regs *upd)
11 +{
12 +
13 +}
14 +#endif
15 +
16 #if defined(CONFIG_TDLS) && (LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0))
17 static int cfg80211_rtw_tdls_mgmt(struct wiphy *wiphy,
18 struct net_device *ndev,
19 @@ -5990,7 +5999,10 @@ static struct cfg80211_ops rtw_cfg80211_
20 .cancel_remain_on_channel = cfg80211_rtw_cancel_remain_on_channel,
21 #endif
22
23 -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) || defined(COMPAT_KERNEL_RELEASE)
24 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,8,0)) || defined(BUILD_OPENWRT)
25 + .mgmt_tx = cfg80211_rtw_mgmt_tx,
26 + .update_mgmt_frame_registrations = cfg80211_rtw_update_mgmt_frame_registrations,
27 +#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) || defined(COMPAT_KERNEL_RELEASE)
28 .mgmt_tx = cfg80211_rtw_mgmt_tx,
29 #elif (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,34) && LINUX_VERSION_CODE<=KERNEL_VERSION(2,6,35))
30 .action = cfg80211_rtw_mgmt_tx,