From: Jouni Malinen Date: Mon, 2 Feb 2015 11:48:48 +0000 (+0200) Subject: P2P: Add P2P state into p2p_send_action_cb() debug entry X-Git-Tag: hostap_2_4~251 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5e154c037b2800ed51950b2ea8caa1f10590762;p=thirdparty%2Fhostap.git P2P: Add P2P state into p2p_send_action_cb() debug entry This makes it easier to debug issues related to ongoing P2P operations getting stopped due to Action frame exchanges. Signed-off-by: Jouni Malinen --- diff --git a/src/p2p/p2p.c b/src/p2p/p2p.c index 418687a7b..1e9a16e8a 100644 --- a/src/p2p/p2p.c +++ b/src/p2p/p2p.c @@ -3200,9 +3200,9 @@ void p2p_send_action_cb(struct p2p_data *p2p, unsigned int freq, const u8 *dst, int success; p2p_dbg(p2p, "Action frame TX callback (state=%d freq=%u dst=" MACSTR - " src=" MACSTR " bssid=" MACSTR " result=%d", + " src=" MACSTR " bssid=" MACSTR " result=%d p2p_state=%s)", p2p->pending_action_state, freq, MAC2STR(dst), MAC2STR(src), - MAC2STR(bssid), result); + MAC2STR(bssid), result, p2p_state_txt(p2p->state)); success = result == P2P_SEND_ACTION_SUCCESS; state = p2p->pending_action_state; p2p->pending_action_state = P2P_NO_PENDING_ACTION;