diff options
author | Andrew Lassalle <andrewlassalle@chromium.org> | 2023-04-13 14:26:44 -0700 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2023-04-19 19:10:12 +0000 |
commit | 549e2f511874cc5d8b6ff4b8d0cca6aafe461a35 (patch) | |
tree | 4d52f9d76e68246d0d82713c1c184316d95e17fd | |
parent | 1a133dca5e91f886d97162a74e3224768172be35 (diff) | |
download | ModemManager-549e2f511874cc5d8b6ff4b8d0cca6aafe461a35.tar.gz |
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.
-rw-r--r-- | src/mm-iface-modem-3gpp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mm-iface-modem-3gpp.c b/src/mm-iface-modem-3gpp.c index 0399d1a5e..6c3393189 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 | \ |