From 372a49bbf661c95110852c86df54008a7bad2774 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Fri, 5 Apr 2013 10:33:16 -0500 Subject: qcdm: add unsolicited signal level indication from Samsung Z810 --- libqcdm/src/dm-commands.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/libqcdm/src/dm-commands.h b/libqcdm/src/dm-commands.h index d0966258..2cbd4177 100644 --- a/libqcdm/src/dm-commands.h +++ b/libqcdm/src/dm-commands.h @@ -115,7 +115,8 @@ enum { DIAG_CMD_EXT_BUILD_ID = 124, DIAG_CMD_EXT_MESSAGE_CONFIG= 125, DIAG_CMD_EVENT_GET_MASK = 129, - DIAG_CMD_EVENT_SET_MASK = 130 + DIAG_CMD_EVENT_SET_MASK = 130, + DIAG_CMD_SAMSUNG_IND = 217, /* Unsolicited message seen on Samsung Z810 */ }; /* Subsystem IDs used with DIAG_CMD_SUBSYS; these often obsolete many of @@ -590,5 +591,19 @@ struct DMCmdSubsysGsmStateInfoRsp { } __attribute__ ((packed)); typedef struct DMCmdSubsysGsmStateInfoRsp DMCmdSubsysGsmStateInfoRsp; +/* DIAG_CMD_SAMSUNG_IND response */ +struct DMCmdSamsungIndRsp { + DMCmdHeader hdr; + u_int8_t _unknown1; /* always zero */ + u_int8_t _unknown2; /* 0x0c */ + u_int8_t _unknown3[4]; /* always zero */ + u_int8_t _unknown4; /* 0x05 */ + u_int8_t _unknown5; /* always zero */ + u_int8_t _unknown6; /* 0x01 */ + u_int8_t _unknown7; /* always zero */ + u_int8_t signal; /* 0 - 5 */ +} __attribute__ ((packed)); +typedef struct DMCmdSamsungIndRsp DMCmdSamsungIndRsp; + #endif /* LIBQCDM_DM_COMMANDS_H */ -- cgit v1.2.3