From c5e154c037b2800ed51950b2ea8caa1f10590762 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 2 Feb 2015 13:48:48 +0200 Subject: [PATCH] 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 --- src/p2p/p2p.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;