summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-04-28 00:37:33 +0200
committerThomas Haller <thaller@redhat.com>2015-04-28 00:37:54 +0200
commit54c658e7eb5abe1c53809260a28b3e3ef6a77580 (patch)
treee0cf25594b7be4103d92f3f03d4ea61f2d5a5f94
parentca0fe755cef585e9f858f6bb45ce7f08b72a2bc9 (diff)
downloadNetworkManager-mtl/wifi-ap-last-seen.tar.gz
fixup! wifi: expose the last_seen property for a NMAccessPointmtl/wifi-ap-last-seen
nm_ap_set_last_seen() expects a value in scale monotonic-timestamp. PROP_LAST_SEEN is in scale boot-time. But we don't need the property setter anyway.
-rw-r--r--src/devices/wifi/nm-wifi-ap.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/devices/wifi/nm-wifi-ap.c b/src/devices/wifi/nm-wifi-ap.c
index a16c609202..56d7cbfd69 100644
--- a/src/devices/wifi/nm-wifi-ap.c
+++ b/src/devices/wifi/nm-wifi-ap.c
@@ -148,9 +148,6 @@ set_property (GObject *object, guint prop_id,
break;
case PROP_HW_ADDRESS:
break;
- case PROP_LAST_SEEN:
- nm_ap_set_last_seen (ap, g_value_get_int (value));
- break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
@@ -308,7 +305,7 @@ nm_ap_class_init (NMAccessPointClass *ap_class)
(object_class, PROP_LAST_SEEN,
g_param_spec_int (NM_AP_LAST_SEEN, "", "",
-1, G_MAXINT, -1,
- G_PARAM_READABLE | G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));
nm_dbus_manager_register_exported_type (nm_dbus_manager_get (),