diff options
| author | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2023-01-06 17:52:09 +0200 |
|---|---|---|
| committer | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2023-01-06 19:13:55 +0200 |
| commit | e8b95d56ac9e06c3dc55f2c6fc3b2e177f9b10b0 (patch) | |
| tree | 6b16f8af8a6aa3f177f9f243f182e9e1d06c9919 /src/sms_send.c | |
| parent | cd38e2b12d6f13dfd03eed207aa7f262e00099f1 (diff) | |
| download | sms-utils-e8b95d56ac9e06c3dc55f2c6fc3b2e177f9b10b0.tar.gz sms-utils-e8b95d56ac9e06c3dc55f2c6fc3b2e177f9b10b0.tar.bz2 sms-utils-e8b95d56ac9e06c3dc55f2c6fc3b2e177f9b10b0.zip | |
[GP-1842] Refactoring - Renamed Verizon 3GPP2 detection functions
Renamed the functions to better represent their behavior and purpose.
Diffstat (limited to 'src/sms_send.c')
| -rw-r--r-- | src/sms_send.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sms_send.c b/src/sms_send.c index 149ce1a..a95a0ca 100644 --- a/src/sms_send.c +++ b/src/sms_send.c @@ -225,7 +225,7 @@ static int do_send(int fd, struct send_options *options, int argc, char **argv) } //LE910-SVG SMS SEND WORKAROUND - if (is_vzw_lte()) { + if (is_telit_lte_vzw_3gpp2_format()) { log_info("setting text mode for Verizon LTE"); tmp = atcmd_plus_cmgf_write(fd, SMS_TEXT_MODE); if (tmp < 0) { @@ -235,7 +235,7 @@ static int do_send(int fd, struct send_options *options, int argc, char **argv) } if (options->cmgw_first) { - if (isCdmaTypeModel()) { + if (is_telit_3gpp2_format()) { log_debug("using CDMA pdu encoding for cmgw"); tmp = pdu_encode_cdma(buf, sizeof(buf), &pdu); } @@ -253,7 +253,7 @@ static int do_send(int fd, struct send_options *options, int argc, char **argv) } //LE910-SVG SMS SEND WORKAROUND - if (is_vzw_lte()) { + if (is_telit_lte_vzw_3gpp2_format()) { mem_index = atcmd_plus_cmgw_write_text(fd, NULL, SMS_ADDR_UNSPEC, NULL, pdu.user_data, pdu.user_data_len); } else { @@ -298,7 +298,7 @@ static int do_send(int fd, struct send_options *options, int argc, char **argv) continue; } } else { - if (isCdmaTypeModel()) { + if (is_telit_3gpp2_format()) { log_debug("using CDMA pdu encoding for cmgs"); tmp = pdu_encode_cdma(buf, sizeof(buf), &pdu); } @@ -313,7 +313,7 @@ static int do_send(int fd, struct send_options *options, int argc, char **argv) } //LE910-SVG SMS SEND WORKAROUND - if (is_vzw_lte()) { + if (is_telit_lte_vzw_3gpp2_format()) { tmp = atcmd_plus_cmgs_write_text(fd, pdu.addr.addr, pdu.user_data, pdu.user_data_len); } else { |
