]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Add P2P state into p2p_send_action_cb() debug entry
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 2 Feb 2015 11:48:48 +0000 (13:48 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 2 Feb 2015 12:09:18 +0000 (14:09 +0200)
This makes it easier to debug issues related to ongoing P2P operations
getting stopped due to Action frame exchanges.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/p2p/p2p.c

index 418687a7bae97f0975193fd7bf81c1419b032c2a..1e9a16e8a0b9c545e167b522fe2eee73fba529dc 100644 (file)
@@ -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;