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.
This commit is contained in:
Andrew Lassalle
2023-04-19 19:10:12 +00:00
committed by Aleksander Morgado
parent 1a133dca5e
commit 549e2f5118
+2
View File
@@ -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 | \