P2P: Fix PD Failure event to show peer device address
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 26 Apr 2012 14:09:02 +0000 (17:09 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 26 Apr 2012 14:09:02 +0000 (17:09 +0300)
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 <jouni@qca.qualcomm.com>

wpa_supplicant/p2p_supplicant.c

index bdfaecc..e800711 100644 (file)
@@ -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);