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-24 13:05:26 +0000
commit6d57825edb103d2b2b26af25e0cc994126ef2366 (patch)
tree1e90669b390b50333f76857b734cdc29865a11ea
parent668c22523716812094400606c2d29376538feef1 (diff)
libmbim-glib,uuid: fix context type conversions to allow all values
We were ignoring certain context types like tethering. (cherry picked from commit db1879c71852be2b729660efe9ce360735b7f223)
-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 cda7258..c25f914 100644
--- a/src/libmbim-glib/mbim-uuid.c
+++ b/src/libmbim-glib/mbim-uuid.c
@@ -592,7 +592,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: