From: Jes Sorensen Date: Fri, 16 May 2014 20:59:18 +0000 (+0200) Subject: staging: rtl8723au: Do not reset wdev->iftype in netdev_close() X-Git-Tag: firefly_0821_release~176^2~3465^2~39^2~727 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f34475f5badfe8a9ad5836c94ca32f16ef07e9a8;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723au/os_dep/os_intfs.c b/drivers/staging/rtl8723au/os_dep/os_intfs.c index 9161e5cda9a5..5be8dd9e1fea 100644 --- a/drivers/staging/rtl8723au/os_dep/os_intfs.c +++ b/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);