diff options
author | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-07-09 14:00:01 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-07-09 14:00:01 +0000 |
commit | 7aa012b407160f1ccf66545fb7a48bb679fef48a (patch) | |
tree | 72e0d21e69ca57b5577bb8f02874b9fee15b3cc3 /meta-extras/packages/openmoko/libgsmd/vendor-qc-v0.patch | |
parent | 5ff8d3eb52c2cfce75a15108567546820d651597 (diff) | |
download | openembedded-core-7aa012b407160f1ccf66545fb7a48bb679fef48a.tar.gz openembedded-core-7aa012b407160f1ccf66545fb7a48bb679fef48a.tar.bz2 openembedded-core-7aa012b407160f1ccf66545fb7a48bb679fef48a.tar.xz openembedded-core-7aa012b407160f1ccf66545fb7a48bb679fef48a.zip |
libgsmd: added from OE
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2132 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta-extras/packages/openmoko/libgsmd/vendor-qc-v0.patch')
-rw-r--r-- | meta-extras/packages/openmoko/libgsmd/vendor-qc-v0.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/meta-extras/packages/openmoko/libgsmd/vendor-qc-v0.patch b/meta-extras/packages/openmoko/libgsmd/vendor-qc-v0.patch new file mode 100644 index 000000000..8306f8a66 --- /dev/null +++ b/meta-extras/packages/openmoko/libgsmd/vendor-qc-v0.patch @@ -0,0 +1,38 @@ +Index: gsm/src/gsmd/vendor_qc.c +=================================================================== +--- gsm.orig/src/gsmd/vendor_qc.c 2007-06-13 20:13:47.000000000 +0200 ++++ gsm/src/gsmd/vendor_qc.c 2007-06-13 20:45:19.000000000 +0200 +@@ -81,6 +88,9 @@ + { + /* FIXME: do actual detection of vendor if we have multiple vendors */ + /* open /proc/cpuinfo and check for HTC Universal? */ ++ ++ /* The Qualcomm chip starts in V0 mode */ ++ g->flags |= GSMD_FLAG_V0; + return 1; + } + +Index: gsm/src/gsmd/gsmd.c +=================================================================== +--- gsm.orig/src/gsmd/gsmd.c 2007-06-13 20:13:47.000000000 +0200 ++++ gsm/src/gsmd/gsmd.c 2007-06-13 20:49:54.000000000 +0200 +@@ -62,7 +62,8 @@ + { + struct gsmd_alive_priv *alp = ctx; + +- if (!strcmp(resp, "OK")) ++ if (!strcmp(resp, "OK") || ++ ((alp->gsmd->flags & GSMD_FLAG_V0) && resp[0] == '0')) + alp->alive_responded = 1; + return 0; + } +@@ -201,7 +202,8 @@ + { + struct gsmd *gsmd = ctx; + +- if (strcmp(resp, "OK")) { ++ if (strcmp(resp, "OK") && ++ (!(gsmd->flags & GSMD_FLAG_V0) || resp[0] != '0')) { + gsmd_log(GSMD_FATAL, "response '%s' to initial command invalid", resp); + exit(5); + } |