]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2PS: Allow PD retry in SEARCH and LISTEN_ONLY also
authorKrishna Vamsi <vamsin@qti.qualcomm.com>
Fri, 30 Jan 2015 13:36:01 +0000 (19:06 +0530)
committerJouni Malinen <j@w1.fi>
Mon, 2 Feb 2015 23:35:07 +0000 (01:35 +0200)
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 <jouni@qca.qualcomm.com>
src/p2p/p2p.c

index 07776b2aaa0c5b151dac7386039ecfbf4be3dced..4797a0182874f483a375aaea0f7ec7c08e4f87da 100644 (file)
@@ -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.