Skip to content

Commit f34475f

Browse files
Jes Sorensengregkh
authored andcommitted
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>
1 parent acfd4aa commit f34475f

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎drivers/staging/rtl8723au/os_dep/os_intfs.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -866,8 +866,6 @@ static int netdev_close(struct net_device *pnetdev)
866866
}
867867

868868
rtw_scan_abort23a(padapter);
869-
/* set this at the end */
870-
padapter->rtw_wdev->iftype = NL80211_IFTYPE_MONITOR;
871869

872870
RT_TRACE(_module_os_intfs_c_, _drv_info_, ("-871x_drv - drv_close\n"));
873871
DBG_8723A("-871x_drv - drv_close, bup =%d\n", padapter->bup);

0 commit comments

Comments
 (0)