qcdm: some devices do implement SW_VERSION

Like the MF627 for some reason.  Also, the format appears to be
more like the DM_CMD_VERSION_INFO response where at least the
comp_date and comp_time fields are the same size as
VERSION_INFO, just with some padding between.
This commit is contained in:
Dan Williams
2012-01-18 17:10:23 -06:00
parent e2306a0dd5
commit 04e87e70ff
3 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -456,7 +456,7 @@ qcdm_cmd_sw_version_result (const char *buf, size_t len, int *out_error)
{
QcdmResult *result = NULL;
DMCmdSwVersionRsp *rsp = (DMCmdSwVersionRsp *) buf;
char tmp[25];
char tmp[32];
qcdm_return_val_if_fail (buf != NULL, NULL);
+3 -1
View File
@@ -311,9 +311,11 @@ typedef struct DMCmdStatusRsp DMCmdStatusRsp;
/* DIAG_CMD_SW_VERSION */
struct DMCmdSwVersionRsp {
u_int8_t code;
char version[20];
char version[31];
char comp_date[11];
u_int8_t _unknown1[2];
char comp_time[8];
u_int8_t _unknown2[2];
} __attribute__ ((packed));
typedef struct DMCmdSwVersionRsp DMCmdSwVersionRsp;