]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Fix ignoring of PD Response due to dialog token mismatch
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 25 Sep 2012 18:41:52 +0000 (21:41 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 25 Sep 2012 18:41:52 +0000 (21:41 +0300)
commit213c1fa84de7d0006916fc2d29b9e81213494f70
treebb04e89ba8d17997fb2141078dec16f96a2eade6
parent83218d20ddb95847346665bed0073191d2d7d32d
P2P: Fix ignoring of PD Response due to dialog token mismatch

Commit 6b56cc2d97fe9efd1feea8d418714b4658b056f1 added clearing of the
p2p->pending_action_state too early in this function. This should not
be done if we are going to silently ignore the frame due to dialog
token mismatch. Fix this by moving the code around to check the dialog
token first.

This issue resulted in PD Request retries getting stopped too early if
the peer is sending out an unexpected PD Response (e.g., because of it
being excessively slow with the response so that the response is
received only after the next TX attempt with a new dialog token).

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
src/p2p/p2p_pd.c