path: root/wpa_supplicant/bss.h
diff options
authorJouni Malinen <jouni@qca.qualcomm.com>2013-02-12 17:14:32 (GMT)
committerJouni Malinen <j@w1.fi>2013-02-12 17:14:32 (GMT)
commitc5f10e804afff4a73b3f1e3267a5061e78c20a17 (patch)
tree18abad3d93ed7e18905ff5c1e82831ec067d5eb9 /wpa_supplicant/bss.h
parent8b2b2a70ef37e218dd8752a82cdacf22dfac42a4 (diff)
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>
Diffstat (limited to 'wpa_supplicant/bss.h')
1 files changed, 2 insertions, 1 deletions
diff --git a/wpa_supplicant/bss.h b/wpa_supplicant/bss.h
index ab2c47e..9f14d0e 100644
--- a/wpa_supplicant/bss.h
+++ b/wpa_supplicant/bss.h
@@ -97,7 +97,8 @@ struct wpa_bss {
void wpa_bss_update_start(struct wpa_supplicant *wpa_s);
void wpa_bss_update_scan_res(struct wpa_supplicant *wpa_s,
- struct wpa_scan_res *res);
+ struct wpa_scan_res *res,
+ struct os_time *fetch_time);
void wpa_bss_update_end(struct wpa_supplicant *wpa_s, struct scan_info *info,
int new_scan);
int wpa_bss_init(struct wpa_supplicant *wpa_s);