mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2024-11-09 23:57:00 +00:00
Fix kernel v4.12 support
* Fixed up kernel v4.12 support
This commit is contained in:
parent
07ee2c2b34
commit
bcdaa3d214
@ -1730,10 +1730,17 @@ enum nl80211_iftype {
|
|||||||
NL80211_IFTYPE_MAX = NUM_NL80211_IFTYPES - 1
|
NL80211_IFTYPE_MAX = NUM_NL80211_IFTYPES - 1
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0)
|
||||||
|
static int cfg80211_rtw_change_iface(struct wiphy *wiphy,
|
||||||
|
struct net_device *ndev,
|
||||||
|
enum nl80211_iftype type,
|
||||||
|
struct vif_params *params)
|
||||||
|
#else
|
||||||
static int cfg80211_rtw_change_iface(struct wiphy *wiphy,
|
static int cfg80211_rtw_change_iface(struct wiphy *wiphy,
|
||||||
struct net_device *ndev,
|
struct net_device *ndev,
|
||||||
enum nl80211_iftype type, u32 *flags,
|
enum nl80211_iftype type, u32 *flags,
|
||||||
struct vif_params *params)
|
struct vif_params *params)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
enum nl80211_iftype old_type;
|
enum nl80211_iftype old_type;
|
||||||
NDIS_802_11_NETWORK_INFRASTRUCTURE networkType;
|
NDIS_802_11_NETWORK_INFRASTRUCTURE networkType;
|
||||||
@ -3702,7 +3709,11 @@ static int
|
|||||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 0))
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 0))
|
||||||
unsigned char name_assign_type,
|
unsigned char name_assign_type,
|
||||||
#endif
|
#endif
|
||||||
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0))
|
||||||
|
enum nl80211_iftype type, struct vif_params *params)
|
||||||
|
#else
|
||||||
enum nl80211_iftype type, u32 *flags, struct vif_params *params)
|
enum nl80211_iftype type, u32 *flags, struct vif_params *params)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
struct net_device *ndev = NULL;
|
struct net_device *ndev = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user