summaryrefslogtreecommitdiffstats
path: root/meta-extras/packages/openmoko/libgsmd/vendor-qc-v0.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-extras/packages/openmoko/libgsmd/vendor-qc-v0.patch')
-rw-r--r--meta-extras/packages/openmoko/libgsmd/vendor-qc-v0.patch38
1 files changed, 0 insertions, 38 deletions
diff --git a/meta-extras/packages/openmoko/libgsmd/vendor-qc-v0.patch b/meta-extras/packages/openmoko/libgsmd/vendor-qc-v0.patch
deleted file mode 100644
index 8306f8a66e..0000000000
--- a/meta-extras/packages/openmoko/libgsmd/vendor-qc-v0.patch
+++ /dev/null
@@ -1,38 +0,0 @@
1Index: gsm/src/gsmd/vendor_qc.c
2===================================================================
3--- gsm.orig/src/gsmd/vendor_qc.c 2007-06-13 20:13:47.000000000 +0200
4+++ gsm/src/gsmd/vendor_qc.c 2007-06-13 20:45:19.000000000 +0200
5@@ -81,6 +88,9 @@
6 {
7 /* FIXME: do actual detection of vendor if we have multiple vendors */
8 /* open /proc/cpuinfo and check for HTC Universal? */
9+
10+ /* The Qualcomm chip starts in V0 mode */
11+ g->flags |= GSMD_FLAG_V0;
12 return 1;
13 }
14
15Index: gsm/src/gsmd/gsmd.c
16===================================================================
17--- gsm.orig/src/gsmd/gsmd.c 2007-06-13 20:13:47.000000000 +0200
18+++ gsm/src/gsmd/gsmd.c 2007-06-13 20:49:54.000000000 +0200
19@@ -62,7 +62,8 @@
20 {
21 struct gsmd_alive_priv *alp = ctx;
22
23- if (!strcmp(resp, "OK"))
24+ if (!strcmp(resp, "OK") ||
25+ ((alp->gsmd->flags & GSMD_FLAG_V0) && resp[0] == '0'))
26 alp->alive_responded = 1;
27 return 0;
28 }
29@@ -201,7 +202,8 @@
30 {
31 struct gsmd *gsmd = ctx;
32
33- if (strcmp(resp, "OK")) {
34+ if (strcmp(resp, "OK") &&
35+ (!(gsmd->flags & GSMD_FLAG_V0) || resp[0] != '0')) {
36 gsmd_log(GSMD_FATAL, "response '%s' to initial command invalid", resp);
37 exit(5);
38 }