mirror of
https://github.com/chinawrj/rtl8812au
synced 2025-01-09 10:01:37 +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 PLATFORM_LINUX
|
||||||
|
|
||||||
|
|
||||||
/* #define CONFIG_IOCTL_CFG80211 1 */
|
#define CONFIG_IOCTL_CFG80211 1
|
||||||
|
|
||||||
#ifdef CONFIG_IOCTL_CFG80211
|
#ifdef CONFIG_IOCTL_CFG80211
|
||||||
/* #define RTW_USE_CFG80211_STA_EVENT */ /* Indecate new sta asoc through cfg80211_new_sta */
|
/* #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;
|
netdev = adapter->pnetdev;
|
||||||
|
|
||||||
#if defined(CONFIG_IOCTL_CFG80211)
|
|
||||||
rtw_cfg80211_ndev_res_unregister(adapter);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if ((adapter->DriverState != DRIVER_DISAPPEAR) && netdev) {
|
if ((adapter->DriverState != DRIVER_DISAPPEAR) && netdev) {
|
||||||
struct dvobj_priv *dvobj = adapter_to_dvobj(adapter);
|
struct dvobj_priv *dvobj = adapter_to_dvobj(adapter);
|
||||||
u8 rtnl_lock_needed = rtw_rtnl_lock_needed(dvobj);
|
u8 rtnl_lock_needed = rtw_rtnl_lock_needed(dvobj);
|
||||||
@ -1663,6 +1659,9 @@ void rtw_os_ndev_unregister(_adapter *adapter)
|
|||||||
else
|
else
|
||||||
unregister_netdevice(netdev);
|
unregister_netdevice(netdev);
|
||||||
}
|
}
|
||||||
|
#if defined(CONFIG_IOCTL_CFG80211)
|
||||||
|
rtw_cfg80211_ndev_res_unregister(adapter);
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_IOCTL_CFG80211) && !defined(RTW_SINGLE_WIPHY)
|
#if defined(CONFIG_IOCTL_CFG80211) && !defined(RTW_SINGLE_WIPHY)
|
||||||
#ifdef CONFIG_RFKILL_POLL
|
#ifdef CONFIG_RFKILL_POLL
|
||||||
|
Loading…
Reference in New Issue
Block a user