From 499c160eabf31d236daeb04cfade0ccca0dadc6f Mon Sep 17 00:00:00 2001 From: kimocoder Date: Wed, 30 Oct 2019 20:32:57 +0100 Subject: [PATCH] Fix interface down on start --- dkms.conf | 2 +- os_dep/linux/os_intfs.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/dkms.conf b/dkms.conf index adc39cf..4120051 100644 --- a/dkms.conf +++ b/dkms.conf @@ -1,5 +1,5 @@ PACKAGE_NAME="realtek-rtl88xxau" -PACKAGE_VERSION="5.6.4.1~20190928" +PACKAGE_VERSION="5.6.4.1~20191030" CLEAN="'make' clean" BUILT_MODULE_NAME[0]=88XXau PROCS_NUM=`nproc` diff --git a/os_dep/linux/os_intfs.c b/os_dep/linux/os_intfs.c index 9c32964..b4b84f9 100644 --- a/os_dep/linux/os_intfs.c +++ b/os_dep/linux/os_intfs.c @@ -2771,6 +2771,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; rtw_scan_abort(padapter); rtw_cfg80211_wait_scan_req_empty(padapter, 200); adapter_wdev_data(padapter)->bandroid_scan = _FALSE; @@ -3801,6 +3803,9 @@ extern void rtw_hw_client_port_release(_adapter *adapter); static int netdev_close(struct net_device *pnetdev) { _adapter *padapter = (_adapter *)rtw_netdev_priv(pnetdev); +#ifdef CONFIG_IOCTL_CFG80211 + struct wireless_dev *wdev = padapter->rtw_wdev; +#endif struct pwrctrl_priv *pwrctl = adapter_to_pwrctl(padapter); struct mlme_priv *pmlmepriv = &padapter->mlmepriv; #ifdef CONFIG_BT_COEXIST_SOCKET_TRX