From b57d32acbeb0de5b5befa3746e690f3450bd1203 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 17 Feb 2012 13:08:33 +0100 Subject: [PATCH] iridium: don't try to scan for networks The Iridium network will be the only one reported in the scan results. --- plugins/mm-broadband-modem-iridium.c | 11 +++++++++++ 1 file changed, 11 insertions(+) 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