From 25a94f525ce302c4565389e3c8ee4f8a24d7be48 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 26 Apr 2012 17:09:02 +0300 Subject: [PATCH] P2P: Fix PD Failure event to show peer device address The p2p_dev_addr parameter in the P2P-PROV-DISC-FAILURE event (added in commit f65a239ba4760cc6e8a169d21a4fcabed444a90b) was supposed to the P2P Device Address of the peer, not the local device. Signed-hostap: Jouni Malinen --- wpa_supplicant/p2p_supplicant.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c index bdfaecc8f..e80071154 100644 --- a/wpa_supplicant/p2p_supplicant.c +++ b/wpa_supplicant/p2p_supplicant.c @@ -1854,7 +1854,7 @@ static void wpas_prov_disc_fail(void *ctx, const u8 *peer, wpa_msg(wpa_s, MSG_INFO, P2P_EVENT_PROV_DISC_FAILURE " p2p_dev_addr=" MACSTR " status=%d", - MAC2STR(wpa_s->global->p2p_dev_addr), status); + MAC2STR(peer), status); wpas_notify_p2p_provision_discovery(wpa_s, peer, 0 /* response */, status, 0, 0);