mirror of
https://github.com/aircrack-ng/rtl8188eus.git
synced 2026-05-07 10:10:08 +00:00
Fix problem where interfaces are down at start
This commit is contained in:
@@ -9503,10 +9503,8 @@ int rtw_wdev_alloc(_adapter *padapter, struct wiphy *wiphy)
|
||||
}
|
||||
wdev->wiphy = wiphy;
|
||||
wdev->netdev = pnetdev;
|
||||
|
||||
wdev->iftype = NL80211_IFTYPE_STATION; /* will be init in rtw_hal_init() */
|
||||
/* Must sync with _rtw_init_mlme_priv() */
|
||||
/* pmlmepriv->fw_state = WIFI_STATION_STATE */
|
||||
|
||||
/* wdev->iftype = NL80211_IFTYPE_MONITOR; */ /* for rtw_setopmode_cmd() in cfg80211_rtw_change_iface() */
|
||||
padapter->rtw_wdev = wdev;
|
||||
pnetdev->ieee80211_ptr = wdev;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -3534,6 +3534,8 @@ static int netdev_close(struct net_device *pnetdev)
|
||||
#endif /* CONFIG_P2P */
|
||||
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
wdev->iftype = NL80211_IFTYPE_MONITOR;
|
||||
wdev->current_bss = NULL;
|
||||
rtw_scan_abort(padapter);
|
||||
rtw_cfg80211_wait_scan_req_empty(padapter, 200);
|
||||
adapter_wdev_data(padapter)->bandroid_scan = _FALSE;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user