aboutsummaryrefslogtreecommitdiffstats
path: root/meta-agl-profile-core/recipes-connectivity
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-03-01 10:57:47 +0200
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2019-03-05 02:11:06 +0000
commitbd5938866114aa399d77524c10eda1088c444c4d (patch)
tree3569ca445fb68ad06c9129ae7e5d9b1b45bd9c46 /meta-agl-profile-core/recipes-connectivity
parent99ce725c6857e5022243ef63a1365e303566c3fd (diff)
meta-agl-profile-core: recipes-connectivity: ofono: add patch to allow multiple APN lookups
Change-Id: I409a08ded90cc17d8bcbca7c131e240f1db0bdee Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'meta-agl-profile-core/recipes-connectivity')
-rw-r--r--meta-agl-profile-core/recipes-connectivity/ofono/files/0001-provision-allow-duplicate-entries-from-mbpi_lookup_a.patch27
-rw-r--r--meta-agl-profile-core/recipes-connectivity/ofono/ofono_%.bbappend5
2 files changed, 31 insertions, 1 deletions
diff --git a/meta-agl-profile-core/recipes-connectivity/ofono/files/0001-provision-allow-duplicate-entries-from-mbpi_lookup_a.patch b/meta-agl-profile-core/recipes-connectivity/ofono/files/0001-provision-allow-duplicate-entries-from-mbpi_lookup_a.patch
new file mode 100644
index 000000000..7b44e483e
--- /dev/null
+++ b/meta-agl-profile-core/recipes-connectivity/ofono/files/0001-provision-allow-duplicate-entries-from-mbpi_lookup_a.patch
@@ -0,0 +1,27 @@
+From 7782f8f9d9634ebeddafefedab10ba254f9cc34a Mon Sep 17 00:00:00 2001
+From: Matt Ranostay <matt.ranostay@konsulko.com>
+Date: Fri, 1 Mar 2019 17:53:17 +0900
+Subject: [PATCH] provision: allow duplicate entries from mbpi_lookup_apn()
+ results
+
+Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
+---
+ 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
+
diff --git a/meta-agl-profile-core/recipes-connectivity/ofono/ofono_%.bbappend b/meta-agl-profile-core/recipes-connectivity/ofono/ofono_%.bbappend
index e78eb44be..bde3cce0f 100644
--- a/meta-agl-profile-core/recipes-connectivity/ofono/ofono_%.bbappend
+++ b/meta-agl-profile-core/recipes-connectivity/ofono/ofono_%.bbappend
@@ -1,5 +1,8 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
-SRC_URI_append = "file://ofono.conf"
+SRC_URI_append = "\
+ file://ofono.conf \
+ file://0001-provision-allow-duplicate-entries-from-mbpi_lookup_a.patch \
+ "
do_install_append() {
install -m 0644 ${WORKDIR}/ofono.conf ${D}${sysconfdir}/dbus-1/system.d/ofono.conf