]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Add even more debug prints for Probe Request in non-Listen state
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 20 Feb 2014 14:59:29 +0000 (16:59 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 20 Feb 2014 14:59:29 +0000 (16:59 +0200)
It looks like discovery_dev_id test case can still fail and based on the
previously added debug prints, this is happening since the P2P module
believes it is not in Listen state even when a P2P_LISTEN was issued.
p2p_listen_cb() did not get called on remain-on-channel event for some
reason, so lets add more debug to find out why this can happen.

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

index 7170e47edf184b41596eb376c96a4fe90041e8bc..b88a10640a87cb5de6e9397df52fb85875bd155f 100644 (file)
@@ -1971,7 +1971,8 @@ p2p_reply_probe(struct p2p_data *p2p, const u8 *addr, const u8 *dst,
 
        if (!p2p->in_listen || !p2p->drv_in_listen) {
                /* not in Listen state - ignore Probe Request */
-               p2p_dbg(p2p, "Not in Listen state - ignore Probe Request");
+               p2p_dbg(p2p, "Not in Listen state (in_listen=%d drv_in_listen=%d) - ignore Probe Request",
+                       p2p->in_listen, p2p->drv_in_listen);
                return P2P_PREQ_NOT_LISTEN;
        }
 
index fa824914c934c37332b032be9ad3c59cec909792..fa75fa5d061aa09aa51d74c6cba925b0eea0e45f 100644 (file)
@@ -4771,6 +4771,10 @@ void wpas_p2p_remain_on_channel_cb(struct wpa_supplicant *wpa_s,
                p2p_listen_cb(wpa_s->global->p2p, wpa_s->pending_listen_freq,
                              wpa_s->pending_listen_duration);
                wpa_s->pending_listen_freq = 0;
+       } else {
+               wpa_printf(MSG_DEBUG, "P2P: Ignore remain-on-channel callback (off_channel_freq=%u pending_listen_freq=%d freq=%u duration=%u)",
+                          wpa_s->off_channel_freq, wpa_s->pending_listen_freq,
+                          freq, duration);
        }
 }