mirror of git://git.sysmocom.de/ofono
gprs-provision: update example with SPN
This commit is contained in:
parent
566c60a402
commit
10a2784f36
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue