1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-10 08:07:05 +00:00

fix compile when CONFIG_IOCTL_CFG80211 defined

This commit is contained in:
kimocoder 2019-04-07 18:15:47 +02:00
parent 78dbffdf16
commit 9e298d0fa3

View File

@ -2650,8 +2650,8 @@ static int netdev_vir_if_close(struct net_device *pnetdev)
#endif #endif
#ifdef CONFIG_IOCTL_CFG80211 #ifdef CONFIG_IOCTL_CFG80211
wdev->iftype = NL80211_IFTYPE_MONITOR; padapter->rtw_wdev->iftype = NL80211_IFTYPE_MONITOR;
wdev->current_bss = NULL; padapter->rtw_wdev->current_bss = NULL;
rtw_scan_abort(padapter); rtw_scan_abort(padapter);
rtw_cfg80211_wait_scan_req_empty(padapter, 200); rtw_cfg80211_wait_scan_req_empty(padapter, 200);
adapter_wdev_data(padapter)->bandroid_scan = _FALSE; adapter_wdev_data(padapter)->bandroid_scan = _FALSE;