From b74c01478ed4bbb79e0174eea436208638e3b257 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Wed, 11 Jan 2012 01:31:21 +0100 Subject: [PATCH] broadband-modem: set auto registration with AT+COPS=0 This is, remove the use of "AT+COPS=0,,". The extra commas break its use in a Nokia C7, and the proper/clean way to do it anyway is to avoid using the commas. --- src/mm-broadband-modem.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mm-broadband-modem.c b/src/mm-broadband-modem.c index bde7eaaa..7ae6f469 100644 --- a/src/mm-broadband-modem.c +++ b/src/mm-broadband-modem.c @@ -2284,7 +2284,9 @@ register_in_network (MMIfaceModem3gpp *self, */ else if (REG_IS_IDLE (broadband->priv->modem_3gpp_registration_state) || broadband->priv->manual_reg) { - command = g_strdup ("+COPS=0,,"); + /* Note that '+COPS=0,,' (same but with commas) won't work in some Nokia + * phones */ + command = g_strdup ("+COPS=0"); broadband->priv->manual_reg = FALSE; }