mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2024-11-05 02:55:44 +00:00
do not remove device if it is not of type monitor
This commit is contained in:
parent
3c48dff974
commit
5b5d01f393
@ -1,5 +1,5 @@
|
||||
PACKAGE_NAME="realtek-rtl88xxau"
|
||||
PACKAGE_VERSION="5.3.4~20190216"
|
||||
PACKAGE_VERSION="5.3.4~20190406"
|
||||
CLEAN="'make' clean"
|
||||
BUILT_MODULE_NAME[0]=88XXau
|
||||
PROCS_NUM=`nproc`
|
||||
|
@ -4638,7 +4638,11 @@ static int cfg80211_rtw_del_virtual_intf(struct wiphy *wiphy,
|
||||
pwdev_priv = adapter_wdev_data(adapter);
|
||||
|
||||
if (ndev == pwdev_priv->pmon_ndev) {
|
||||
unregister_netdevice(ndev);
|
||||
/* unregister only monitor device
|
||||
* because only monitor can be added
|
||||
*/
|
||||
if(wdev->iftype == NL80211_IFTYPE_MONITOR)
|
||||
unregister_netdevice(ndev);
|
||||
pwdev_priv->pmon_ndev = NULL;
|
||||
pwdev_priv->ifname_mon[0] = '\0';
|
||||
RTW_INFO(FUNC_NDEV_FMT" remove monitor ndev\n", FUNC_NDEV_ARG(ndev));
|
||||
|
Loading…
Reference in New Issue
Block a user