mac80211: Update to version 5.8-rc2-1
[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,14 @@ 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 +#else
15 static void cfg80211_rtw_mgmt_frame_register(struct wiphy *wiphy,
16 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 6, 0))
17 struct wireless_dev *wdev,
18 @@ -5205,6 +5213,7 @@ static void cfg80211_rtw_mgmt_frame_regi
19 exit:
20 return;
21 }
22 +#endif
23
24 #if defined(CONFIG_TDLS) && (LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0))
25 static int cfg80211_rtw_tdls_mgmt(struct wiphy *wiphy,
26 @@ -6019,7 +6028,10 @@ static struct cfg80211_ops rtw_cfg80211_
27 .cancel_remain_on_channel = cfg80211_rtw_cancel_remain_on_channel,
28 #endif
29
30 -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) || defined(COMPAT_KERNEL_RELEASE)
31 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,8,0)) || defined(BUILD_OPENWRT)
32 + .mgmt_tx = cfg80211_rtw_mgmt_tx,
33 + .update_mgmt_frame_registrations = cfg80211_rtw_update_mgmt_frame_registrations,
34 +#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) || defined(COMPAT_KERNEL_RELEASE)
35 .mgmt_tx = cfg80211_rtw_mgmt_tx,
36 .mgmt_frame_register = cfg80211_rtw_mgmt_frame_register,
37 #elif (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,34) && LINUX_VERSION_CODE<=KERNEL_VERSION(2,6,35))