diff options
Diffstat (limited to 'meta-extras/packages/openmoko/libgsmd/alive-start-if-interpreter-ready.patch')
-rw-r--r-- | meta-extras/packages/openmoko/libgsmd/alive-start-if-interpreter-ready.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta-extras/packages/openmoko/libgsmd/alive-start-if-interpreter-ready.patch b/meta-extras/packages/openmoko/libgsmd/alive-start-if-interpreter-ready.patch new file mode 100644 index 0000000000..20104d2e3f --- /dev/null +++ b/meta-extras/packages/openmoko/libgsmd/alive-start-if-interpreter-ready.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | Index: gsm/src/gsmd/atcmd.c | ||
2 | =================================================================== | ||
3 | --- gsm.orig/src/gsmd/atcmd.c 2007-06-03 13:24:44.000000000 +0200 | ||
4 | +++ gsm/src/gsmd/atcmd.c 2007-06-03 13:24:46.000000000 +0200 | ||
5 | @@ -185,6 +185,7 @@ | ||
6 | !strcmp(buf, "AT-Command Interpreter ready")) { | ||
7 | g->interpreter_ready = 1; | ||
8 | gsmd_initsettings(g); | ||
9 | + gmsd_alive_start(g); | ||
10 | return 0; | ||
11 | } | ||
12 | |||
13 | Index: gsm/src/gsmd/gsmd.c | ||
14 | =================================================================== | ||
15 | --- gsm.orig/src/gsmd/gsmd.c 2007-06-03 13:22:02.000000000 +0200 | ||
16 | +++ gsm/src/gsmd/gsmd.c 2007-06-03 13:22:56.000000000 +0200 | ||
17 | @@ -128,7 +128,7 @@ | ||
18 | gsmd_timer_register(tmr); | ||
19 | } | ||
20 | |||
21 | -static int gmsd_alive_start(struct gsmd *gsmd) | ||
22 | +int gmsd_alive_start(struct gsmd *gsmd) | ||
23 | { | ||
24 | struct timeval tv; | ||
25 | |||
26 | @@ -478,10 +478,11 @@ | ||
27 | /* select a vendor plugin */ | ||
28 | gsmd_vendor_plugin_find(&g); | ||
29 | |||
30 | - if (g.interpreter_ready) | ||
31 | + if (g.interpreter_ready) { | ||
32 | gsmd_initsettings(&g); | ||
33 | |||
34 | - gmsd_alive_start(&g); | ||
35 | + gmsd_alive_start(&g); | ||
36 | + } | ||
37 | |||
38 | gsmd_opname_init(&g); | ||
39 | |||