summaryrefslogtreecommitdiffstats
path: root/meta-extras/packages/openmoko/libgsmd/tihtc-csq-fix.patch
diff options
context:
space:
mode:
authorRoss Burton <ross@openedhand.com>2007-08-15 13:59:52 +0000
committerRoss Burton <ross@openedhand.com>2007-08-15 13:59:52 +0000
commit746fa2064973f28f2954338193dc4494d318698b (patch)
tree7246abef77b8da735827fda2622fc164254d21dc /meta-extras/packages/openmoko/libgsmd/tihtc-csq-fix.patch
parente1d82ea5e8e9e2cf2965f11c6a96d961031f709a (diff)
downloadpoky-746fa2064973f28f2954338193dc4494d318698b.tar.gz
Move libgsmd from meta-extras to meta-openmoko
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2499 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta-extras/packages/openmoko/libgsmd/tihtc-csq-fix.patch')
-rw-r--r--meta-extras/packages/openmoko/libgsmd/tihtc-csq-fix.patch27
1 files changed, 0 insertions, 27 deletions
diff --git a/meta-extras/packages/openmoko/libgsmd/tihtc-csq-fix.patch b/meta-extras/packages/openmoko/libgsmd/tihtc-csq-fix.patch
deleted file mode 100644
index 3346d85809..0000000000
--- a/meta-extras/packages/openmoko/libgsmd/tihtc-csq-fix.patch
+++ /dev/null
@@ -1,27 +0,0 @@
1Index: gsm/src/gsmd/vendor_tihtc.c
2===================================================================
3--- gsm.orig/src/gsmd/vendor_tihtc.c 2007-06-03 16:26:39.000000000 +0200
4+++ gsm/src/gsmd/vendor_tihtc.c 2007-06-03 16:26:41.000000000 +0200
5@@ -90,6 +90,8 @@
6 struct gsmd_evt_auxdata *aux;
7 struct gsmd_ucmd *ucmd = usock_build_event(GSMD_MSG_EVENT, GSMD_EVT_SIGNAL,
8 sizeof(*aux));
9+ static int rssi_table[] = { 0,5,10,15,20,25,99 };
10+ unsigned int i;
11
12 DEBUGP("entering htccsq_parse param=`%s'\n", param);
13 if (!ucmd)
14@@ -98,9 +100,10 @@
15
16 aux = (struct gsmd_evt_auxdata *) ucmd->buf;
17
18- /* FIXME: contains values 1-5, should be mapped to 0-31 somehow? */
19- /* 2 --> 11 */
20- aux->u.signal.sigq.rssi = atoi(buf);
21+ i = atoi(buf);
22+ if (i > 6)
23+ i = 6;
24+ aux->u.signal.sigq.rssi = rssi_table[atoi(buf)];
25 aux->u.signal.sigq.ber = 99;
26
27 DEBUGP("sending EVT_SIGNAL\n");