]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Fix stopping on search after SD callback
authorKrishna Vamsi <vamsin@qti.qualcomm.com>
Wed, 4 Feb 2015 11:47:23 +0000 (17:17 +0530)
committerJouni Malinen <j@w1.fi>
Wed, 4 Feb 2015 18:46:47 +0000 (20:46 +0200)
commit2c0efd9e49b15da163cee659409eee85390620c3
treef4f474afb44825e3bfe42e9511c608375e4f3fa9
parentdb3168d414afec44e319e29233844800ebdc04b8
P2P: Fix stopping on search after SD callback

If p2p_find_timeout triggers after starting SD but before getting TX
status for send action, unwanted search could get triggered again when
TX status arrives though p2p_find_timeout moved the state to P2P_IDLE by
then. p2p_continue_find() would then move the state to P2P_SEARCH again.
Do not trigger the find operation from this context if state is
P2P_IDLE to avoid this.

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