[PATCH] Fix for sierra wireless 881 3G gsm modem support



This is a fix for sierra wireless 881 modem. The problem is that that it
currently fails when setting the APN. The problem turned out to be that
someone added spaces to the APN initialization line. 

This patch has been tested and works. This will also fix other sierra
wireless cards. 

This should not affect any other wireless modems if you need example APN
initialization lines (that have NO spaces) see here:
http://74.125.45.104/search?q=cache:yh38V23XmD8J:ewon.be/Download/TN/GPRS%2520network%2520param.pdf+AT%2BCGDCONT&hl=en&ct=clnk&cd=5&gl=us&client=firefox-a

Signed-off-by: Jerone Young <jerone young canonical com>

--- src/nm-gsm-device.c 2008-10-22 03:24:00 +0000
+++ src/nm-gsm-device.c 2008-10-22 03:24:39 +0000
@@ -213,7 +213,7 @@
   return;
  }

- command = g_strdup_printf ("AT+CGDCONT=%d, \"IP\", \"%s\"", cid, setting->apn);
+ command = g_strdup_printf ("AT+CGDCONT=%d,\"IP\",\"%s\"", cid, setting->apn);
  modem_wait_for_reply (device, command, 7, responses, responses, set_apn_done, GUINT_TO_POINTER (cid));
  g_free (command);
 }

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]