]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Add GO negotiation results into the P2P-GO-NEG-SUCCESS event
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 26 Aug 2013 10:35:44 +0000 (13:35 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 26 Aug 2013 10:35:44 +0000 (13:35 +0300)
This provides status information about the negotiated group to
wpa_supplicant control interface monitors during group formation in a
form that is easier to use than having to fetch the information
separately.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

wpa_supplicant/p2p_supplicant.c

index 9429f3d0a56a320528c918f9df8fe5e5d6b63cda..7c786fd219103b506517c5ab716dca6f3964387b 100644 (file)
@@ -1213,7 +1213,13 @@ void wpas_go_neg_completed(void *ctx, struct p2p_go_neg_results *res)
        if (wpa_s->p2p_go_ht40)
                res->ht40 = 1;
 
-       wpa_msg_global(wpa_s, MSG_INFO, P2P_EVENT_GO_NEG_SUCCESS);
+       wpa_msg_global(wpa_s, MSG_INFO, P2P_EVENT_GO_NEG_SUCCESS "role=%s "
+                      "freq=%d ht40=%d peer_dev=" MACSTR " peer_iface=" MACSTR
+                      " wps_method=%s",
+                      res->role_go ? "GO" : "client", res->freq, res->ht40,
+                      MAC2STR(res->peer_device_addr),
+                      MAC2STR(res->peer_interface_addr),
+                      p2p_wps_method_text(res->wps_method));
        wpas_notify_p2p_go_neg_completed(wpa_s, res);
 
        if (res->role_go && wpa_s->p2p_persistent_id >= 0) {