From 57ac98c7f59ce50f2f3b795fa9f6aaba9e70da6e Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 16 Jun 2007 12:07:28 +0000 Subject: [PATCH] hcidump: Add missing HCI command definitions --- tools/parser/hci.c | 41 +++++++++++++++++++++++++++++++++++++---- 1 file changed, 37 insertions(+), 4 deletions(-) diff --git a/tools/parser/hci.c b/tools/parser/hci.c index 5ef4599b8..1cd0dca9b 100644 --- a/tools/parser/hci.c +++ b/tools/parser/hci.c @@ -116,7 +116,7 @@ static char *event_str[EVENT_NUM + 1] = { "Remote Host Supported Features Notification", }; -#define CMD_LINKCTL_NUM 42 +#define CMD_LINKCTL_NUM 49 static char *cmd_linkctl_str[CMD_LINKCTL_NUM + 1] = { "Unknown", "Inquiry", @@ -161,6 +161,13 @@ static char *cmd_linkctl_str[CMD_LINKCTL_NUM + 1] = { "Setup Synchronous Connection", "Accept Synchronous Connection", "Reject Synchronous Connection", + "Unknown", + "Unknown", + "Unknown", + "Unknown", + "Unknown", + "Unknown", + "Unknown", }; #define CMD_LINKPOL_NUM 17 @@ -182,10 +189,10 @@ static char *cmd_linkpol_str[CMD_LINKPOL_NUM + 1] = { "Read Default Link Policy Settings", "Write Default Link Policy Settings", "Flow Specification", - "Sniff Subrate", + "Sniff Subrating", }; -#define CMD_HOSTCTL_NUM 82 +#define CMD_HOSTCTL_NUM 95 static char *cmd_hostctl_str[CMD_HOSTCTL_NUM + 1] = { "Unknown", "Set Event Mask", @@ -270,6 +277,20 @@ static char *cmd_hostctl_str[CMD_HOSTCTL_NUM + 1] = { "Unknown", "Read Extended Inquiry Response", "Write Extended Inquiry Response", + "Refresh Encryption Key", + "Unknown", + "Unknown", + "Unknown", + "Unknown", + "Read Inquiry Response Transmit Power Level", + "Write Inquiry Response Transmit Power Level", + "Read Default Erroneous Data Reporting", + "Write Default Erroneous Data Reporting", + "Unknown", + "Unknown", + "Unknown", + "Enhanced Flush" + "Unknown", }; #define CMD_INFO_NUM 9 @@ -298,6 +319,15 @@ static char *cmd_status_str[CMD_STATUS_NUM + 1] = { "Read Clock", }; +#define CMD_TESTING_NUM 4 +static char *cmd_testing_str[CMD_TESTING_NUM + 1] = { + "Unknown", + "Read Loopback Mode", + "Write Loopback Mode", + "Enable Device Under Test mode", + "Unknown", +}; + #define ERROR_CODE_NUM 53 static char *error_code_str[ERROR_CODE_NUM + 1] = { "Success", @@ -411,7 +441,10 @@ static char *opcode2str(uint16_t opcode) break; case OGF_TESTING_CMD: - cmd = "Testing"; + if (ocf <= CMD_TESTING_NUM) + cmd = cmd_testing_str[ocf]; + else + cmd = "Unknown"; break; case OGF_VENDOR_CMD: -- 2.47.3