From: Jouni Malinen Date: Mon, 18 Mar 2013 18:31:47 +0000 (+0200) Subject: P2P: Stop P2P_PD_DURING_FIND wait on PD Response RX X-Git-Tag: aosp-kk-from-upstream~435 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52728dcd25b5074fb7c0493a8155f096089ad6d0;p=thirdparty%2Fhostap.git P2P: Stop P2P_PD_DURING_FIND wait on PD Response RX Previously, P2P_PD_DURING_FIND state was scheduled for 200 ms and the P2P state was not change until that timeout regardless of whether the PD Response for recieved or not. There is no need to wait for that timeout if the response is received, so allow the next operation to be performed immediately after the response has been processed. Signed-hostap: Jouni Malinen --- diff --git a/src/p2p/p2p_pd.c b/src/p2p/p2p_pd.c index 44db6822e..d8f33b1b6 100644 --- a/src/p2p/p2p_pd.c +++ b/src/p2p/p2p_pd.c @@ -346,6 +346,11 @@ out: if (success && p2p->cfg->prov_disc_resp) p2p->cfg->prov_disc_resp(p2p->cfg->cb_ctx, sa, report_config_methods); + + if (p2p->state == P2P_PD_DURING_FIND) { + p2p_clear_timeout(p2p); + p2p_continue_find(p2p); + } }