From 3f476b7a50a4c0de3d05ba359f081deec3aa4b0f Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Sat, 19 Oct 2019 09:06:48 +0200 Subject: [PATCH] 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. --- libnm/nm-access-point.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);