From: Jes Sorensen <Jes.Sorensen@redhat.com>
Date: Fri, 16 May 2014 20:59:18 +0000 (+0200)
Subject: staging: rtl8723au: Do not reset wdev->iftype in netdev_close()
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f34475f5badfe8a9ad5836c94ca32f16ef07e9a8;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.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 <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---

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);