---
 examples/provision.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/examples/provision.c b/examples/provision.c
index 356b0b3..546a161 100644
--- a/examples/provision.c
+++ b/examples/provision.c
@@ -37,6 +37,7 @@
 #include <ofono/log.h>
 
 static int example_provision_get_settings(const char *mcc, const char *mnc,
+                               const char *spn,
                                struct ofono_gprs_provision_data **settings,
                                int *count)
 {
@@ -44,10 +45,11 @@ static int example_provision_get_settings(const char *mcc, 
const char *mnc,
        *count = 0;
        *settings = NULL;
 
-       ofono_debug("Finding settings for MCC %s, MNC %s",
-                       mcc, mnc);
+       ofono_debug("Finding settings for MCC %s, MNC %s, SPN '%s'",
+                       mcc, mnc, spn);
 
-       if (strcmp(mcc, "246") != 0 || strcmp(mnc, "81") != 0)
+       if (strcmp(mcc, "246") != 0 || strcmp(mnc, "81") != 0 ||
+                                               strcmp(spn, "oFono") != 0)
                return -ENOENT;
 
        ofono_debug("Creating example settings for phonesim");
-- 
1.7.1

_______________________________________________
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono

Reply via email to