]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Print dst/src/bssid in Action frame TX debug message
authorJouni Malinen <quic_jouni@quicinc.com>
Fri, 1 Nov 2024 14:16:58 +0000 (16:16 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 1 Nov 2024 14:23:46 +0000 (16:23 +0200)
It's helpful to know all the addresses used for P2P Action frames in the
debug message.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
wpa_supplicant/p2p_supplicant.c

index 3a337d1ac10f0e1254d314f4beb19bd9f3d1d58a..608836cc6e8aa7456d567f8a9d3f571a8bca0966 100644 (file)
@@ -1687,8 +1687,11 @@ static int wpas_send_action(void *ctx, unsigned int freq, const u8 *dst,
        if (listen_freq != (int) freq && send_freq != (int) freq) {
                int res;
 
-               wpa_printf(MSG_DEBUG, "P2P: Schedule new radio work for Action frame TX (listen_freq=%d send_freq=%d freq=%u)",
-                          listen_freq, send_freq, freq);
+               wpa_printf(MSG_DEBUG,
+                          "P2P: Schedule new radio work for Action frame TX (listen_freq=%d send_freq=%d freq=%u dst="
+                          MACSTR " src=" MACSTR " bssid=" MACSTR,
+                          listen_freq, send_freq, freq, MAC2STR(dst),
+                          MAC2STR(src), MAC2STR(bssid));
                res = wpas_send_action_work(wpa_s, freq, dst, src, bssid, buf,
                                            len, wait_time);
                if (res == 0 && scheduled)