summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksandermj@chromium.org>2023-02-17 09:58:33 +0000
committerAleksander Morgado <aleksandermj@chromium.org>2023-02-17 09:58:33 +0000
commitdb1879c71852be2b729660efe9ce360735b7f223 (patch)
treeeb0708ab8b91e7125e5ade985a6624aa48ee1370
parentd7bcd7e77b595665a5db8be4fae6de16afbe28df (diff)
downloadlibmbim-db1879c71852be2b729660efe9ce360735b7f223.tar.gz
libmbim-glib,uuid: fix context type conversions to allow all values
We were ignoring certain context types like tethering.
-rw-r--r--src/libmbim-glib/mbim-uuid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmbim-glib/mbim-uuid.c b/src/libmbim-glib/mbim-uuid.c
index e734b9b..4c5aac9 100644
--- a/src/libmbim-glib/mbim-uuid.c
+++ b/src/libmbim-glib/mbim-uuid.c
@@ -619,7 +619,7 @@ static const MbimUuid uuid_context_type_emergency_calling = {
const MbimUuid *
mbim_uuid_from_context_type (MbimContextType context_type)
{
- g_return_val_if_fail (context_type <= MBIM_CONTEXT_TYPE_LOCAL, &uuid_invalid);
+ g_return_val_if_fail (context_type <= MBIM_CONTEXT_TYPE_EMERGENCY_CALLING, &uuid_invalid);
switch (context_type) {
case MBIM_CONTEXT_TYPE_INVALID: