Apparently, an empty APN in an ofono context means that that the context
cannot be activated.  connman definitely interprets it this way.

This patch sets a default name of "automatic" for the default bearer if
no other LTE APN is supplied (which is currently the case as the LTE
atom is not in place yet).  Without this, connman happily ignores the
context, even though it has been activated by ofono.
---
 drivers/qmimodem/gprs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/qmimodem/gprs.c b/drivers/qmimodem/gprs.c
index ac52b19..a80d55f 100644
--- a/drivers/qmimodem/gprs.c
+++ b/drivers/qmimodem/gprs.c
@@ -83,7 +83,7 @@ static int handle_ss_info(struct qmi_result *result, struct 
ofono_gprs *gprs)
                        /* FIXME: query default profile number and APN
                         * instead of assuming profile 1 and ""
                         */
-                       ofono_gprs_cid_activated(gprs, 1 , "");
+                       ofono_gprs_cid_activated(gprs, 1 , "automatic");
                }
 
        return status;
-- 
2.9.3

_______________________________________________
ofono mailing list
[email protected]
https://lists.ofono.org/mailman/listinfo/ofono

Reply via email to