[PATCH 4/4] wifi: update LastSeen timestamp when checking scan results
- From: Mathieu Trudel-Lapierre <mathieu trudel-lapierre canonical com>
- To: networkmanager-list gnome org
- Cc: Mathieu Trudel-Lapierre <mathieu trudel-lapierre canonical com>
- Subject: [PATCH 4/4] wifi: update LastSeen timestamp when checking scan results
- Date: Thu,  4 Sep 2014 22:04:05 -0400
Signed-off-by: Mathieu Trudel-Lapierre <mathieu trudel-lapierre canonical com>
---
 src/devices/wifi/nm-device-wifi.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/devices/wifi/nm-device-wifi.c b/src/devices/wifi/nm-device-wifi.c
index e1d9343..4af102c 100644
--- a/src/devices/wifi/nm-device-wifi.c
+++ b/src/devices/wifi/nm-device-wifi.c
@@ -1814,8 +1814,10 @@ cull_scan_list (NMDeviceWifi *self)
                 * supplicant in the last scan.
                 */
                if (   nm_ap_get_supplicant_path (ap)
-                   && g_object_get_data (G_OBJECT (ap), WPAS_REMOVED_TAG) == NULL)
+                   && g_object_get_data (G_OBJECT (ap), WPAS_REMOVED_TAG) == NULL) {
+                       nm_ap_set_last_seen (ap, nm_utils_get_monotonic_timestamp_s ());
                        continue;
+               }
 
                last_seen = nm_ap_get_last_seen (ap);
                if (!last_seen || last_seen + prune_interval_s < now)
-- 
2.1.0
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]