mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2025-01-06 06:06:09 +00:00
Merge pull request #45 from evilphish/v5.1.5
Fix compilation error on 4.11.x kernel
This commit is contained in:
commit
59dfb78a8a
@ -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))
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12 ,0))
|
||||||
mon_ndev->needs_free_netdev = true;
|
mon_ndev->needs_free_netdev = true;
|
||||||
#else
|
#else
|
||||||
mon_ndev->destructor = rtw_ndev_destructor;
|
mon_ndev->priv_destructor = rtw_ndev_destructor;
|
||||||
#endif
|
#endif
|
||||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 9))
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 9))
|
||||||
mon_ndev->needs_free_netdev = false;
|
mon_ndev->needs_free_netdev = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user