if the mobile provider information database has multiple apn settings for the
same operator, ofono was throwing an error and creating a default internet
context with an empty apn.

This patch will instead allow the automatic creation of multiple context
allowing the user to pick one of the default via connman.

Connman supports multiple cellular context so no issue there.

Previously proposed by Martin Hundebøll here:
https://lists.ofono.org/hyperkitty/list/[email protected]/thread/2SC46PH5CWT3A3HTHGUKUUVI3QDYIL73/#7B6CPARJQMZUBQUPXBJMAOXZY4RW2L3D

And tested by Nicola Lunghi with connman 1.37

Signed-off-by: Nicola Lunghi <[email protected]>
---
 plugins/provision.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/provision.c b/plugins/provision.c
index 99c299eb..aa0b05e4 100644
--- a/plugins/provision.c
+++ b/plugins/provision.c
@@ -50,7 +50,7 @@ static int provision_get_settings(const char *mcc, const char 
*mnc,
 
        DBG("Provisioning for MCC %s, MNC %s, SPN '%s'", mcc, mnc, spn);
 
-       apns = mbpi_lookup_apn(mcc, mnc, FALSE, &error);
+       apns = mbpi_lookup_apn(mcc, mnc, TRUE, &error);
        if (apns == NULL) {
                if (error != NULL) {
                        ofono_error("%s", error->message);
-- 
2.20.1
_______________________________________________
ofono mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to