From 516bae4d53d5653fa45f1dd1ff68c680dfdc350d Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 12 Feb 2013 21:23:32 +0100 Subject: [PATCH] monitor: Add commands, events and features from CSA4 --- monitor/packet.c | 166 ++++++++++++++++++++++++++++------------------- 1 file changed, 101 insertions(+), 65 deletions(-) diff --git a/monitor/packet.c b/monitor/packet.c index 8de496513..91a093e06 100644 --- a/monitor/packet.c +++ b/monitor/packet.c @@ -1484,6 +1484,11 @@ static const struct features_data features_page1[] = { }; static const struct features_data features_page2[] = { + { 0, "Connectionless Slave Broadcast - Master" }, + { 1, "Connectionless Slave Broadcast - Slave" }, + { 2, "Synchronization Train" }, + { 3, "Synchronization Scan" }, + { 4, "Inquiry Response Notification Event" }, { } }; @@ -1641,57 +1646,67 @@ static const struct { uint8_t bit; const char *str; } events_table[] = { - { 0, "Inquiry Complete" }, - { 1, "Inquiry Result" }, - { 2, "Connection Complete" }, - { 3, "Connection Request" }, - { 4, "Disconnection Complete" }, - { 5, "Authentication Complete" }, - { 6, "Remote Name Request Complete" }, - { 7, "Encryption Change" }, - { 8, "Change Connection Link Key Complete" }, - { 9, "Master Link Key Complete" }, - { 10, "Read Remote Supported Features Complete" }, - { 11, "Read Remote Version Information Complete" }, - { 12, "QoS Setup Complete" }, - { 13, "Command Complete" }, - { 14, "Command Status" }, - { 15, "Hardware Error" }, - { 16, "Flush Occurred" }, - { 17, "Role Change" }, - { 19, "Mode Change" }, - { 20, "Return Link Keys" }, - { 21, "PIN Code Request" }, - { 22, "Link Key Request" }, - { 23, "Link Key Notification" }, - { 24, "Loopback Command" }, - { 25, "Data Buffer Overflow" }, - { 26, "Max Slots Change" }, - { 27, "Read Clock Offset Complete" }, - { 28, "Connection Packet Type Changed" }, - { 29, "QoS Violation" }, - { 30, "Page Scan Mode Change" }, - { 31, "Page Scan Repetition Mode Change" }, - { 32, "Flow Specification Complete" }, - { 33, "Inquiry Result with RSSI" }, - { 34, "Read Remote Extended Features Complete" }, - { 43, "Synchronous Connection Complete" }, - { 44, "Synchronous Connection Changed" }, - { 45, "Sniff Subrating" }, - { 46, "Extended Inquiry Result" }, - { 47, "Encryption Key Refresh Complete" }, - { 48, "IO Capability Request" }, - { 49, "IO Capability Request Reply" }, - { 50, "User Confirmation Request" }, - { 51, "User Passkey Request" }, - { 52, "Remote OOB Data Request" }, - { 53, "Simple Pairing Complete" }, - { 55, "Link Supervision Timeout Changed" }, - { 56, "Enhanced Flush Complete" }, - { 58, "User Passkey Notification" }, - { 59, "Keypress Notification" }, - { 60, "Remote Host Supported Features Notification" }, - { 61, "LE Meta" }, + { 0, "Inquiry Complete" }, + { 1, "Inquiry Result" }, + { 2, "Connection Complete" }, + { 3, "Connection Request" }, + { 4, "Disconnection Complete" }, + { 5, "Authentication Complete" }, + { 6, "Remote Name Request Complete" }, + { 7, "Encryption Change" }, + { 8, "Change Connection Link Key Complete" }, + { 9, "Master Link Key Complete" }, + { 10, "Read Remote Supported Features Complete" }, + { 11, "Read Remote Version Information Complete" }, + { 12, "QoS Setup Complete" }, + { 13, "Command Complete" }, + { 14, "Command Status" }, + { 15, "Hardware Error" }, + { 16, "Flush Occurred" }, + { 17, "Role Change" }, + { 19, "Mode Change" }, + { 20, "Return Link Keys" }, + { 21, "PIN Code Request" }, + { 22, "Link Key Request" }, + { 23, "Link Key Notification" }, + { 24, "Loopback Command" }, + { 25, "Data Buffer Overflow" }, + { 26, "Max Slots Change" }, + { 27, "Read Clock Offset Complete" }, + { 28, "Connection Packet Type Changed" }, + { 29, "QoS Violation" }, + { 30, "Page Scan Mode Change" }, + { 31, "Page Scan Repetition Mode Change" }, + { 32, "Flow Specification Complete" }, + { 33, "Inquiry Result with RSSI" }, + { 34, "Read Remote Extended Features Complete" }, + { 43, "Synchronous Connection Complete" }, + { 44, "Synchronous Connection Changed" }, + { 45, "Sniff Subrating" }, + { 46, "Extended Inquiry Result" }, + { 47, "Encryption Key Refresh Complete" }, + { 48, "IO Capability Request" }, + { 49, "IO Capability Request Reply" }, + { 50, "User Confirmation Request" }, + { 51, "User Passkey Request" }, + { 52, "Remote OOB Data Request" }, + { 53, "Simple Pairing Complete" }, + { 55, "Link Supervision Timeout Changed" }, + { 56, "Enhanced Flush Complete" }, + { 58, "User Passkey Notification" }, + { 59, "Keypress Notification" }, + { 60, "Remote Host Supported Features Notification" }, + { 61, "LE Meta" }, + /* reserved events */ + { 78, "Triggered Clock Capture" }, + /* reserved event */ + { 80, "Synchronization Train Received" }, + { 81, "Connectionless Slave Broadcast Receive" }, + { 82, "Connectionless Slave Broadcast Timeout" }, + { 83, "Truncated Page Complete" }, + { 84, "Slave Page Response Timeout" }, + { 85, "Connectionless Slave Broadcast Channel Map Change" }, + { 86, "Inquiry Response Notification" }, { } }; @@ -1723,20 +1738,29 @@ static const struct { uint8_t bit; const char *str; } events_page2_table[] = { - { 0, "Physical Link Complete" }, - { 1, "Channel Selected" }, - { 2, "Disconnection Physical Link" }, - { 3, "Physical Link Loss Early Warning" }, - { 4, "Physical Link Recovery" }, - { 5, "Logical Link Complete" }, - { 6, "Disconnection Logical Link Complete" }, - { 7, "Flow Spec Modify Complete" }, - { 8, "Number of Completed Data Blocks" }, - { 9, "AMP Start Test" }, - { 10, "AMP Test End" }, - { 11, "AMP Receiver Report" }, - { 12, "Short Range Mode Change Complete" }, - { 13, "AMP Status Change" }, + { 0, "Physical Link Complete" }, + { 1, "Channel Selected" }, + { 2, "Disconnection Physical Link" }, + { 3, "Physical Link Loss Early Warning" }, + { 4, "Physical Link Recovery" }, + { 5, "Logical Link Complete" }, + { 6, "Disconnection Logical Link Complete" }, + { 7, "Flow Spec Modify Complete" }, + { 8, "Number of Completed Data Blocks" }, + { 9, "AMP Start Test" }, + { 10, "AMP Test End" }, + { 11, "AMP Receiver Report" }, + { 12, "Short Range Mode Change Complete" }, + { 13, "AMP Status Change" }, + { 14, "Triggered Clock Capture" }, + { 15, "Synchronization Train Complete" }, + { 16, "Synchronization Train Received" }, + { 17, "Connectionless Slave Broadcast Receive" }, + { 18, "Connectionless Slave Broadcast Timeout" }, + { 19, "Truncated Page Complete" }, + { 20, "Slave Page Response Timeout" }, + { 21, "Connectionless Slave Broadcast Channel Map Change" }, + { 22, "Inquiry Response Notification" }, { } }; @@ -3783,6 +3807,12 @@ static const struct opcode_data opcode_table[] = { flow_spec_modify_cmd, 34, true }, { 0x043d, 235, "Enhanced Setup Synchronous Connection" }, { 0x043e, 236, "Enhanced Accept Synchronous Connection" }, + { 0x043f, 246, "Truncated Page" }, + { 0x0440, 247, "Truncated Page Cancel" }, + { 0x0441, 248, "Set Connectionless Slave Broadcast" }, + { 0x0442, 249, "Set Connectionless Slave Broadcast Receive" }, + { 0x0443, 250, "Start Synchronization Train" }, + { 0x0444, 251, "Receive Synchronization Train" }, /* OGF 2 - Link Policy */ { 0x0801, 33, "Holde Mode", @@ -3993,6 +4023,11 @@ static const struct opcode_data opcode_table[] = { { 0x0c71, 241, "Set MWS Transport Layer" }, { 0x0c72, 242, "Set MWS Scan Frequency Table" }, { 0x0c73, 244, "Set MWS Pattern Configuration" }, + { 0x0c74, 252, "Set Reserved LT_ADDR" }, + { 0x0c75, 253, "Delete Reserved LT_ADDR" }, + { 0x0c76, 254, "Set Connectionless Slave Broadcast Data" }, + { 0x0c77, 255, "Read Synchronization Train Parameters" }, + { 0x0c78, 256, "Write Synchronization Train Parameters" }, /* OGF 4 - Information Parameter */ { 0x1001, 115, "Read Local Version Information", @@ -4044,6 +4079,7 @@ static const struct opcode_data opcode_table[] = { write_remote_amp_assoc_cmd, 6, false, write_remote_amp_assoc_rsp, 2, true }, { 0x140c, 243, "Get MWS Transport Layer Configuration" }, + { 0x140d, 245, "Set Triggered Clock Capture" }, /* OGF 6 - Testing */ { 0x1801, 128, "Read Loopback Mode" }, -- 2.47.3