Use more accurate timestamps for scan results
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 12 Feb 2013 17:14:32 +0000 (19:14 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 12 Feb 2013 17:14:32 +0000 (19:14 +0200)
commitc5f10e804afff4a73b3f1e3267a5061e78c20a17
tree18abad3d93ed7e18905ff5c1e82831ec067d5eb9
parent8b2b2a70ef37e218dd8752a82cdacf22dfac42a4
Use more accurate timestamps for scan results

For various P2P use cases, it is useful to have more accurate timestamp
for the peer information update. This commit improves scan result
handling by using a single timestamp that is taken immediately after
fetching the results from the driver and then using that value to
calculate the time when the driver last updated the BSS entry. In
addition, more debug information is added for P2P peer updates to be
able to clearly see how old information is being used here.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
src/drivers/driver.h
src/drivers/driver_test.c
src/p2p/p2p.c
src/p2p/p2p.h
src/p2p/p2p_i.h
src/p2p/p2p_invitation.c
src/p2p/p2p_pd.c
wpa_supplicant/bss.c
wpa_supplicant/bss.h
wpa_supplicant/p2p_supplicant.c
wpa_supplicant/scan.c