broadband-modem: don't try +CGSN in CDMA-only modems

This commit is contained in:
Aleksander Morgado
2011-12-31 11:13:34 +01:00
parent 0f7716887c
commit d28171b1db

View File

@@ -528,10 +528,17 @@ load_equipment_identifier (MMIfaceModem *self,
GAsyncReadyCallback callback,
gpointer user_data)
{
const MMBaseModemAtCommand *commands = equipment_identifiers;
mm_dbg ("loading equipment identifier...");
/* On CDMA-only (non-3GPP) modems, just try +GSN */
if (mm_iface_modem_is_cdma_only (self))
commands++;
mm_base_modem_at_sequence (
MM_BASE_MODEM (self),
equipment_identifiers,
commands,
NULL, /* response_processor_context */
NULL, /* response_processor_context_free */
NULL, /* cancellable */