From 549e2f511874cc5d8b6ff4b8d0cca6aafe461a35 Mon Sep 17 00:00:00 2001 From: Andrew Lassalle Date: Thu, 13 Apr 2023 14:26:44 -0700 Subject: [PATCH] iface-modem-3gpp: don't compare profile-name on attach APNs When a request to set a new eps bearer settings is received, ignore the profile-name when comparing the previous configuration with the new one, since the modem's profile might already have a name that won't match the settings provided by the user. Profile names are used in QMI modems. If the profile name does not match the existing one, the modem will detach and reattach to the network. --- src/mm-iface-modem-3gpp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mm-iface-modem-3gpp.c b/src/mm-iface-modem-3gpp.c index 0399d1a5..6c339318 100644 --- a/src/mm-iface-modem-3gpp.c +++ b/src/mm-iface-modem-3gpp.c @@ -37,6 +37,7 @@ * - 'apn-type' may not always be supported. * - 'access-type-preference' may not always be reported. * - 'profile-id' will not be known in the requested settings + * - 'profile-name' might not be known in the requested settings * - we ignore settings not applicable to profiles, like 'allow-roaming' or * 'rm-protocol'. * - we apply very loose matching for all fields. @@ -44,6 +45,7 @@ #define MM_BEARER_PROPERTIES_CMP_FLAGS_EPS \ (MM_BEARER_PROPERTIES_CMP_FLAGS_LOOSE | \ MM_BEARER_PROPERTIES_CMP_FLAGS_NO_PROFILE_ID | \ + MM_BEARER_PROPERTIES_CMP_FLAGS_NO_PROFILE_NAME | \ MM_BEARER_PROPERTIES_CMP_FLAGS_NO_PASSWORD | \ MM_BEARER_PROPERTIES_CMP_FLAGS_NO_ALLOW_ROAMING | \ MM_BEARER_PROPERTIES_CMP_FLAGS_NO_APN_TYPE | \