diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2018-06-15 17:04:39 +0200 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2018-07-10 19:45:55 +0000 |
commit | fff3f0ff7130f291cbaf530d1aa3c31168e5e5db (patch) | |
tree | 3e403285b0ced0cb84603d02c805542fc8aa66e3 | |
parent | d134402efc49eb5e51ee7db33c8aef785837ef16 (diff) | |
download | ModemManager-fff3f0ff7130f291cbaf530d1aa3c31168e5e5db.tar.gz |
broadband-modem: skip concatenated AT commands
Not all modems support AT command concatenation (e.g. u-blox TOBY-L4
doesn't, according to a specific note about it in the AT command
reference). So just skip concatenation in the few places where it's
used.
-rw-r--r-- | src/mm-broadband-modem.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/mm-broadband-modem.c b/src/mm-broadband-modem.c index ade17defb..8afec66f9 100644 --- a/src/mm-broadband-modem.c +++ b/src/mm-broadband-modem.c @@ -3855,12 +3855,8 @@ modem_3gpp_load_operator_code (MMIfaceModem3gpp *self, gpointer user_data) { mm_dbg ("loading Operator Code..."); - mm_base_modem_at_command (MM_BASE_MODEM (self), - "+COPS=3,2;+COPS?", - 3, - FALSE, - callback, - user_data); + mm_base_modem_at_command (MM_BASE_MODEM (self), "+COPS=3,2", 3, FALSE, NULL, NULL); + mm_base_modem_at_command (MM_BASE_MODEM (self), "+COPS?", 3, FALSE, callback, user_data); } /*****************************************************************************/ @@ -3898,12 +3894,8 @@ modem_3gpp_load_operator_name (MMIfaceModem3gpp *self, gpointer user_data) { mm_dbg ("loading Operator Name..."); - mm_base_modem_at_command (MM_BASE_MODEM (self), - "+COPS=3,0;+COPS?", - 3, - FALSE, - callback, - user_data); + mm_base_modem_at_command (MM_BASE_MODEM (self), "+COPS=3,0", 3, FALSE, NULL, NULL); + mm_base_modem_at_command (MM_BASE_MODEM (self), "+COPS?", 3, FALSE, callback, user_data); } /*****************************************************************************/ |