1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2025-01-03 21:04:05 +00:00

Merge pull request #45 from evilphish/v5.1.5

Fix compilation error on 4.11.x kernel
This commit is contained in:
Christian B 2017-11-01 17:45:48 +01:00 committed by GitHub
commit 59dfb78a8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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