rtl8812au-ac: fix bug after enable concurrent mode support

Fixes: 8ea8e4be955b10555745b9e408fd161d1b15e129 ("rtl8812au-ac: enable concurrent mode support")
Signed-off-by: Tianling Shen <cnsztl@gmail.com>
This commit is contained in:
AmadeusGhost 2021-01-16 12:20:02 +08:00 committed by Tianling Shen
parent f097c06fc1
commit 75c02683c1
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
2 changed files with 10 additions and 13 deletions

View File

@ -0,0 +1,10 @@
--- a/os_dep/linux/os_intfs.c
+++ b/os_dep/linux/os_intfs.c
@@ -2803,6 +2803,7 @@ static int netdev_vir_if_close(struct net_device *pnetdev)
{
_adapter *padapter = (_adapter *)rtw_netdev_priv(pnetdev);
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
+ struct wireless_dev *wdev = padapter->rtw_wdev;
RTW_INFO(FUNC_NDEV_FMT" , bup=%d\n", FUNC_NDEV_ARG(pnetdev), padapter->bup);
padapter->net_closed = _TRUE;

View File

@ -1,13 +0,0 @@
--- a/os_dep/linux/os_intfs.c
+++ b/os_dep/linux/os_intfs.c
@@ -2817,8 +2817,10 @@ static int netdev_vir_if_close(struct net_device *pnetdev)
#endif
#ifdef CONFIG_IOCTL_CFG80211
+#ifndef CONFIG_CONCURRENT_MODE
wdev->iftype = NL80211_IFTYPE_MONITOR;
wdev->current_bss = NULL;
+#endif
rtw_scan_abort(padapter);
rtw_cfg80211_wait_scan_req_empty(padapter, 200);
adapter_wdev_data(padapter)->bandroid_scan = _FALSE;