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.
This commit is contained in:

committed by
Dan Williams

parent
d134402efc
commit
fff3f0ff71
@@ -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);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
Reference in New Issue
Block a user