DPP: Clear SCANNING state when starting network introduction
This is needed to avoid leaving wpa_state to SCANNING if network introduction fails and a new association is not started. This was found with the following test case sequence: dpp_conn_status_connector_mismatch scan_trigger_failure Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
0b5f8e3d8e
commit
414ca953f1
1 changed files with 2 additions and 0 deletions
|
@ -3472,6 +3472,8 @@ int wpas_dpp_check_connect(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid,
|
|||
wpa_printf(MSG_DEBUG,
|
||||
"DPP: Starting network introduction protocol to derive PMKSA for "
|
||||
MACSTR, MAC2STR(bss->bssid));
|
||||
if (wpa_s->wpa_state == WPA_SCANNING)
|
||||
wpa_supplicant_set_state(wpa_s, wpa_s->scan_prev_wpa_state);
|
||||
|
||||
len = 5 + 4 + os_strlen(ssid->dpp_connector);
|
||||
#ifdef CONFIG_DPP2
|
||||
|
|
Loading…
Reference in a new issue