From 6014e59c08160eb0761c96d6fa791629c9317387 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 7 Jan 2016 13:41:15 +0200 Subject: [PATCH] P2P: Print find_start in debug log when ignoring old scan results This makes it easier to debug issues with old scan results being ignored during P2P_FIND. A single rx_time would have been fine with os_gettime(), but with os_get_reltime(), both rx_time and find_start values are needed. Signed-off-by: Jouni Malinen --- src/p2p/p2p.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/p2p/p2p.c b/src/p2p/p2p.c index 12b44a34f..d28b4cd23 100644 --- a/src/p2p/p2p.c +++ b/src/p2p/p2p.c @@ -3465,9 +3465,11 @@ int p2p_scan_res_handler(struct p2p_data *p2p, const u8 *bssid, int freq, * operation was started. */ p2p_dbg(p2p, "Ignore old scan result for " MACSTR - " (rx_time=%u.%06u)", + " (rx_time=%u.%06u find_start=%u.%06u)", MAC2STR(bssid), (unsigned int) rx_time->sec, - (unsigned int) rx_time->usec); + (unsigned int) rx_time->usec, + (unsigned int) p2p->find_start.sec, + (unsigned int) p2p->find_start.usec); return 0; }