From 752c09caf99798e802b47b3fbb26ccd6d7c4d4ba Mon Sep 17 00:00:00 2001 From: evilphish Date: Mon, 30 Oct 2017 18:01:30 +0100 Subject: [PATCH] Fix compilation error on 4.11.x kernel --- os_dep/linux/ioctl_cfg80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c index 75635ab..dbb261d 100644 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c @@ -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;