P2P: Add callback for provision discovery failure
When provision discovery fails, this new callback will be called so P2P users can react to the failure. Signed-off-by: Jayant Sane <jayant.sane@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
6b56cc2d97
commit
349b213cc8
3 changed files with 28 additions and 0 deletions
|
@ -2734,6 +2734,10 @@ static void p2p_timeout_prov_disc_req(struct p2p_data *p2p)
|
|||
p2p->pd_retries--;
|
||||
p2p_retry_pd(p2p);
|
||||
} else {
|
||||
if (p2p->cfg->prov_disc_fail)
|
||||
p2p->cfg->prov_disc_fail(p2p->cfg->cb_ctx,
|
||||
p2p->pending_pd_devaddr,
|
||||
P2P_PROV_DISC_TIMEOUT);
|
||||
p2p_reset_pending_pd(p2p);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue