aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-02-17 13:08:33 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-03-15 14:15:07 +0100
commitb57d32acbeb0de5b5befa3746e690f3450bd1203 (patch)
tree0c9a1d8c05113238c17f7216094902b44dd5f70e
parent35f0b773ef4ba251cdba0b1a7e7245253ca44828 (diff)
iridium: don't try to scan for networks
The Iridium network will be the only one reported in the scan results.
-rw-r--r--plugins/mm-broadband-modem-iridium.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/mm-broadband-modem-iridium.c b/plugins/mm-broadband-modem-iridium.c
index 112abb66..031e16fc 100644
--- a/plugins/mm-broadband-modem-iridium.c
+++ b/plugins/mm-broadband-modem-iridium.c
@@ -263,6 +263,17 @@ iface_modem_3gpp_init (MMIfaceModem3gpp *iface)
iface->load_operator_name_finish = load_operator_name_finish;
iface->load_operator_code = load_operator_name_or_code;
iface->load_operator_code_finish = load_operator_code_finish;
+
+ /* Don't try to scan networks with AT+COPS=?.
+ * It does work, but it will only reply about the Iridium network
+ * being found (so not very helpful, as that is the only one expected), but
+ * also, it will use a non-standard reply format. Instead of supporting that
+ * specific format used, just fully skip it.
+ * For reference, the result is:
+ * +COPS:(002),"IRIDIUM","IRIDIUM","90103",,(000-001),(000-002)
+ */
+ iface->scan_networks = NULL;
+ iface->scan_networks_finish = NULL;
}
static void