staging: rtl8723au: Do not reset wdev->iftype in netdev_close()
authorJes Sorensen <Jes.Sorensen@redhat.com>
Fri, 16 May 2014 20:59:18 +0000 (22:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 May 2014 21:56:38 +0000 (14:56 -0700)
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>
drivers/staging/rtl8723au/os_dep/os_intfs.c

index 9161e5cda9a5a190362c4a700ed92dbc25f37134..5be8dd9e1fea1612dcae46e2e6b8a9697588ceba 100644 (file)
@@ -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);