diff options
author | Dan Williams <dcbw@redhat.com> | 2011-11-11 12:20:51 -0600 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2011-11-11 12:21:41 -0600 |
commit | ae3f1cd578e59245a6bff5cfd19f64f0c47f5de9 (patch) | |
tree | 5db2e66c1688643a58567bc97a58048b798b9c20 /libwmc/src/protocol.h | |
parent | 83c905837693f095d9e7c1bf9ac56d8290510f45 (diff) |
libwmc: add testcases that talk to the device
Diffstat (limited to 'libwmc/src/protocol.h')
-rw-r--r-- | libwmc/src/protocol.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libwmc/src/protocol.h b/libwmc/src/protocol.h index 7bc751ee..b09322dd 100644 --- a/libwmc/src/protocol.h +++ b/libwmc/src/protocol.h @@ -18,10 +18,13 @@ #ifndef LIBWMC_PROTOCOL_H #define LIBWMC_PROTOCOL_H +#define WMC_CMD_MARKER ((u_int8_t) 0xC8) + enum { WMC_CMD_DEVICE_INFO = 0x06, WMC_CMD_IP_INFO = 0x0A, WMC_CMD_STATUS = 0x0B, + WMC_CMD_INIT = 0x0D, WMC_CMD_EPS_BEARER_INFO = 0x4D, }; @@ -33,6 +36,20 @@ struct WmcCmdHeader { } __attribute__ ((packed)); typedef struct WmcCmdHeader WmcCmdHeader; +/* Used on newer devices like the UML290 */ +struct WmcCmdInit2 { + WmcCmdHeader hdr; + u_int8_t _unknown1[14]; +} __attribute__ ((packed)); +typedef struct WmcCmdInit2 WmcCmdInit2; + +struct WmcCmdInit2Rsp { + WmcCmdHeader hdr; + u_int8_t _unknown1[4]; +} __attribute__ ((packed)); +typedef struct WmcCmdInit2Rsp WmcCmdInit2Rsp; + + struct WmcCmdDeviceInfoRsp { WmcCmdHeader hdr; u_int8_t _unknown1[27]; |