summaryrefslogtreecommitdiff
path: root/packages/gsm/files/alive-start-if-interpreter-ready.patch
diff options
context:
space:
mode:
authorPhilipp Zabel <philipp.zabel@gmail.com>2007-06-12 10:26:57 +0000
committerPhilipp Zabel <philipp.zabel@gmail.com>2007-06-12 10:26:57 +0000
commite734a3261cb2290387eb20d6fc6871b3e2655313 (patch)
treea7c0130007544bd766fc3789a21cfe197cc62d5a /packages/gsm/files/alive-start-if-interpreter-ready.patch
parent49dd3f8a1e77887afef0674d2ef66c6bae8f637d (diff)
libgsmd: update patches
- drop plugin (accepted upstream) and qualcomm-extreply patches - start the modem-alive thread only after the interpreter is ready - add vendor plugin configurable extreply character support - add a command line option to set the initial interpreter_ready state - fix csq readings in the tihtc vendor module
Diffstat (limited to 'packages/gsm/files/alive-start-if-interpreter-ready.patch')
-rw-r--r--packages/gsm/files/alive-start-if-interpreter-ready.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/packages/gsm/files/alive-start-if-interpreter-ready.patch b/packages/gsm/files/alive-start-if-interpreter-ready.patch
new file mode 100644
index 0000000000..20104d2e3f
--- /dev/null
+++ b/packages/gsm/files/alive-start-if-interpreter-ready.patch
@@ -0,0 +1,39 @@
+Index: gsm/src/gsmd/atcmd.c
+===================================================================
+--- gsm.orig/src/gsmd/atcmd.c 2007-06-03 13:24:44.000000000 +0200
++++ gsm/src/gsmd/atcmd.c 2007-06-03 13:24:46.000000000 +0200
+@@ -185,6 +185,7 @@
+ !strcmp(buf, "AT-Command Interpreter ready")) {
+ g->interpreter_ready = 1;
+ gsmd_initsettings(g);
++ gmsd_alive_start(g);
+ return 0;
+ }
+
+Index: gsm/src/gsmd/gsmd.c
+===================================================================
+--- gsm.orig/src/gsmd/gsmd.c 2007-06-03 13:22:02.000000000 +0200
++++ gsm/src/gsmd/gsmd.c 2007-06-03 13:22:56.000000000 +0200
+@@ -128,7 +128,7 @@
+ gsmd_timer_register(tmr);
+ }
+
+-static int gmsd_alive_start(struct gsmd *gsmd)
++int gmsd_alive_start(struct gsmd *gsmd)
+ {
+ struct timeval tv;
+
+@@ -478,10 +478,11 @@
+ /* select a vendor plugin */
+ gsmd_vendor_plugin_find(&g);
+
+- if (g.interpreter_ready)
++ if (g.interpreter_ready) {
+ gsmd_initsettings(&g);
+
+- gmsd_alive_start(&g);
++ gmsd_alive_start(&g);
++ }
+
+ gsmd_opname_init(&g);
+