fix(wpa_supplicant): Cancel offchannel listen operations before sending dpp fail

- Ensure that offchannel listening operations are cancelled before sending dpp
  fail events
This commit is contained in:
jgujarathi
2024-03-04 15:41:44 +05:30
committed by BOT
parent 69321d1dda
commit 15ba8fb5ab

View File

@ -216,8 +216,9 @@ static int esp_dpp_handle_config_obj(struct dpp_authentication *auth,
wpa_printf(MSG_INFO, DPP_EVENT_CONNECTOR "%s",
conf->connector);
}
s_dpp_listen_in_progress = true;
esp_wifi_action_tx_req(WIFI_OFFCHAN_TX_CANCEL, 0, 0, NULL);
if (s_dpp_listen_in_progress) {
esp_supp_dpp_stop_listen();
}
esp_dpp_call_cb(ESP_SUPP_DPP_CFG_RECVD, wifi_cfg);
return 0;