P2P: Fix regression in start-GO/AP through a "fake" scan
Commit 3f9ebc439c
('P2P: Allow AP/GO
interface to be started while P2P-in-progress') moved the
wpa_s->connect_without_scan and wpa_s->last_scan_req checks to an
earlier place within the wpa_supplicant_scan() function without
adjusting wpa_s->last_scan_req. This variable was set between the old
and new location, so the new location needs to use wpa_s->scan_req.
This fixes an issue where AP/GO operations were not properly started in
some operation sequence. Instead, a station mode scan was executed. This
issue could be triggered, e.g., by running the no_go_freq test case
followed by autogo_random_channel.
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
96cbb7b561
commit
a51c40aa35
1 changed files with 1 additions and 1 deletions
|
@ -680,7 +680,7 @@ static void wpa_supplicant_scan(void *eloop_ctx, void *timeout_ctx)
|
||||||
}
|
}
|
||||||
|
|
||||||
ssid = NULL;
|
ssid = NULL;
|
||||||
if (wpa_s->last_scan_req != MANUAL_SCAN_REQ &&
|
if (wpa_s->scan_req != MANUAL_SCAN_REQ &&
|
||||||
wpa_s->connect_without_scan) {
|
wpa_s->connect_without_scan) {
|
||||||
connect_without_scan = 1;
|
connect_without_scan = 1;
|
||||||
for (ssid = wpa_s->conf->ssid; ssid; ssid = ssid->next) {
|
for (ssid = wpa_s->conf->ssid; ssid; ssid = ssid->next) {
|
||||||
|
|
Loading…
Reference in a new issue