Skip to content

Commit ab9304d

Browse files
kapilkedawatespressif-bot
authored andcommitted
fix(esp_wifi): Modify check for dpp event handlers
1 parent a929aae commit ab9304d

File tree

2 files changed

+6
-6
lines changed
  • components

2 files changed

+6
-6
lines changed

components/esp_wifi/lib

Submodule lib updated from ddc2cd5 to a854d20

components/wpa_supplicant/esp_supplicant/src/esp_dpp.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -785,25 +785,25 @@ static void tx_status_handler(void *arg, esp_event_base_t event_base,
785785
return;
786786
}
787787
if (!auth) {
788-
dpp_abort_with_failure(ESP_ERR_DPP_FAILURE);
788+
wpa_printf(MSG_DEBUG, "Auth already deinitialized, return");
789789
return;
790790
}
791791
if (auth->waiting_auth_conf) {
792792
eloop_cancel_timeout(esp_dpp_auth_resp_retry_timeout, NULL, NULL);
793-
if (evt->status) {
793+
if (evt->status == WIFI_ACTION_TX_FAILED) {
794794
/* failed to send auth response frame */
795795
eloop_cancel_timeout(esp_dpp_auth_conf_wait_timeout, NULL, NULL);
796796
eloop_register_timeout(1, 0, esp_dpp_auth_resp_retry, NULL, NULL);
797-
} else {
797+
} else if (evt->status == WIFI_ACTION_TX_DONE) {
798798
eloop_cancel_timeout(esp_dpp_auth_conf_wait_timeout, NULL, NULL);
799799
eloop_register_timeout(ESP_DPP_AUTH_TIMEOUT_SECS, 0, esp_dpp_auth_conf_wait_timeout, NULL, NULL);
800800
}
801801
} else if (auth->auth_success) {
802-
if (evt->status) {
802+
if (evt->status == WIFI_ACTION_TX_FAILED) {
803803
/* failed to send gas query frame, retry logic needed? */
804804
wpa_printf(MSG_WARNING, "DPP: failed to send GAS query frame");
805805
dpp_abort_with_failure(ESP_ERR_DPP_TX_FAILURE);
806-
} else {
806+
} else if (evt->status == WIFI_ACTION_TX_DONE) {
807807
eloop_cancel_timeout(gas_query_timeout, NULL, auth);
808808
eloop_register_timeout(ESP_GAS_TIMEOUT_SECS, 0, gas_query_timeout, NULL, auth);
809809
}

0 commit comments

Comments
 (0)