]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Stop P2P_PD_DURING_FIND wait on PD Response RX
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 18 Mar 2013 18:31:47 +0000 (20:31 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 18 Mar 2013 18:31:47 +0000 (20:31 +0200)
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 <jouni@qca.qualcomm.com>

src/p2p/p2p_pd.c

index 44db6822e9ad8fdf1ec96076ccd722e78e8262c7..d8f33b1b62f4999d4badf99158462dca3404eaec 100644 (file)
@@ -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);
+       }
 }