浏览代码

staging: rtl8723au: Do not reset wdev->iftype in netdev_close()

wdev->ifdev should be set by .change_virtual_intf(). This solves the
problem of WARN() messages on module unload.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Jes Sorensen 11 年之前
父节点
当前提交
f34475f5ba
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      drivers/staging/rtl8723au/os_dep/os_intfs.c

+ 0 - 2
drivers/staging/rtl8723au/os_dep/os_intfs.c

@@ -866,8 +866,6 @@ static int netdev_close(struct net_device *pnetdev)
 	}
 
 	rtw_scan_abort23a(padapter);
-	 /* set this at the end */
-	padapter->rtw_wdev->iftype = NL80211_IFTYPE_MONITOR;
 
 	RT_TRACE(_module_os_intfs_c_, _drv_info_, ("-871x_drv - drv_close\n"));
 	DBG_8723A("-871x_drv - drv_close, bup =%d\n", padapter->bup);