]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Show own channel list in debug log
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 24 Sep 2012 19:14:50 +0000 (22:14 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 24 Sep 2012 19:14:50 +0000 (22:14 +0300)
This makes it easier to debug channel negotiation mechanisms.

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

src/p2p/p2p_build.c

index def422de68d75c70d5b0979f6264a012dc34fc39..5838d35e977ee72f5d3aaba0ee9d44080d2158a5 100644 (file)
@@ -132,7 +132,8 @@ void p2p_buf_add_channel_list(struct wpabuf *buf, const char *country,
 
        /* Update attribute length */
        WPA_PUT_LE16(len, (u8 *) wpabuf_put(buf, 0) - len - 2);
-       wpa_printf(MSG_DEBUG, "P2P: * Channel List");
+       wpa_hexdump(MSG_DEBUG, "P2P: * Channel List",
+                   len + 2, (u8 *) wpabuf_put(buf, 0) - len - 2);
 }