mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2024-11-26 07:04:12 +00:00
Make proper fix for freeze on unload
This commit is contained in:
parent
76df854db4
commit
1ff4839d5b
@ -33,7 +33,7 @@
|
||||
#define PLATFORM_LINUX
|
||||
|
||||
|
||||
/* #define CONFIG_IOCTL_CFG80211 1 */
|
||||
#define CONFIG_IOCTL_CFG80211 1
|
||||
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
/* #define RTW_USE_CFG80211_STA_EVENT */ /* Indecate new sta asoc through cfg80211_new_sta */
|
||||
|
@ -1650,10 +1650,6 @@ void rtw_os_ndev_unregister(_adapter *adapter)
|
||||
|
||||
netdev = adapter->pnetdev;
|
||||
|
||||
#if defined(CONFIG_IOCTL_CFG80211)
|
||||
rtw_cfg80211_ndev_res_unregister(adapter);
|
||||
#endif
|
||||
|
||||
if ((adapter->DriverState != DRIVER_DISAPPEAR) && netdev) {
|
||||
struct dvobj_priv *dvobj = adapter_to_dvobj(adapter);
|
||||
u8 rtnl_lock_needed = rtw_rtnl_lock_needed(dvobj);
|
||||
@ -1663,6 +1659,9 @@ void rtw_os_ndev_unregister(_adapter *adapter)
|
||||
else
|
||||
unregister_netdevice(netdev);
|
||||
}
|
||||
#if defined(CONFIG_IOCTL_CFG80211)
|
||||
rtw_cfg80211_ndev_res_unregister(adapter);
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_IOCTL_CFG80211) && !defined(RTW_SINGLE_WIPHY)
|
||||
#ifdef CONFIG_RFKILL_POLL
|
||||
|
Loading…
Reference in New Issue
Block a user