aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2011-12-31 11:13:34 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-03-15 14:14:42 +0100
commitd28171b1db0ac5b5186ab4c1b38a0b19a8662a3f (patch)
tree21f7b4e5575f981aefecb3e952bff9d102cb707c
parent0f7716887c0839515a55863397423df24fa7c2bd (diff)
broadband-modem: don't try +CGSN in CDMA-only modems
-rw-r--r--src/mm-broadband-modem.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mm-broadband-modem.c b/src/mm-broadband-modem.c
index 37c1e21e..d24d72c4 100644
--- a/src/mm-broadband-modem.c
+++ b/src/mm-broadband-modem.c
@@ -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 */