summaryrefslogtreecommitdiff
path: root/src/sms_list.c
diff options
context:
space:
mode:
authorAndrii Pientsov <andrii.pientsov@globallogic.com>2020-06-22 09:57:00 +0300
committerAndrii Pientsov <andrii.pientsov@globallogic.com>2020-06-22 09:57:00 +0300
commit435cec04eebd297a6ebd29fffc2c254ee5ef6745 (patch)
tree587e1d7f9040687bbc3b00bd60a730308422be9e /src/sms_list.c
parent3d3c735f3bbd269f97bd59a246d5f18b010eda2b (diff)
downloadsms-utils-435cec04eebd297a6ebd29fffc2c254ee5ef6745.tar.gz
sms-utils-435cec04eebd297a6ebd29fffc2c254ee5ef6745.tar.bz2
sms-utils-435cec04eebd297a6ebd29fffc2c254ee5ef6745.zip
MTX-3449 mPower June20: GP-655 LNA7: SMS -> 3GPP vs. 3GPP2
Diffstat (limited to 'src/sms_list.c')
-rw-r--r--src/sms_list.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/sms_list.c b/src/sms_list.c
index 678c158..ac55a28 100644
--- a/src/sms_list.c
+++ b/src/sms_list.c
@@ -456,6 +456,7 @@ int sms_list(int argc, char **argv)
int option_index;
int ret;
int fd;
+ int tmp, ret_3gpp, ret_3gpp2 = false;
if (argc < 1) {
log_debug("should have received at least one argument");
@@ -497,7 +498,22 @@ int sms_list(int argc, char **argv)
return false;
}
- ret = do_list(fd, cmd_type, argc, argv);
+ // LNA7 with Verizon SIM SMS 3GPP, 3GPP2 WORKAROUND
+ if (is_vzw_lna7()) {
+ tmp = atcmd_plus_qcfg_write(fd, SMS_FORMAT_3GPP);
+ if (tmp == 0) {
+ ret_3gpp = do_list(fd, cmd_type, argc, argv);
+ }
+
+ tmp = atcmd_plus_qcfg_write(fd, SMS_FORMAT_3GPP2);
+ if (tmp == 0) {
+ ret_3gpp2 = do_list(fd, cmd_type, argc, argv);
+ }
+
+ ret = (ret_3gpp || ret_3gpp2);
+ } else {
+ ret = do_list(fd, cmd_type, argc, argv);
+ }
sms_device_close(fd);