From: Krishna Vamsi Date: Fri, 30 Jan 2015 13:36:01 +0000 (+0530) Subject: P2PS: Allow PD retry in SEARCH and LISTEN_ONLY also X-Git-Tag: hostap_2_4~221 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae2dd835be3167a7615942ba9324ac21325a1bb7;p=thirdparty%2Fhostap.git P2PS: Allow PD retry in SEARCH and LISTEN_ONLY also p2p_timeout_prov_disc_req is getting triggered in P2P_IDLE, P2P_SEARCH and P2P_LISTEN_ONLY states. Retry logic should not be limited to only P2P_IDLE state. Signed-off-by: Jouni Malinen --- diff --git a/src/p2p/p2p.c b/src/p2p/p2p.c index 07776b2aa..4797a0182 100644 --- a/src/p2p/p2p.c +++ b/src/p2p/p2p.c @@ -3208,9 +3208,6 @@ static void p2p_retry_pd(struct p2p_data *p2p) { struct p2p_device *dev; - if (p2p->state != P2P_IDLE) - return; - /* * Retry the prov disc req attempt only for the peer that the user had * requested.