SME: Do not skip initial scan request
When SME is in wpa_supplicant (mac80211), we need to make sure that the kernel code has valid BSS entry for the AP. In some cases it seemed to be possible to end up not having current information in cfg80211 or mac80211 which can result to association failures. Avoid this by always running through the scan request before initial connection attempt.
This commit is contained in:
parent
6e3f7173f1
commit
4436274bef
1 changed files with 1 additions and 0 deletions
|
@ -295,6 +295,7 @@ static void wpa_supplicant_scan(void *eloop_ctx, void *timeout_ctx)
|
||||||
#endif /* CONFIG_WPS */
|
#endif /* CONFIG_WPS */
|
||||||
|
|
||||||
if (wpa_s->scan_res_tried == 0 && wpa_s->conf->ap_scan == 1 &&
|
if (wpa_s->scan_res_tried == 0 && wpa_s->conf->ap_scan == 1 &&
|
||||||
|
!(wpa_s->drv_flags & WPA_DRIVER_FLAGS_SME) &&
|
||||||
!(wpa_s->drv_flags & WPA_DRIVER_FLAGS_USER_SPACE_MLME) &&
|
!(wpa_s->drv_flags & WPA_DRIVER_FLAGS_USER_SPACE_MLME) &&
|
||||||
wps != 2 && !wpa_s->conf->filter_ssids &&
|
wps != 2 && !wpa_s->conf->filter_ssids &&
|
||||||
!wpa_s->connect_without_scan) {
|
!wpa_s->connect_without_scan) {
|
||||||
|
|
Loading…
Reference in a new issue