]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Reject p2p-send-action work while other one is pending
authorSunil Dutt <usdutt@codeaurora.org>
Thu, 9 May 2019 11:05:03 +0000 (16:35 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 31 May 2019 13:52:15 +0000 (16:52 +0300)
commit2e3bff5919e1007b4b2084a524eade9a0053fdd6
tree108fe46c6d02067aa136c6d99ec6252652880274
parenta8391db7cfce796bea2acf6e64aad5c314da31b0
P2P: Reject p2p-send-action work while other one is pending

The previous implementation rejects the p2p-send-action work while there
is already one in progress (wpas_send_action_cb() has already been
called for it to start operation). Enhance the same to also consider any
p2p-send-action works pending in the radio work (i.e., waiting for that
wpas_send_action_cb() call).

This is considering the current behaviour of P2P to handle the state
corresponding to respective Action frame transmission:
pending_action_state. If a new P2P Action frame transmission is queued
while there is another one already in the queue, the transmit status of
the first frame is wrongly intepreted by the P2P state machine which has
already scheduled/queued another frame for transmission.

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