summaryrefslogtreecommitdiff
path: root/src/sms_list.c
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2023-01-10 16:40:41 -0600
committerJohn Klug <john.klug@multitech.com>2023-01-10 16:40:41 -0600
commita64a1538c6576eccfb841861cd9acf9b22c732d8 (patch)
tree00031ede7deeb96674eb000a336179f22ad32710 /src/sms_list.c
parentc97e4dad4fa1720cc510d44b404a1727907c22a5 (diff)
parent78a27efb55e1c509604fe9d96f8c421d6b1bda36 (diff)
downloadsms-utils-master.tar.gz
sms-utils-master.tar.bz2
sms-utils-master.zip
Merge branch 'sk/GP-1842/imsi-vzw-detection' into 'master' HEAD1.0.8master
[GP-1842] Update the Cellular code to use SIM IMSI for Verizon detection See merge request !14
Diffstat (limited to 'src/sms_list.c')
-rw-r--r--src/sms_list.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/sms_list.c b/src/sms_list.c
index 2c39aa8..7f246be 100644
--- a/src/sms_list.c
+++ b/src/sms_list.c
@@ -283,14 +283,14 @@ static int list_info_callback(char *buf, size_t len, void *data)
msg = list_entry(list_info->msg_list.prev, typeof(*msg), list);
if (msg->len > 0) {
- if (isCdmaTypeModel()) {
- log_debug("using CDMA pdu decoding");
- err = pdu_decode_cdma(buf, &msg->pdu);
- }
- else {
- log_debug("using GSM pdu decoding");
- err = pdu_decode(buf, &msg->pdu);
- }
+ if (is_telit_3gpp2_format()) {
+ log_debug("using CDMA pdu decoding");
+ err = pdu_decode_cdma(buf, &msg->pdu);
+ }
+ else {
+ log_debug("using GSM pdu decoding");
+ err = pdu_decode(buf, &msg->pdu);
+ }
if (err < 0) {
log_warning("pdu decode failed: %d", err);
}
@@ -499,8 +499,8 @@ int sms_list(int argc, char **argv)
return false;
}
- // LNA7 with Verizon SIM SMS 3GPP, 3GPP2 WORKAROUND
- if (is_quectel_dual_sms_format()) {
+ // LNA7/LNA7D/L4G1 with Verizon SIM SMS 3GPP, 3GPP2 WORKAROUND
+ if (is_quectel_dual_format()) {
int tmp;
tmp = atcmd_plus_qcfg_write(fd, SMS_FORMAT_3GPP);
if (tmp == 0) {