aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ctrl_iface.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-12-16 20:08:28 (GMT)
committerJouni Malinen <j@w1.fi>2013-12-24 05:27:02 (GMT)
commitacb69cec6fc5fe1468169b92af22e7726704dc2c (patch)
tree8a8d607bf996d50d325c09c41a4fbc70e385b659 /wpa_supplicant/ctrl_iface.c
parent46b8d4c004d49842bcccef110707ede6f109590e (diff)
downloadhostap-acb69cec6fc5fe1468169b92af22e7726704dc2c.zip
hostap-acb69cec6fc5fe1468169b92af22e7726704dc2c.tar.gz
hostap-acb69cec6fc5fe1468169b92af22e7726704dc2c.tar.bz2
wpa_supplicant: Use monotonic time for RX/BSS times
The BSS table, scan timeout, and related functionality should use monotonic time since they care about relative values (age) only. Unfortunately, these are all connected, so the patch can't be split further. Another problem with this is that it changes the driver wrapper API. Though, it seems only the test driver is using this. Signed-hostap: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'wpa_supplicant/ctrl_iface.c')
-rw-r--r--wpa_supplicant/ctrl_iface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index a060477..b77a944 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -3248,9 +3248,9 @@ static int print_bss_info(struct wpa_supplicant *wpa_s, struct wpa_bss *bss,
}
if (mask & WPA_BSS_MASK_AGE) {
- struct os_time now;
+ struct os_reltime now;
- os_get_time(&now);
+ os_get_reltime(&now);
ret = os_snprintf(pos, end - pos, "age=%d\n",
(int) (now.sec - bss->last_update.sec));
if (ret < 0 || ret >= end - pos)