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.
This commit is contained in:
Thomas Haller 2019-10-19 09:06:48 +02:00
parent 1c4acc89f1
commit 3f476b7a50

View file

@ -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);