DPP: Do not process dpp_auth_ok_on_ack multiple times

An additional TX status callback could result in processing the DPP
authentication completion another time at least with hostapd. Fix this
by clearing the dpp_auth_ok_on_ack when processing it.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2017-11-27 20:20:26 +02:00 committed by Jouni Malinen
parent dc2f24f1b2
commit d3cb7ebe1b
2 changed files with 6 additions and 1 deletions

View file

@ -300,8 +300,10 @@ void hostapd_dpp_tx_status(struct hostapd_data *hapd, const u8 *dst,
return;
}
if (hapd->dpp_auth_ok_on_ack)
if (hapd->dpp_auth_ok_on_ack) {
hapd->dpp_auth_ok_on_ack = 0;
hostapd_dpp_auth_success(hapd, 1);
}
}