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 <jouni@qca.qualcomm.com>
This commit is contained in:
parent
64845c1f1a
commit
6014e59c08
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue