diff options
author | Jukka Saunamaki <jukka.saunamaki@nokia.com> | 2011-02-08 12:03:48 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-02-08 21:56:54 -0600 |
commit | 10a2784f369f3b1635e04fc3ba78ff87f9f763d2 (patch) | |
tree | d15c48857d86ae626722e6d98d36325b3f0dbe64 | |
parent | 566c60a4026ff7f0041127c414cc210994f387c3 (diff) | |
download | ofono-10a2784f369f3b1635e04fc3ba78ff87f9f763d2.tar.bz2 |
gprs-provision: update example with SPN
-rw-r--r-- | examples/provision.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/provision.c b/examples/provision.c index 356b0b36..546a1618 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"); |