P2P: Ignore remain-on-channel callback event if not waiting for one
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 2 Feb 2015 11:32:06 +0000 (13:32 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 2 Feb 2015 12:09:18 +0000 (14:09 +0200)
commitf2dc06e2bd8116f0c940c24bc6c4a0f615573dcb
tree32049a46067e9162cfc8acb64b04e9d24cee609e
parent6a6569b8bdee332ab2969b53f5d31da541fe2513
P2P: Ignore remain-on-channel callback event if not waiting for one

It was possible for the previously requested remain-on-channel for P2P
listen state to get canceled before having received driver event
indicating start of that remain-on-channel operation. In such a case,
the event was able to trigger P2P module to start processing listen
timeout even though there was not supposed to be a following listen
operation anymore. Skip the driver event if we are not waiting for a new
listen state.

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