diff options
author | Thomas Haller <thaller@redhat.com> | 2019-10-19 09:06:48 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2019-10-27 14:30:51 +0100 |
commit | 3f476b7a50a4c0de3d05ba359f081deec3aa4b0f (patch) | |
tree | 4afed366fbbbb8160b59c0436ad3d7b9f82973a6 | |
parent | 1c4acc89f1d7fa9b390f048f341b0d19f52e4ae4 (diff) | |
download | NetworkManager-3f476b7a50a4c0de3d05ba359f081deec3aa4b0f.tar.gz |
libnm: change default value for NMAccessPoint:mode property
NMAccessPoint is an NMObject, and exclusively created and initialized by
NMClient. In practice, the D-Bus property is always present on D-Bus, so
the default value is not used. However, a better default is anyway
"unknown", also because that has zero numeric value.
-rw-r--r-- | libnm/nm-access-point.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libnm/nm-access-point.c b/libnm/nm-access-point.c index 39ed2ac21d..58def0368c 100644 --- a/libnm/nm-access-point.c +++ b/libnm/nm-access-point.c @@ -579,7 +579,7 @@ nm_access_point_class_init (NMAccessPointClass *ap_class) obj_properties[PROP_MODE] = g_param_spec_enum (NM_ACCESS_POINT_MODE, "", "", NM_TYPE_802_11_MODE, - NM_802_11_MODE_INFRA, + NM_802_11_MODE_UNKNOWN, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); |