From 07fd0502f68a1116ee4cfdb31b24b422b142847f Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Fri, 15 Jun 2018 13:57:30 +0200 Subject: [PATCH] wifi: expose LastScan as milliseconds not seconds This doesn't wrap around in 68 years of uptime and is consistent with o.fd.NM.Checkpoint.Created. --- clients/cli/devices.c | 2 +- ...desktop.NetworkManager.Device.Wireless.xml | 4 +-- libnm/nm-device-wifi.c | 20 ++++++------- libnm/nm-device-wifi.h | 4 +-- shared/nm-utils/nm-shared-utils.h | 5 ++-- src/devices/wifi/nm-device-iwd.c | 18 +++++------ src/devices/wifi/nm-device-wifi.c | 30 +++++++++---------- src/devices/wifi/nm-wifi-common.c | 2 +- src/supplicant/nm-supplicant-interface.c | 16 +++++----- src/supplicant/nm-supplicant-interface.h | 2 +- tools/test-networkmanager-service.py | 2 +- 11 files changed, 53 insertions(+), 52 deletions(-) diff --git a/clients/cli/devices.c b/clients/cli/devices.c index d92978f5a6..235690980f 100644 --- a/clients/cli/devices.c +++ b/clients/cli/devices.c @@ -2770,7 +2770,7 @@ wifi_list_aps (NMDeviceWifi *wifi, gboolean needs_rescan; WifiListData *data; - needs_rescan = rescan_cutoff < 0 || (rescan_cutoff > 0 && nm_device_wifi_get_last_scan (wifi) < rescan_cutoff); + needs_rescan = rescan_cutoff < 0 || (rescan_cutoff > 0 && nm_device_wifi_get_last_scan (wifi) < (rescan_cutoff * 1000)); if (needs_rescan) { data = g_slice_new0 (WifiListData); diff --git a/introspection/org.freedesktop.NetworkManager.Device.Wireless.xml b/introspection/org.freedesktop.NetworkManager.Device.Wireless.xml index af6e8c7ff3..130385455c 100644 --- a/introspection/org.freedesktop.NetworkManager.Device.Wireless.xml +++ b/introspection/org.freedesktop.NetworkManager.Device.Wireless.xml @@ -99,12 +99,12 @@ - +