aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-01-11 01:31:21 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-03-15 14:14:49 +0100
commitb74c01478ed4bbb79e0174eea436208638e3b257 (patch)
treefc1f930b23be2bec34ae5efb885cd0c965fa61e1 /src
parentd3c25e54c432445fb22a64fd99a7624a28b7b1d2 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/mm-broadband-modem.c4
1 files changed, 3 insertions, 1 deletions
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;
}