mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
wpa_supplicant: Scan resumption in PBC mode
This commit is contained in:
parent
0ebf93c01e
commit
dfb60c0436
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2019-2021 Espressif Systems (Shanghai) CO LTD
|
* SPDX-FileCopyrightText: 2019-2022 Espressif Systems (Shanghai) CO LTD
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
@ -571,7 +571,7 @@ wps_parse_scan_result(struct wps_scan_ie *scan)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!scan->rsn && !scan->wpa && (scan->capinfo & WIFI_CAPINFO_PRIVACY)) {
|
if (!scan->rsn && !scan->wpa && (scan->capinfo & WIFI_CAPINFO_PRIVACY)) {
|
||||||
wpa_printf(MSG_ERROR, "WEP not suppported in WPS");
|
wpa_printf(MSG_INFO, "WEP not suppported in WPS");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1854,8 +1854,8 @@ wifi_wps_scan_done(void *arg, STATUS status)
|
|||||||
esp_wifi_connect();
|
esp_wifi_connect();
|
||||||
ets_timer_disarm(&sm->wps_msg_timeout_timer);
|
ets_timer_disarm(&sm->wps_msg_timeout_timer);
|
||||||
ets_timer_arm(&sm->wps_msg_timeout_timer, 2000, 0);
|
ets_timer_arm(&sm->wps_msg_timeout_timer, 2000, 0);
|
||||||
} else if (wps_get_status() == WPS_STATUS_SCANNING && wps_get_type() == WPS_TYPE_PIN) {
|
} else if (wps_get_status() == WPS_STATUS_SCANNING) {
|
||||||
if (sm->scan_cnt > WPS_IGNORE_SEL_REG_MAX_CNT) {
|
if (wps_get_type() == WPS_TYPE_PIN && sm->scan_cnt > WPS_IGNORE_SEL_REG_MAX_CNT) {
|
||||||
sm->ignore_sel_reg = true;
|
sm->ignore_sel_reg = true;
|
||||||
sm->wps_pin_war = false;
|
sm->wps_pin_war = false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user