aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/bss.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-12-16 20:08:44 (GMT)
committerJouni Malinen <j@w1.fi>2013-12-24 06:21:18 (GMT)
commita12d34546a4cf9800fb2bf679417b8cf25e6f420 (patch)
tree5cdfc80775595a8f286dae3519e411847cc0342e /wpa_supplicant/bss.c
parent51bffab117ab1c0e7d02866a6911d9fbca09e98b (diff)
downloadhostap-a12d34546a4cf9800fb2bf679417b8cf25e6f420.zip
hostap-a12d34546a4cf9800fb2bf679417b8cf25e6f420.tar.gz
hostap-a12d34546a4cf9800fb2bf679417b8cf25e6f420.tar.bz2
wpa_supplicant: Use monotonic time for last_scan check
This just serves to check if there was a scan within the last 5 seconds, hence it should use monotonic time. While at it, also use os_reltime_expired(). Signed-hostap: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'wpa_supplicant/bss.c')
-rw-r--r--wpa_supplicant/bss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/bss.c b/wpa_supplicant/bss.c
index e26cdc0..df1bf11 100644
--- a/wpa_supplicant/bss.c
+++ b/wpa_supplicant/bss.c
@@ -733,7 +733,7 @@ void wpa_bss_update_end(struct wpa_supplicant *wpa_s, struct scan_info *info,
struct wpa_bss *bss, *n;
wpa_s->last_scan_full = 0;
- os_get_time(&wpa_s->last_scan);
+ os_get_reltime(&wpa_s->last_scan);
if (!new_scan)
return; /* do not expire entries without new scan */