]> git.pld-linux.org Git - packages/rtl8812au.git/blob - linux-4.7.patch
7cea56190134b18027c38f50982ef3f6e1d62be8
[packages/rtl8812au.git] / linux-4.7.patch
1 --- rtl8812au_linux-master/os_dep/linux/ioctl_cfg80211.c.orig   2016-08-01 21:49:34.559616222 +0200
2 +++ rtl8812au_linux-master/os_dep/linux/ioctl_cfg80211.c        2016-08-01 21:50:12.690473128 +0200
3 @@ -25,6 +25,13 @@
4  
5  #include <rtw_wifi_regd.h>
6  
7 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0))
8 +#define ieee80211_band nl80211_band
9 +#define IEEE80211_BAND_2GHZ NL80211_BAND_2GHZ
10 +#define IEEE80211_BAND_5GHZ NL80211_BAND_5GHZ
11 +#define IEEE80211_NUM_BANDS NUM_NL80211_BANDS
12 +#endif
13 +
14  #define RTW_MAX_MGMT_TX_CNT (8)
15  
16  #define RTW_SCAN_IE_LEN_MAX      2304
17 --- rtl8812au_linux-master/os_dep/linux/wifi_regd.c.orig        2016-08-01 21:49:41.259767005 +0200
18 +++ rtl8812au_linux-master/os_dep/linux/wifi_regd.c     2016-08-01 21:50:02.516911448 +0200
19 @@ -10,6 +10,13 @@
20  
21  #include <rtw_wifi_regd.h>
22  
23 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0))
24 +#define ieee80211_band nl80211_band
25 +#define IEEE80211_BAND_2GHZ NL80211_BAND_2GHZ
26 +#define IEEE80211_BAND_5GHZ NL80211_BAND_5GHZ
27 +#define IEEE80211_NUM_BANDS NUM_NL80211_BANDS
28 +#endif
29 +
30  static struct country_code_to_enum_rd allCountries[] = {
31         {COUNTRY_CODE_USER, "RD"},
32  };
33 @@ -559,4 +566,4 @@
34  
35         _rtw_reg_notifier_apply(wiphy, request, reg);
36  }
37 -#endif //CONFIG_IOCTL_CFG80211
38 \ No newline at end of file
39 +#endif //CONFIG_IOCTL_CFG80211
This page took 0.047119 seconds and 2 git commands to generate.