[PATCH 01/10] P2P: fix adv_id and adv_mac params of P2P-PROV-DISC-FAILURE

Ilan Peer ilan.peer at intel.com
Thu Jul 2 03:44:59 EDT 2015


From: Max Stepanov <Max.Stepanov at intel.com>

When a supplicant receives a PD response with reject status it generates
P2P-PROV-DISC-FAILURE event without adv_id and adv_mac parameters.
Fixing it by adding these parameters to wpas_prov_disc_fail function
call.

Signed-off-by: Max Stepanov <Max.Stepanov at intel.com>
Reviewed-by: Ilan Peer <ilan.peer at intel.com>
---
 src/p2p/p2p_pd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/p2p/p2p_pd.c b/src/p2p/p2p_pd.c
index 86558f7..f62c63d 100644
--- a/src/p2p/p2p_pd.c
+++ b/src/p2p/p2p_pd.c
@@ -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;
-- 
1.9.1



More information about the HostAP mailing list