1 --- rtl8812au_linux-master/os_dep/linux/ioctl_cfg80211.c.orig 2015-09-27 12:11:20.000000000 +0200
2 +++ rtl8812au_linux-master/os_dep/linux/ioctl_cfg80211.c 2015-09-27 13:53:42.644724720 +0200
7 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0))
8 +static int rtw_cfg80211_add_monitor_if(_adapter *padapter, char *name, unsigned char name_assign_type, struct net_device **ndev)
10 static int rtw_cfg80211_add_monitor_if(_adapter *padapter, char *name, struct net_device **ndev)
14 struct net_device* mon_ndev = NULL;
16 mon_ndev->type = ARPHRD_IEEE80211_RADIOTAP;
17 strncpy(mon_ndev->name, name, IFNAMSIZ);
18 mon_ndev->name[IFNAMSIZ - 1] = 0;
19 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0))
20 + mon_ndev->name_assign_type = name_assign_type;
22 mon_ndev->destructor = rtw_ndev_destructor;
24 #if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,29))
29 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0))
30 + unsigned char name_assign_type,
32 enum nl80211_iftype type, u32 *flags, struct vif_params *params)
35 @@ -3853,7 +3859,11 @@
38 case NL80211_IFTYPE_MONITOR:
39 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0))
40 + ret = rtw_cfg80211_add_monitor_if(padapter, (char *)name, name_assign_type, &ndev);
42 ret = rtw_cfg80211_add_monitor_if(padapter, (char *)name, &ndev);
46 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) || defined(COMPAT_KERNEL_RELEASE)
47 @@ -4130,12 +4140,15 @@
50 static int cfg80211_rtw_del_station(struct wiphy *wiphy, struct net_device *ndev,
51 -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,15,0))
53 +#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,15,0))
55 +#elif (LINUX_VERSION_CODE < KERNEL_VERSION(4,1,0))
60 + struct station_del_parameters *params)
62 + const u8 *mac = params->mac;