mirror of
https://github.com/drygdryg/rtl8188eus.git
synced 2025-04-29 02:37:16 +09:00
Fix problem where interfaces are down at start
This commit is contained in:
parent
e8d5677a09
commit
b891231e70
@ -9503,10 +9503,8 @@ int rtw_wdev_alloc(_adapter *padapter, struct wiphy *wiphy)
|
|||||||
}
|
}
|
||||||
wdev->wiphy = wiphy;
|
wdev->wiphy = wiphy;
|
||||||
wdev->netdev = pnetdev;
|
wdev->netdev = pnetdev;
|
||||||
|
|
||||||
wdev->iftype = NL80211_IFTYPE_STATION; /* will be init in rtw_hal_init() */
|
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() */
|
/* wdev->iftype = NL80211_IFTYPE_MONITOR; */ /* for rtw_setopmode_cmd() in cfg80211_rtw_change_iface() */
|
||||||
padapter->rtw_wdev = wdev;
|
padapter->rtw_wdev = wdev;
|
||||||
pnetdev->ieee80211_ptr = wdev;
|
pnetdev->ieee80211_ptr = wdev;
|
||||||
|
9726
os_dep/linux/ioctl_cfg80211.c.orig
Normal file
9726
os_dep/linux/ioctl_cfg80211.c.orig
Normal file
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 */
|
#endif /* CONFIG_P2P */
|
||||||
|
|
||||||
#ifdef CONFIG_IOCTL_CFG80211
|
#ifdef CONFIG_IOCTL_CFG80211
|
||||||
|
wdev->iftype = NL80211_IFTYPE_MONITOR;
|
||||||
|
wdev->current_bss = NULL;
|
||||||
rtw_scan_abort(padapter);
|
rtw_scan_abort(padapter);
|
||||||
rtw_cfg80211_wait_scan_req_empty(padapter, 200);
|
rtw_cfg80211_wait_scan_req_empty(padapter, 200);
|
||||||
adapter_wdev_data(padapter)->bandroid_scan = _FALSE;
|
adapter_wdev_data(padapter)->bandroid_scan = _FALSE;
|
||||||
|
4864
os_dep/linux/os_intfs.c.orig
Normal file
4864
os_dep/linux/os_intfs.c.orig
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user