From 5175c2accb5bff5e2c78e906d00658bd9b70c07e Mon Sep 17 00:00:00 2001 From: Jeroen Elebaut Date: Tue, 24 Nov 2009 11:31:22 -0800 Subject: [PATCH] gsm: some modems dislike spaces in AT+CGDCONT 0.7 hasn't used spaces for over a year, so this is a pretty safe change. Some modems just don't like it. 0.7 commit to remove spaces: commit 0265bfe52dcc93372aff6064e849044ccb72aa1e Author: Dan Williams Date: Fri Oct 24 15:15:06 2008 +0000 2008-10-24 Dan Williams * src/nm-gsm-device.c - (set_apn): remove erroneous spaces in AT+CGDCONT command (Jerone Young) --- src/mm-generic-gsm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mm-generic-gsm.c b/src/mm-generic-gsm.c index 4644e16d..f2053c53 100644 --- a/src/mm-generic-gsm.c +++ b/src/mm-generic-gsm.c @@ -1364,7 +1364,7 @@ cid_range_read (MMSerialPort *port, mm_callback_info_set_data (info, "cid", GUINT_TO_POINTER (cid), NULL); - command = g_strdup_printf ("+CGDCONT=%d, \"IP\", \"%s\"", cid, apn); + command = g_strdup_printf ("+CGDCONT=%d,\"IP\",\"%s\"", cid, apn); mm_serial_port_queue_command (port, command, 3, set_apn_done, info); g_free (command); }