mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 03:07:21 +02:00
fix(wpa_supplicant): Fix build errors when Supplicant logs are enabled
This commit is contained in:
@ -919,15 +919,16 @@ int wps_start_msg_timer(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (sm->wps->state == WPS_FINISHED) {
|
if (sm->wps->state == WPS_FINISHED) {
|
||||||
|
msg_timeout = 5;
|
||||||
wpa_printf(MSG_DEBUG, "start msg timer WPS_FINISHED %" PRId32 " ms", msg_timeout);
|
wpa_printf(MSG_DEBUG, "start msg timer WPS_FINISHED %" PRId32 " ms", msg_timeout);
|
||||||
eloop_cancel_timeout(wifi_station_wps_msg_timeout, NULL, NULL);
|
eloop_cancel_timeout(wifi_station_wps_msg_timeout, NULL, NULL);
|
||||||
eloop_register_timeout(5, 0, wifi_station_wps_msg_timeout, NULL, NULL);
|
eloop_register_timeout(msg_timeout, 0, wifi_station_wps_msg_timeout, NULL, NULL);
|
||||||
ret = 0;
|
ret = 0;
|
||||||
} else if (sm->wps->state == RECV_M2) {
|
} else if (sm->wps->state == RECV_M2) {
|
||||||
msg_timeout = 20;
|
msg_timeout = 20;
|
||||||
wpa_printf(MSG_DEBUG, "start msg timer RECV_M2 %" PRId32 " s", msg_timeout);
|
wpa_printf(MSG_DEBUG, "start msg timer RECV_M2 %" PRId32 " s", msg_timeout);
|
||||||
eloop_cancel_timeout(wifi_station_wps_msg_timeout, NULL, NULL);
|
eloop_cancel_timeout(wifi_station_wps_msg_timeout, NULL, NULL);
|
||||||
eloop_register_timeout(msg_timeout, 0, wifi_station_wps_msg_timeout, NULL, NULL);
|
eloop_register_timeout(msg_timeout, 0, wifi_station_wps_msg_timeout, NULL, NULL);
|
||||||
ret = 0;
|
ret = 0;
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
# Add CI coverage for WPA supplicant debug feature
|
# Add CI coverage for WPA supplicant debug feature
|
||||||
|
CONFIG_LOG_DEFAULT_LEVEL_DEBUG=y
|
||||||
CONFIG_ESP_WIFI_DEBUG_PRINT=y
|
CONFIG_ESP_WIFI_DEBUG_PRINT=y
|
||||||
|
Reference in New Issue
Block a user