qmimodem: set APN for LTE default bearer

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.
This commit is contained in:
Jonas Bonn 2017-05-04 15:24:30 +02:00 committed by Denis Kenzior
parent 4651a70285
commit f23ea6b45f
1 changed files with 1 additions and 1 deletions

View File

@ -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;