summaryrefslogtreecommitdiff
path: root/src/atcmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/atcmd.c')
-rw-r--r--src/atcmd.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/atcmd.c b/src/atcmd.c
index a216ab6..97fd34b 100644
--- a/src/atcmd.c
+++ b/src/atcmd.c
@@ -1527,7 +1527,7 @@ int sms_device_open(void)
return fd;
}
-is_vzw_lte(void)
+int is_vzw_lte(void)
{
if (!strcmp(Global.core.model, "LE910-NA1")) {
log_debug("Found LE910-NA1");
@@ -1538,7 +1538,8 @@ is_vzw_lte(void)
}
}
- return (!strcmp(Global.core.model, "LE910-SVG"));
+ return (!strncmp(Global.core.model, "LE910-SVG", MODEL_LEN) ||
+ !strncmp(Global.core.model, "LE910-SV1", MODEL_LEN));
}
int isCdmaTypeModel()
@@ -1547,8 +1548,8 @@ int isCdmaTypeModel()
if (is_vzw_lte())
return 1;
- return (!strcmp(Global.core.model, "DE910-DUAL") ||
- !strcmp(Global.core.model, "CE910-DUAL"));
+ return (!strncmp(Global.core.model, "DE910-DUAL", MODEL_LEN) ||
+ !strncmp(Global.core.model, "CE910-DUAL", MODEL_LEN));
}
int is_telit_model()