summaryrefslogtreecommitdiff
path: root/packages/gsm/files/tihtc-csq-fix.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/tihtc-csq-fix.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/tihtc-csq-fix.patch')
-rw-r--r--packages/gsm/files/tihtc-csq-fix.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/packages/gsm/files/tihtc-csq-fix.patch b/packages/gsm/files/tihtc-csq-fix.patch
new file mode 100644
index 0000000000..3346d85809
--- /dev/null
+++ b/packages/gsm/files/tihtc-csq-fix.patch
@@ -0,0 +1,27 @@
+Index: gsm/src/gsmd/vendor_tihtc.c
+===================================================================
+--- gsm.orig/src/gsmd/vendor_tihtc.c 2007-06-03 16:26:39.000000000 +0200
++++ gsm/src/gsmd/vendor_tihtc.c 2007-06-03 16:26:41.000000000 +0200
+@@ -90,6 +90,8 @@
+ struct gsmd_evt_auxdata *aux;
+ struct gsmd_ucmd *ucmd = usock_build_event(GSMD_MSG_EVENT, GSMD_EVT_SIGNAL,
+ sizeof(*aux));
++ static int rssi_table[] = { 0,5,10,15,20,25,99 };
++ unsigned int i;
+
+ DEBUGP("entering htccsq_parse param=`%s'\n", param);
+ if (!ucmd)
+@@ -98,9 +100,10 @@
+
+ aux = (struct gsmd_evt_auxdata *) ucmd->buf;
+
+- /* FIXME: contains values 1-5, should be mapped to 0-31 somehow? */
+- /* 2 --> 11 */
+- aux->u.signal.sigq.rssi = atoi(buf);
++ i = atoi(buf);
++ if (i > 6)
++ i = 6;
++ aux->u.signal.sigq.rssi = rssi_table[atoi(buf)];
+ aux->u.signal.sigq.ber = 99;
+
+ DEBUGP("sending EVT_SIGNAL\n");