From 9e298d0fa31118450fc4d78735dc760f7648fdd1 Mon Sep 17 00:00:00 2001 From: kimocoder Date: Sun, 7 Apr 2019 18:15:47 +0200 Subject: [PATCH] fix compile when CONFIG_IOCTL_CFG80211 defined --- os_dep/linux/os_intfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/os_dep/linux/os_intfs.c b/os_dep/linux/os_intfs.c index d51579c..865f5c1 100644 --- a/os_dep/linux/os_intfs.c +++ b/os_dep/linux/os_intfs.c @@ -2650,8 +2650,8 @@ static int netdev_vir_if_close(struct net_device *pnetdev) #endif #ifdef CONFIG_IOCTL_CFG80211 - wdev->iftype = NL80211_IFTYPE_MONITOR; - wdev->current_bss = NULL; + padapter->rtw_wdev->iftype = NL80211_IFTYPE_MONITOR; + padapter->rtw_wdev->current_bss = NULL; rtw_scan_abort(padapter); rtw_cfg80211_wait_scan_req_empty(padapter, 200); adapter_wdev_data(padapter)->bandroid_scan = _FALSE;