]> git.ipfire.org Git - thirdparty/hostap.git/commit
DPP: Stop Action frame sequence on DPP_STOP_LISTEN and PKEX failure
authorJouni Malinen <jouni@codeaurora.org>
Tue, 11 Feb 2020 05:07:22 +0000 (07:07 +0200)
committerJouni Malinen <jouni@codeaurora.org>
Tue, 11 Feb 2020 05:09:47 +0000 (07:09 +0200)
commitc304bddcf9cd30b1d7ce76bb92467399502e4cc9
treea081bad5e591db71cd073bdfaf7677fee7c19a3d
parentd299756e3e3cea7dd99dc517a4f6a61327fbc5aa
DPP: Stop Action frame sequence on DPP_STOP_LISTEN and PKEX failure

Previously it was possible for the PKEX/DPP exchange to terminate with
an error and the ongoing Action frame TX/RX offchannel operation not
getting terminated. This could leave the driver waiting on offchannel
until timeout and failing following operations before that timeout
happens. Fix this by explicitly stopping the Action frame sequence in
the driver in the previously missed cases.

This fixes a case that was showing up with the following test sequence
every now and then:
dpp_qr_code_chan_list_unicast dpp_pkex_test_fail dpp_enrollee_reject_config

dpp_pkex_test_fail was adding a large number of pending offchannel
operations and dpp_enrollee_reject_config could fail if those pending
operations were blocking new remain-on-channel or offchannel TX
operation for a sufficiently long time.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
wpa_supplicant/dpp_supplicant.c