diff options
author | Thomas Haller <thaller@redhat.com> | 2020-02-26 17:39:33 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-02-26 17:54:15 +0100 |
commit | e347886a5ff1b212051beeeae9f2baee6d691db5 (patch) | |
tree | 82e4423bd8b9d22c495e7b3adf7456fd97c63985 | |
parent | 8d5c4b26e40e8894cd112229957dc34031eb748e (diff) | |
download | NetworkManager-e347886a5ff1b212051beeeae9f2baee6d691db5.tar.gz |
device: don't make NM_DEVICE_FIRMWARE_VERSION property writable
-rw-r--r-- | src/devices/nm-device.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index 40b3651e6d..c094918c2a 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -17284,10 +17284,6 @@ set_property (GObject *object, guint prop_id, /* construct-only */ priv->driver_version = g_value_dup_string (value); break; - case PROP_FIRMWARE_VERSION: - /* construct-only */ - priv->firmware_version = g_value_dup_string (value); - break; case PROP_MANAGED: if (nm_device_is_real (self)) { gboolean managed; @@ -17725,7 +17721,7 @@ nm_device_class_init (NMDeviceClass *klass) obj_properties[PROP_FIRMWARE_VERSION] = g_param_spec_string (NM_DEVICE_FIRMWARE_VERSION, "", "", NULL, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); obj_properties[PROP_CAPABILITIES] = g_param_spec_uint (NM_DEVICE_CAPABILITIES, "", "", |