Fix problem where interfaces are down at start

This commit is contained in:
kimocoder 2019-02-14 17:47:01 +01:00
parent e8d5677a09
commit b891231e70
4 changed files with 14593 additions and 3 deletions

View File

@ -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

View File

@ -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;

4864
os_dep/linux/os_intfs.c.orig Normal file

File diff suppressed because it is too large Load Diff