From efb4d2fe215823af5c27e84b0922dc4fd513450a Mon Sep 17 00:00:00 2001 From: kimocoder Date: Sat, 20 Oct 2018 19:09:42 +0200 Subject: [PATCH] minor upstream patch fix: inconsistent teardown --- os_dep/linux/ioctl_cfg80211.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c index 2145892..91acfbd 100644 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c @@ -4432,10 +4432,10 @@ static int rtw_cfg80211_add_monitor_if(_adapter *padapter, char *name, struct ne mon_ndev->type = ARPHRD_IEEE80211_RADIOTAP; strncpy(mon_ndev->name, name, IFNAMSIZ); mon_ndev->name[IFNAMSIZ - 1] = 0; -#if (LINUX_VERSION_CODE > KERNEL_VERSION(4, 11, 8)) - mon_ndev->priv_destructor = rtw_ndev_destructor; +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0)) + mon_ndev->needs_free_netdev = true; #else - mon_ndev->destructor = rtw_ndev_destructor; + mon_ndev->destructor = rtw_ndev_destructor; #endif #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29))