]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Check Action frame payload match before accepted TX status
authorPo-Lun Lai <llai@qca.qualcomm.com>
Wed, 23 Oct 2013 10:16:31 +0000 (13:16 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 23 Oct 2013 14:47:40 +0000 (17:47 +0300)
commit47d986e6ffed45a4e2506646a5dbee2c0e1c6209
treea71c4fdcb50f3b22af5c57764e644e3c0ab550ae
parentd2592497624d7dff53e71cc01fc2d5db1e59733e
P2P: Check Action frame payload match before accepted TX status

It is possible for there to be two pending off-channel TX frames, e.g.,
when two devices initiate GO Negotiation at more or less the same time.
This could result in the TX status report for the first frame clearing
wpa_s->pending_action_tx that included the newer frame that has not yet
been transmitted (i.e., is waiting to be sent out). Avoid losing that
frame by confirming that the TX status payload matches the pending frame
before clearing the pending frame and reporting the TX status callback.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/offchannel.c