1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-09-19 20:50:41 +00:00

Fix for the fix for compilation errors on 4.11 kernels

This commit is contained in:
evilphish 2017-11-12 17:52:43 +01:00
parent 20b3c9cc7e
commit 99ac4d5c98

View File

@ -3731,7 +3731,7 @@ static int rtw_cfg80211_add_monitor_if(_adapter *padapter, char *name, struct ne
mon_ndev->name[IFNAMSIZ - 1] = 0;
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12 ,0))
mon_ndev->needs_free_netdev = true;
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0))
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 9))
mon_ndev->priv_destructor = rtw_ndev_destructor;
#else
mon_ndev->destructor = rtw_ndev_destructor;