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 <jouni@qca.qualcomm.com>
This commit is contained in:
parent
4441b9d571
commit
52728dcd25
1 changed files with 5 additions and 0 deletions
|
@ -346,6 +346,11 @@ out:
|
||||||
if (success && p2p->cfg->prov_disc_resp)
|
if (success && p2p->cfg->prov_disc_resp)
|
||||||
p2p->cfg->prov_disc_resp(p2p->cfg->cb_ctx, sa,
|
p2p->cfg->prov_disc_resp(p2p->cfg->cb_ctx, sa,
|
||||||
report_config_methods);
|
report_config_methods);
|
||||||
|
|
||||||
|
if (p2p->state == P2P_PD_DURING_FIND) {
|
||||||
|
p2p_clear_timeout(p2p);
|
||||||
|
p2p_continue_find(p2p);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue