aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2021-07-22 13:03:40 +0200
committerAleksander Morgado <aleksander@aleksander.es>2021-08-09 12:22:26 +0000
commit9d2782cc5a7f63f88e8909abc7246e0cc853f059 (patch)
treeca19361eb2bcaf432cd7d611e46e68a7d1a93986
parentf72046701659073fbfa97516e155865647acb154 (diff)
bearer-list: if multiplexing not supported, 0 max multiplexed bearers
Fixes warnings on AT+PPP based devices: ModemManager[602870]: <debug> [1626948725.168355] [modem0] allowed up to 1 active bearers (ModemManager:602870): GLib-GObject-WARNING **: 12:12:05.185: value "0" of type 'guint' is invalid or out of range for property 'max-active-multiplexed-bearers' of type 'guint'
-rw-r--r--src/mm-bearer-list.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mm-bearer-list.c b/src/mm-bearer-list.c
index 57aeab5e..66a90271 100644
--- a/src/mm-bearer-list.c
+++ b/src/mm-bearer-list.c
@@ -464,9 +464,9 @@ mm_bearer_list_class_init (MMBearerListClass *klass)
g_param_spec_uint (MM_BEARER_LIST_MAX_ACTIVE_MULTIPLEXED_BEARERS,
"Max active multiplexed bearers",
"Maximum number of active multiplexed bearers the list can handle",
- 1,
+ 0,
G_MAXUINT,
- 1,
+ 0,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
g_object_class_install_property (object_class, PROP_MAX_ACTIVE_MULTIPLEXED_BEARERS, properties[PROP_MAX_ACTIVE_MULTIPLEXED_BEARERS]);
}