]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Add GO BSS entry details to debug log on join-a-group
authorJouni Malinen <j@w1.fi>
Sun, 20 Oct 2013 14:53:46 +0000 (17:53 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 20 Oct 2013 18:38:01 +0000 (21:38 +0300)
This makes it easier to debug issues related to selecting GO information
from the latest updated BSS table entry.

Signed-hostap: Jouni Malinen <j@w1.fi>

wpa_supplicant/p2p_supplicant.c

index 027caef58207e74ccd4e57ff210974920bde9cf9..3b544db2e7372cac0b887281bb7fa33894f8e575 100644 (file)
@@ -3750,7 +3750,8 @@ static void wpas_p2p_scan_res_join(struct wpa_supplicant *wpa_s,
        if (bss) {
                freq = bss->freq;
                wpa_printf(MSG_DEBUG, "P2P: Target GO operating frequency "
-                          "from BSS table: %d MHz", freq);
+                          "from BSS table: %d MHz (SSID %s)", freq,
+                          wpa_ssid_txt(bss->ssid, bss->ssid_len));
        }
        if (freq > 0) {
                u16 method;
@@ -3955,6 +3956,9 @@ static int wpas_p2p_join_start(struct wpa_supplicant *wpa_s)
                res.freq = bss->freq;
                res.ssid_len = bss->ssid_len;
                os_memcpy(res.ssid, bss->ssid, bss->ssid_len);
+               wpa_printf(MSG_DEBUG, "P2P: Join target GO operating frequency "
+                          "from BSS table: %d MHz (SSID %s)", bss->freq,
+                          wpa_ssid_txt(bss->ssid, bss->ssid_len));
        }
 
        if (wpa_s->off_channel_freq || wpa_s->roc_waiting_drv_freq) {