From ae2dd835be3167a7615942ba9324ac21325a1bb7 Mon Sep 17 00:00:00 2001 From: Krishna Vamsi Date: Fri, 30 Jan 2015 19:06:01 +0530 Subject: [PATCH] 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 --- src/p2p/p2p.c | 3 --- 1 file changed, 3 deletions(-) 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.