[PATCH] ignore WCDMA messages
Philipp Zabel
philipp.zabel at gmail.com
Wed Jun 13 21:51:03 CEST 2007
Hi,
on HTC Universal an unsolicited "[WCDMA] ASSERT CD" message has been
observed. I don't know if there is a way to turn this off, so for now I
have added the following patch to libgsmd in org.openembedded.dev, based
on the extreply char patch that I sent earlier.
regards
Philipp
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
@@ -69,8 +69,15 @@
return -EIO;
}
+static int wcdma_parse(char *buf, int len, const char *param,
+ struct gsmd *gsmd)
+{
+ return 0;
+}
+
static const struct gsmd_unsolicit qc_unsolicit[] = {
{ "@HTCCSQ", &htccsq_parse }, /* Signal Quality */
+ { "[WCDMA]", &wcdma_parse }, /* ignore [WCDMA] messages */
/* FIXME: parse the below and generate the respective events */
@@ -97,7 +109,7 @@
struct gsmd_vendor_plugin gsmd_vendor_plugin = {
.name = "Qualcomm msm6250",
- .ext_chars = "@",
+ .ext_chars = "@[",
.num_unsolicit = ARRAY_SIZE(qc_unsolicit),
.unsolicit = qc_unsolicit,
.detect = &qc_detect,
More information about the gsmd-devel
mailing list