P2P: Stop offchannel TX wait on P2P_STOP_FIND/P2P_LISTEN
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 30 Dec 2015 22:03:21 +0000 (00:03 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 30 Dec 2015 22:03:21 +0000 (00:03 +0200)
commit944f693591077d05c29cb60790bf0578eff216b4
tree423cabdf869e2aae068ae201e99df3417b030587
parent56dfb604a4f51d4dc724e7cd6f70a3c4861a47e0
P2P: Stop offchannel TX wait on P2P_STOP_FIND/P2P_LISTEN

Previously it was possible for the pending Action frame TX to be
cleared, but the offchannel TX operation being left in wait state in the
kernel. This would delay start of the next operation (e.g., that listen
operation requested by P2P_LISTEN) until the wait time for the
previously pending Action frame had expired.

Optimize this by explicitly stopping any pending offchannel Action frame
TX when clearing the internal offchannel TX state in
wpas_p2p_clear_pending_action_tx().

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/p2p_supplicant.c