P2PS: Fix adv_id and adv_mac params of P2P-PROV-DISC-FAILURE
When wpa_supplicant receives a PD Response with reject status it generated P2P-PROV-DISC-FAILURE event without adv_id and adv_mac parameters. Fix this by adding these parameters to the wpas_prov_disc_fail() function call. Signed-off-by: Max Stepanov <Max.Stepanov@intel.com> Reviewed-by: Ilan Peer <ilan.peer@intel.com>
This commit is contained in:
parent
e8492c8145
commit
82d6113502
1 changed files with 2 additions and 2 deletions
|
@ -971,8 +971,8 @@ void p2p_process_prov_disc_resp(struct p2p_data *p2p, const u8 *sa,
|
|||
p2p_dbg(p2p, "Peer rejected our Provision Discovery Request");
|
||||
if (p2p->cfg->prov_disc_fail)
|
||||
p2p->cfg->prov_disc_fail(p2p->cfg->cb_ctx, sa,
|
||||
P2P_PROV_DISC_REJECTED, 0,
|
||||
NULL, NULL);
|
||||
P2P_PROV_DISC_REJECTED,
|
||||
adv_id, adv_mac, NULL);
|
||||
p2p_parse_free(&msg);
|
||||
p2ps_prov_free(p2p);
|
||||
goto out;
|
||||
|
|
Loading…
Reference in a new issue