diff options
author | John Klug <john.klug@multitech.com> | 2023-01-10 16:40:41 -0600 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2023-01-10 16:40:41 -0600 |
commit | a64a1538c6576eccfb841861cd9acf9b22c732d8 (patch) | |
tree | 00031ede7deeb96674eb000a336179f22ad32710 /src/sms_list.c | |
parent | c97e4dad4fa1720cc510d44b404a1727907c22a5 (diff) | |
parent | 78a27efb55e1c509604fe9d96f8c421d6b1bda36 (diff) | |
download | sms-utils-1.0.8.tar.gz sms-utils-1.0.8.tar.bz2 sms-utils-1.0.8.zip |
[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.c | 20 |
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) { |