Skip to content

Commit 30c91a4

Browse files
author
akshat
committed
bugfix(wpa_supplicant): Fix build errors when Supplicant logs are enabled
1 parent 3c60a00 commit 30c91a4

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

components/wpa_supplicant/esp_supplicant/src/esp_wps.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -919,15 +919,16 @@ int wps_start_msg_timer(void)
919919
}
920920

921921
if (sm->wps->state == WPS_FINISHED) {
922+
msg_timeout = 5;
922923
wpa_printf(MSG_DEBUG, "start msg timer WPS_FINISHED %" PRId32 " ms", msg_timeout);
923-
eloop_cancel_timeout(wifi_station_wps_msg_timeout, NULL, NULL);
924-
eloop_register_timeout(5, 0, wifi_station_wps_msg_timeout, NULL, NULL);
924+
eloop_cancel_timeout(wifi_station_wps_msg_timeout, NULL, NULL);
925+
eloop_register_timeout(msg_timeout, 0, wifi_station_wps_msg_timeout, NULL, NULL);
925926
ret = 0;
926927
} else if (sm->wps->state == RECV_M2) {
927928
msg_timeout = 20;
928929
wpa_printf(MSG_DEBUG, "start msg timer RECV_M2 %" PRId32 " s", msg_timeout);
929-
eloop_cancel_timeout(wifi_station_wps_msg_timeout, NULL, NULL);
930-
eloop_register_timeout(msg_timeout, 0, wifi_station_wps_msg_timeout, NULL, NULL);
930+
eloop_cancel_timeout(wifi_station_wps_msg_timeout, NULL, NULL);
931+
eloop_register_timeout(msg_timeout, 0, wifi_station_wps_msg_timeout, NULL, NULL);
931932
ret = 0;
932933
}
933934
return ret;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# Add CI coverage for WPA supplicant debug feature
2+
CONFIG_LOG_DEFAULT_LEVEL_DEBUG=y
23
CONFIG_ESP_WIFI_DEBUG_PRINT=y

0 commit comments

Comments
 (0)