Diff between 47bcbd6c5628890d8c75e2cf2633fe048e7569dd and d3a75b7e6402b328518b1c737d143af8e9b6efb3

Changed Files

File Additions Deletions Status
monitor/packet.c +211 -210 modified

Full Patch

diff --git a/monitor/packet.c b/monitor/packet.c
index 64c43f5..6ff4c17 100644
--- a/monitor/packet.c
+++ b/monitor/packet.c
@@ -3632,6 +3632,7 @@ static void le_read_supported_states_rsp(const void *data, uint8_t size)
 
 struct opcode_data {
 	uint16_t opcode;
+	int bit;
 	const char *str;
 	void (*cmd_func) (const void *data, uint8_t size);
 	uint8_t cmd_size;
@@ -3642,476 +3643,476 @@ struct opcode_data {
 };
 
 static const struct opcode_data opcode_table[] = {
-	{ 0x0000, "NOP" },
+	{ 0x0000,  -1, "NOP" },
 
 	/* OGF 1 - Link Control */
-	{ 0x0401, "Inquiry",
+	{ 0x0401,   0, "Inquiry",
 				inquiry_cmd, 5, true },
-	{ 0x0402, "Inquiry Cancel",
+	{ 0x0402,   1, "Inquiry Cancel",
 				null_cmd, 0, true,
 				status_rsp, 1, true },
-	{ 0x0403, "Periodic Inquiry Mode",
+	{ 0x0403,   2, "Periodic Inquiry Mode",
 				periodic_inquiry_cmd, 9, true,
 				status_rsp, 1, true },
-	{ 0x0404, "Exit Periodic Inquiry Mode",
+	{ 0x0404,   3, "Exit Periodic Inquiry Mode",
 				null_cmd, 0, true,
 				status_rsp, 1, true },
-	{ 0x0405, "Create Connection",
+	{ 0x0405,   4, "Create Connection",
 				create_conn_cmd, 13, true },
-	{ 0x0406, "Disconnect",
+	{ 0x0406,   5, "Disconnect",
 				disconnect_cmd, 3, true },
-	{ 0x0407, "Add SCO Connection",
+	{ 0x0407,   6, "Add SCO Connection",
 				add_sco_conn_cmd, 4, true },
-	{ 0x0408, "Create Connection Cancel",
+	{ 0x0408,   7, "Create Connection Cancel",
 				create_conn_cancel_cmd, 6, true,
 				status_bdaddr_rsp, 7, true },
-	{ 0x0409, "Accept Connection Request",
+	{ 0x0409,   8, "Accept Connection Request",
 				accept_conn_request_cmd, 7, true },
-	{ 0x040a, "Reject Connection Request",
+	{ 0x040a,   9, "Reject Connection Request",
 				reject_conn_request_cmd, 7, true },
-	{ 0x040b, "Link Key Request Reply",
+	{ 0x040b,  10, "Link Key Request Reply",
 				link_key_request_reply_cmd, 22, true,
 				status_bdaddr_rsp, 7, true },
-	{ 0x040c, "Link Key Request Negative Reply",
+	{ 0x040c,  11, "Link Key Request Negative Reply",
 				link_key_request_neg_reply_cmd, 6, true,
 				status_bdaddr_rsp, 7, true },
-	{ 0x040d, "PIN Code Request Reply",
+	{ 0x040d,  12, "PIN Code Request Reply",
 				pin_code_request_reply_cmd, 23, true,
 				status_bdaddr_rsp, 7, true },
-	{ 0x040e, "PIN Code Request Negative Reply",
+	{ 0x040e,  13, "PIN Code Request Negative Reply",
 				pin_code_request_neg_reply_cmd, 6, true,
 				status_bdaddr_rsp, 7, true },
-	{ 0x040f, "Change Connection Packet Type",
+	{ 0x040f,  14, "Change Connection Packet Type",
 				change_conn_pkt_type_cmd, 4, true },
 	/* reserved command */
-	{ 0x0411, "Authentication Requested",
+	{ 0x0411,  15, "Authentication Requested",
 				auth_requested_cmd, 2, true },
 	/* reserved command */
-	{ 0x0413, "Set Connection Encryption",
+	{ 0x0413,  16, "Set Connection Encryption",
 				set_conn_encrypt_cmd, 3, true },
 	/* reserved command */
-	{ 0x0415, "Change Connection Link Key",
+	{ 0x0415,  17, "Change Connection Link Key",
 				change_conn_link_key_cmd, 2, true },
 	/* reserved command */
-	{ 0x0417, "Master Link Key",
+	{ 0x0417,  18, "Master Link Key",
 				master_link_key_cmd, 1, true },
 	/* reserved command */
-	{ 0x0419, "Remote Name Request",
+	{ 0x0419,  19, "Remote Name Request",
 				remote_name_request_cmd, 10, true },
-	{ 0x041a, "Remote Name Request Cancel",
+	{ 0x041a,  20, "Remote Name Request Cancel",
 				remote_name_request_cancel_cmd, 6, true,
 				status_bdaddr_rsp, 7, true },
-	{ 0x041b, "Read Remote Supported Features",
+	{ 0x041b,  21, "Read Remote Supported Features",
 				read_remote_features_cmd, 2, true },
-	{ 0x041c, "Read Remote Extended Features",
+	{ 0x041c,  22, "Read Remote Extended Features",
 				read_remote_ext_features_cmd, 3, true },
-	{ 0x041d, "Read Remote Version Information",
+	{ 0x041d,  23, "Read Remote Version Information",
 				read_remote_version_cmd, 2, true },
 	/* reserved command */
-	{ 0x041f, "Read Clock Offset",
+	{ 0x041f,  24, "Read Clock Offset",
 				read_clock_offset_cmd, 2, true },
-	{ 0x0420, "Read LMP Handle",
+	{ 0x0420,  25, "Read LMP Handle",
 				read_lmp_handle_cmd, 2, true,
 				read_lmp_handle_rsp, 8, true },
 	/* reserved commands */
-	{ 0x0428, "Setup Synchronous Connection",
+	{ 0x0428, 131, "Setup Synchronous Connection",
 				setup_sync_conn_cmd, 17, true },
-	{ 0x0429, "Accept Synchronous Connection",
+	{ 0x0429, 132, "Accept Synchronous Connection",
 				accept_sync_conn_cmd, 21, true },
-	{ 0x042a, "Reject Synchronous Connection",
+	{ 0x042a, 133, "Reject Synchronous Connection",
 				reject_sync_conn_cmd, 7, true },
-	{ 0x042b, "IO Capability Request Reply",
+	{ 0x042b, 151, "IO Capability Request Reply",
 				io_capability_request_reply_cmd, 9, true,
 				status_bdaddr_rsp, 7, true },
-	{ 0x042c, "User Confirmation Request Reply",
+	{ 0x042c, 152, "User Confirmation Request Reply",
 				user_confirm_request_reply_cmd, 6, true,
 				status_bdaddr_rsp, 7, true },
-	{ 0x042d, "User Confirmation Request Neg Reply",
+	{ 0x042d, 153, "User Confirmation Request Neg Reply",
 				user_confirm_request_neg_reply_cmd, 6, true,
 				status_bdaddr_rsp, 7, true },
-	{ 0x042e, "User Passkey Request Reply",
+	{ 0x042e, 154, "User Passkey Request Reply",
 				user_passkey_request_reply_cmd, 10, true,
 				status_bdaddr_rsp, 7, true },
-	{ 0x042f, "User Passkey Request Negative Reply",
+	{ 0x042f, 155, "User Passkey Request Negative Reply",
 				user_passkey_request_neg_reply_cmd, 6, true,
 				status_bdaddr_rsp, 7, true },
-	{ 0x0430, "Remote OOB Data Request Reply",
+	{ 0x0430, 156, "Remote OOB Data Request Reply",
 				remote_oob_data_request_reply_cmd, 38, true,
 				status_bdaddr_rsp, 7, true },
 	/* reserved commands */
-	{ 0x0433, "Remote OOB Data Request Neg Reply",
+	{ 0x0433, 159, "Remote OOB Data Request Neg Reply",
 				remote_oob_data_request_neg_reply_cmd, 6, true,
 				status_bdaddr_rsp, 7, true },
-	{ 0x0434, "IO Capability Request Negative Reply",
+	{ 0x0434, 163, "IO Capability Request Negative Reply",
 				io_capability_request_neg_reply_cmd, 7, true,
 				status_bdaddr_rsp, 7, true },
-	{ 0x0435, "Create Physical Link",
+	{ 0x0435, 168, "Create Physical Link",
 				create_phy_link_cmd, 3, false },
-	{ 0x0436, "Accept Physical Link",
+	{ 0x0436, 169, "Accept Physical Link",
 				accept_phy_link_cmd, 3, false },
-	{ 0x0437, "Disconnect Physical Link",
+	{ 0x0437, 170, "Disconnect Physical Link",
 				disconn_phy_link_cmd, 2, true },
-	{ 0x0438, "Create Logical Link",
+	{ 0x0438, 171, "Create Logical Link",
 				create_logic_link_cmd, 33, true },
-	{ 0x0439, "Accept Logical Link",
+	{ 0x0439, 172, "Accept Logical Link",
 				accept_logic_link_cmd, 33, true },
-	{ 0x043a, "Disconnect Logical Link",
+	{ 0x043a, 173, "Disconnect Logical Link",
 				disconn_logic_link_cmd, 2, true },
-	{ 0x043b, "Logical Link Cancel",
+	{ 0x043b, 174, "Logical Link Cancel",
 				logic_link_cancel_cmd, 2, true,
 				logic_link_cancel_rsp, 3, true },
-	{ 0x043c, "Flow Specifcation Modify",
+	{ 0x043c, 175, "Flow Specifcation Modify",
 				flow_spec_modify_cmd, 34, true },
-	{ 0x043d, "Enhanced Setup Synchronous Connection" },
-	{ 0x043e, "Enhanced Accept Synchronous Connection" },
+	{ 0x043d, 235, "Enhanced Setup Synchronous Connection" },
+	{ 0x043e, 236, "Enhanced Accept Synchronous Connection" },
 
 	/* OGF 2 - Link Policy */
-	{ 0x0801, "Holde Mode",
+	{ 0x0801,  33, "Holde Mode",
 				hold_mode_cmd, 6, true },
 	/* reserved command */
-	{ 0x0803, "Sniff Mode",
+	{ 0x0803,  34, "Sniff Mode",
 				sniff_mode_cmd, 10, true },
-	{ 0x0804, "Exit Sniff Mode",
+	{ 0x0804,  35, "Exit Sniff Mode",
 				exit_sniff_mode_cmd, 2, true },
-	{ 0x0805, "Park State",
+	{ 0x0805,  36, "Park State",
 				park_state_cmd, 6, true },
-	{ 0x0806, "Exit Park State",
+	{ 0x0806,  37, "Exit Park State",
 				exit_park_state_cmd, 2, true },
-	{ 0x0807, "QoS Setup",
+	{ 0x0807,  38, "QoS Setup",
 				qos_setup_cmd, 20, true },
 	/* reserved command */
-	{ 0x0809, "Role Discovery",
+	{ 0x0809,  39, "Role Discovery",
 				role_discovery_cmd, 2, true,
 				role_discovery_rsp, 4, true },
 	/* reserved command */
-	{ 0x080b, "Switch Role",
+	{ 0x080b,  40, "Switch Role",
 				switch_role_cmd, 7, true },
-	{ 0x080c, "Read Link Policy Settings",
+	{ 0x080c,  41, "Read Link Policy Settings",
 				read_link_policy_cmd, 2, true,
 				read_link_policy_rsp, 5, true },
-	{ 0x080d, "Write Link Policy Settings",
+	{ 0x080d,  42, "Write Link Policy Settings",
 				write_link_policy_cmd, 2, true,
 				write_link_policy_rsp, 2, true },
-	{ 0x080e, "Read Default Link Policy Settings",
+	{ 0x080e,  43, "Read Default Link Policy Settings",
 				null_cmd, 0, true,
 				read_default_link_policy_rsp, 3, true },
-	{ 0x080f, "Write Default Link Policy Settings",
+	{ 0x080f,  44, "Write Default Link Policy Settings",
 				write_default_link_policy_cmd, 2, true,
 				status_rsp, 1, true },
-	{ 0x0810, "Flow Specification",
+	{ 0x0810,  45, "Flow Specification",
 				flow_spec_cmd, 21, true },
-	{ 0x0811, "Sniff Subrating",
+	{ 0x0811, 140, "Sniff Subrating",
 				sniff_subrating_cmd, 8, true,
 				sniff_subrating_rsp, 3, true },
 
 	/* OGF 3 - Host Control */
-	{ 0x0c01, "Set Event Mask",
+	{ 0x0c01,  46, "Set Event Mask",
 				set_event_mask_cmd, 8, true,
 				status_rsp, 1, true },
 	/* reserved command */
-	{ 0x0c03, "Reset",
+	{ 0x0c03,  47, "Reset",
 				null_cmd, 0, true,
 				status_rsp, 1, true },
 	/* reserved command */
-	{ 0x0c05, "Set Event Filter",
+	{ 0x0c05,  48, "Set Event Filter",
 				set_event_filter_cmd, 1, false,
 				status_rsp, 1, true },
 	/* reserved commands */
-	{ 0x0c08, "Flush",
+	{ 0x0c08,  49, "Flush",
 				flush_cmd, 2, true,
 				flush_rsp, 3, true },
-	{ 0x0c09, "Read PIN Type",
+	{ 0x0c09,  50, "Read PIN Type",
 				null_cmd, 0, true,
 				read_pin_type_rsp, 2, true },
-	{ 0x0c0a, "Write PIN Type",
+	{ 0x0c0a,  51, "Write PIN Type",
 				write_pin_type_cmd, 1, true,
 				status_rsp, 1, true },
-	{ 0x0c0b, "Create New Unit Key",
+	{ 0x0c0b,  52, "Create New Unit Key",
 				null_cmd, 0, true,
 				status_rsp, 1, true },
 	/* reserved command */
-	{ 0x0c0d, "Read Stored Link Key",
+	{ 0x0c0d,  53, "Read Stored Link Key",
 				read_stored_link_key_cmd, 7, true,
 				read_stored_link_key_rsp, 5, true },
 	/* reserved commands */
-	{ 0x0c11, "Write Stored Link Key",
+	{ 0x0c11,  54, "Write Stored Link Key",
 				write_stored_link_key_cmd, 1, false,
 				write_stored_link_key_rsp, 2, true },
-	{ 0x0c12, "Delete Stored Link Key",
+	{ 0x0c12,  55, "Delete Stored Link Key",
 				delete_stored_link_key_cmd, 7, true,
 				delete_stored_link_key_rsp, 3, true },
-	{ 0x0c13, "Write Local Name",
+	{ 0x0c13,  56, "Write Local Name",
 				write_local_name_cmd, 248, true,
 				status_rsp, 1, true },
-	{ 0x0c14, "Read Local Name",
+	{ 0x0c14,  57, "Read Local Name",
 				null_cmd, 0, true,
 				read_local_name_rsp, 249, true },
-	{ 0x0c15, "Read Connection Accept Timeout",
+	{ 0x0c15,  58, "Read Connection Accept Timeout",
 				null_cmd, 0, true,
 				read_conn_accept_timeout_rsp, 3, true },
-	{ 0x0c16, "Write Connection Accept Timeout",
+	{ 0x0c16,  59, "Write Connection Accept Timeout",
 				write_conn_accept_timeout_cmd, 2, true,
 				status_rsp, 1, true },
-	{ 0x0c17, "Read Page Timeout",
+	{ 0x0c17,  60, "Read Page Timeout",
 				null_cmd, 0, true,
 				read_page_timeout_rsp, 3, true },
-	{ 0x0c18, "Write Page Timeout",
+	{ 0x0c18,  61, "Write Page Timeout",
 				write_page_timeout_cmd, 2, true,
 				status_rsp, 1, true },
-	{ 0x0c19, "Read Scan Enable",
+	{ 0x0c19,  62, "Read Scan Enable",
 				null_cmd, 0, true,
 				read_scan_enable_rsp, 2, true },
-	{ 0x0c1a, "Write Scan Enable",
+	{ 0x0c1a,  63, "Write Scan Enable",
 				write_scan_enable_cmd, 1, true,
 				status_rsp, 1, true },
-	{ 0x0c1b, "Read Page Scan Activity"		},
-	{ 0x0c1c, "Write Page Scan Activity"		},
-	{ 0x0c1d, "Read Inquiry Scan Activity"		},
-	{ 0x0c1e, "Write Inquiry Scan Activity"		},
-	{ 0x0c1f, "Read Authentication Enable"		},
-	{ 0x0c20, "Write Authentication Enable"		},
-	{ 0x0c21, "Read Encryption Mode"		},
-	{ 0x0c22, "Write Encryption Mode"		},
-	{ 0x0c23, "Read Class of Device",
+	{ 0x0c1b,  64, "Read Page Scan Activity" },
+	{ 0x0c1c,  65, "Write Page Scan Activity" },
+	{ 0x0c1d,  66, "Read Inquiry Scan Activity" },
+	{ 0x0c1e,  67, "Write Inquiry Scan Activity" },
+	{ 0x0c1f,  68, "Read Authentication Enable" },
+	{ 0x0c20,  69, "Write Authentication Enable" },
+	{ 0x0c21,  70, "Read Encryption Mode" },
+	{ 0x0c22,  71, "Write Encryption Mode" },
+	{ 0x0c23,  72, "Read Class of Device",
 				null_cmd, 0, true,
 				read_class_of_dev_rsp, 4, true },
-	{ 0x0c24, "Write Class of Device",
+	{ 0x0c24,  73, "Write Class of Device",
 				write_class_of_dev_cmd, 3, true,
 				status_rsp, 1, true },
-	{ 0x0c25, "Read Voice Setting",
+	{ 0x0c25,  74, "Read Voice Setting",
 				null_cmd, 0, true,
 				read_voice_setting_rsp, 3, true },
-	{ 0x0c26, "Write Voice Setting",
+	{ 0x0c26,  75, "Write Voice Setting",
 				write_voice_setting_cmd, 2, true,
 				status_rsp, 1, true },
-	{ 0x0c27, "Read Automatic Flush Timeout"	},
-	{ 0x0c28, "Write Automatic Flush Timeout"	},
-	{ 0x0c29, "Read Num Broadcast Retransmissions"	},
-	{ 0x0c2a, "Write Num Broadcast Retransmissions"	},
-	{ 0x0c2b, "Read Hold Mode Activity"		},
-	{ 0x0c2c, "Write Hold Mode Activity"		},
-	{ 0x0c2d, "Read Transmit Power Level"		},
-	{ 0x0c2e, "Read Sync Flow Control Enable"	},
-	{ 0x0c2f, "Write Sync Flow Control Enable"	},
+	{ 0x0c27,  76, "Read Automatic Flush Timeout" },
+	{ 0x0c28,  77, "Write Automatic Flush Timeout" },
+	{ 0x0c29,  78, "Read Num Broadcast Retransmissions" },
+	{ 0x0c2a,  79, "Write Num Broadcast Retransmissions" },
+	{ 0x0c2b,  80, "Read Hold Mode Activity" },
+	{ 0x0c2c,  81, "Write Hold Mode Activity" },
+	{ 0x0c2d,  82, "Read Transmit Power Level" },
+	{ 0x0c2e,  83, "Read Sync Flow Control Enable" },
+	{ 0x0c2f,  84, "Write Sync Flow Control Enable" },
 	/* reserved command */
-	{ 0x0c31, "Set Host Controller To Host Flow"	},
+	{ 0x0c31,  85, "Set Host Controller To Host Flow" },
 	/* reserved command */
-	{ 0x0c33, "Host Buffer Size"			},
+	{ 0x0c33,  86, "Host Buffer Size" },
 	/* reserved command */
-	{ 0x0c35, "Host Number of Completed Packets"	},
-	{ 0x0c36, "Read Link Supervision Timeout"	},
-	{ 0x0c37, "Write Link Supervision Timeout"	},
-	{ 0x0c38, "Read Number of Supported IAC"	},
-	{ 0x0c39, "Read Current IAC LAP"		},
-	{ 0x0c3a, "Write Current IAC LAP"		},
-	{ 0x0c3b, "Read Page Scan Period Mode"		},
-	{ 0x0c3c, "Write Page Scan Period Mode"		},
-	{ 0x0c3d, "Read Page Scan Mode"			},
-	{ 0x0c3e, "Write Page Scan Mode"		},
-	{ 0x0c3f, "Set AFH Host Channel Classification"	},
+	{ 0x0c35,  87, "Host Number of Completed Packets" },
+	{ 0x0c36,  88, "Read Link Supervision Timeout" },
+	{ 0x0c37,  89, "Write Link Supervision Timeout" },
+	{ 0x0c38,  90, "Read Number of Supported IAC" },
+	{ 0x0c39,  91, "Read Current IAC LAP" },
+	{ 0x0c3a,  92, "Write Current IAC LAP" },
+	{ 0x0c3b,  93, "Read Page Scan Period Mode" },
+	{ 0x0c3c,  94, "Write Page Scan Period Mode" },
+	{ 0x0c3d,  95, "Read Page Scan Mode" },
+	{ 0x0c3e,  96, "Write Page Scan Mode" },
+	{ 0x0c3f,  97, "Set AFH Host Channel Classification" },
 	/* reserved commands */
-	{ 0x0c42, "Read Inquiry Scan Type"		},
-	{ 0x0c43, "Write Inquiry Scan Type"		},
-	{ 0x0c44, "Read Inquiry Mode",
+	{ 0x0c42, 100, "Read Inquiry Scan Type" },
+	{ 0x0c43, 101, "Write Inquiry Scan Type" },
+	{ 0x0c44, 102, "Read Inquiry Mode",
 				null_cmd, 0, true,
 				read_inquiry_mode_rsp, 2, true },
-	{ 0x0c45, "Write Inquiry Mode",
+	{ 0x0c45, 103, "Write Inquiry Mode",
 				write_inquiry_mode_cmd, 1, true,
 				status_rsp, 1, true },
-	{ 0x0c46, "Read Page Scan Type"			},
-	{ 0x0c47, "Write Page Scan Type"		},
-	{ 0x0c48, "Read AFH Channel Assessment Mode"	},
-	{ 0x0c49, "Write AFH Channel Assessment Mode"	},
+	{ 0x0c46, 104, "Read Page Scan Type" },
+	{ 0x0c47, 105, "Write Page Scan Type" },
+	{ 0x0c48, 106, "Read AFH Channel Assessment Mode" },
+	{ 0x0c49, 107, "Write AFH Channel Assessment Mode" },
 	/* reserved commands */
-	{ 0x0c51, "Read Extended Inquiry Response",
+	{ 0x0c51, 136, "Read Extended Inquiry Response",
 				null_cmd, 0, true,
 				read_ext_inquiry_response_rsp, 242, true },
-	{ 0x0c52, "Write Extended Inquiry Response",
+	{ 0x0c52, 137, "Write Extended Inquiry Response",
 				write_ext_inquiry_response_cmd, 241, true,
 				status_rsp, 1, true },
-	{ 0x0c53, "Refresh Encryption Key",
+	{ 0x0c53, 138, "Refresh Encryption Key",
 				refresh_encrypt_key_cmd, 2, true },
 	/* reserved command */
-	{ 0x0c55, "Read Simple Pairing Mode",
+	{ 0x0c55, 141, "Read Simple Pairing Mode",
 				null_cmd, 0, true,
 				read_simple_pairing_mode_rsp, 2, true },
-	{ 0x0c56, "Write Simple Pairing Mode",
+	{ 0x0c56, 142, "Write Simple Pairing Mode",
 				write_simple_pairing_mode_cmd, 1, true,
 				status_rsp, 1, true },
-	{ 0x0c57, "Read Local OOB Data"			},
-	{ 0x0c58, "Read Inquiry Response TX Power Level",
+	{ 0x0c57, 143, "Read Local OOB Data" },
+	{ 0x0c58, 144, "Read Inquiry Response TX Power Level",
 				null_cmd, 0, true,
 				read_inquiry_resp_tx_power_rsp, 2, true },
-	{ 0x0c59, "Write Inquiry Transmit Power Level"	},
-	{ 0x0c5a, "Read Default Erroneous Reporting"	},
-	{ 0x0c5b, "Write Default Erroneous Reporting"	},
+	{ 0x0c59, 145, "Write Inquiry Transmit Power Level" },
+	{ 0x0c5a, 146, "Read Default Erroneous Reporting" },
+	{ 0x0c5b, 146, "Write Default Erroneous Reporting" },
 	/* reserved commands */
-	{ 0x0c5f, "Enhanced Flush",
+	{ 0x0c5f, 158, "Enhanced Flush",
 				enhanced_flush_cmd, 3, true },
-	/* reserved command */
-	{ 0x0c61, "Read Logical Link Accept Timeout"	},
-	{ 0x0c62, "Write Logical Link Accept Timeout"	},
-	{ 0x0c63, "Set Event Mask Page 2",
+	{ 0x0c60, 162, "Send Keypress Notification" },
+	{ 0x0c61, 176, "Read Logical Link Accept Timeout" },
+	{ 0x0c62, 177, "Write Logical Link Accept Timeout" },
+	{ 0x0c63, 178, "Set Event Mask Page 2",
 				set_event_mask_page2_cmd, 8, true,
 				status_rsp, 1, true },
-	{ 0x0c64, "Read Location Data"			},
-	{ 0x0c65, "Write Location Data"			},
-	{ 0x0c66, "Read Flow Control Mode"		},
-	{ 0x0c67, "Write Flow Control Mode"		},
-	{ 0x0c68, "Read Enhanced Transmit Power Level"	},
-	{ 0x0c69, "Read Best Effort Flush Timeout"	},
-	{ 0x0c6a, "Write Best Effort Flush Timeout"	},
-	{ 0x0c6b, "Short Range Mode"			},
-	{ 0x0c6c, "Read LE Host Supported",
+	{ 0x0c64, 179, "Read Location Data" },
+	{ 0x0c65, 180, "Write Location Data" },
+	{ 0x0c66, 184, "Read Flow Control Mode" },
+	{ 0x0c67, 185, "Write Flow Control Mode" },
+	{ 0x0c68, 192, "Read Enhanced Transmit Power Level" },
+	{ 0x0c69, 194, "Read Best Effort Flush Timeout" },
+	{ 0x0c6a, 195, "Write Best Effort Flush Timeout" },
+	{ 0x0c6b, 196, "Short Range Mode" },
+	{ 0x0c6c, 197, "Read LE Host Supported",
 				null_cmd, 0, true,
 				read_le_host_supported_rsp, 3, true },
-	{ 0x0c6d, "Write LE Host Supported",
+	{ 0x0c6d, 198, "Write LE Host Supported",
 				write_le_host_supported_cmd, 2, true,
 				status_rsp, 1, true },
-	{ 0x0c6e, "Set MWS Channel Parameters"		},
-	{ 0x0c6f, "Set External Fram Configuration"	},
-	{ 0x0c70, "Set MWS Signaling"			},
-	{ 0x0c71, "Set MWS Transport Layer"		},
-	{ 0x0c72, "Set MWS Scan Frequency Table"	},
-	{ 0x0c73, "Set MWS Pattern Configuration"	},
+	{ 0x0c6e, 238, "Set MWS Channel Parameters" },
+	{ 0x0c6f, 239, "Set External Fram Configuration" },
+	{ 0x0c70, 240, "Set MWS Signaling" },
+	{ 0x0c71, 241, "Set MWS Transport Layer" },
+	{ 0x0c72, 242, "Set MWS Scan Frequency Table" },
+	{ 0x0c73, 244, "Set MWS Pattern Configuration" },
 
 	/* OGF 4 - Information Parameter */
-	{ 0x1001, "Read Local Version Information",
+	{ 0x1001, 115, "Read Local Version Information",
 				null_cmd, 0, true,
 				read_local_version_rsp, 9, true },
-	{ 0x1002, "Read Local Supported Commands",
+	{ 0x1002, 116, "Read Local Supported Commands",
 				null_cmd, 0, true,
 				read_local_commands_rsp, 65, true },
-	{ 0x1003, "Read Local Supported Features",
+	{ 0x1003, 117, "Read Local Supported Features",
 				null_cmd, 0, true,
 				read_local_features_rsp, 9, true },
-	{ 0x1004, "Read Local Extended Features",
+	{ 0x1004, 118, "Read Local Extended Features",
 				read_local_ext_features_cmd, 1, true,
 				read_local_ext_features_rsp, 11, true },
-	{ 0x1005, "Read Buffer Size",
+	{ 0x1005, 119, "Read Buffer Size",
 				null_cmd, 0, true,
 				read_buffer_size_rsp, 8, true },
 	/* reserved command */
-	{ 0x1007, "Read Country Code",
+	{ 0x1007, 120, "Read Country Code",
 				null_cmd, 0, true,
 				read_country_code_rsp, 2, true },
 	/* reserved command */
-	{ 0x1009, "Read BD ADDR",
+	{ 0x1009, 121, "Read BD ADDR",
 				null_cmd, 0, true,
 				read_bd_addr_rsp, 7, true },
-	{ 0x100a, "Read Data Block Size",
+	{ 0x100a, 186, "Read Data Block Size",
 				null_cmd, 0, true,
 				read_data_block_size_rsp, 7, true },
-	{ 0x100b, "Read Local Supported Codecs" },
+	{ 0x100b, 237, "Read Local Supported Codecs" },
 
 	/* OGF 5 - Status Parameter */
-	{ 0x1401, "Read Failed Contact Counter"		},
-	{ 0x1402, "Reset Failed Contact Counter"	},
-	{ 0x1403, "Read Link Quality"			},
+	{ 0x1401, 122, "Read Failed Contact Counter" },
+	{ 0x1402, 123, "Reset Failed Contact Counter" },
+	{ 0x1403, 124, "Read Link Quality" },
 	/* reserved command */
-	{ 0x1405, "Read RSSI"				},
-	{ 0x1406, "Read AFH Channel Map"		},
-	{ 0x1407, "Read Clock"				},
-	{ 0x1408, "Read Encryption Key Size",
+	{ 0x1405, 125, "Read RSSI" },
+	{ 0x1406, 126, "Read AFH Channel Map" },
+	{ 0x1407, 127, "Read Clock" },
+	{ 0x1408, 164, "Read Encryption Key Size",
 				read_encrypt_key_size_cmd, 2, true,
 				read_encrypt_key_size_rsp, 4, true },
-	{ 0x1409, "Read Local AMP Info",
+	{ 0x1409, 181, "Read Local AMP Info",
 				null_cmd, 0, true,
 				read_local_amp_info_rsp, 31, true },
-	{ 0x140a, "Read Local AMP ASSOC",
+	{ 0x140a, 182, "Read Local AMP ASSOC",
 				read_local_amp_assoc_cmd, 5, true,
 				read_local_amp_assoc_rsp, 5, false },
-	{ 0x140b, "Write Remote AMP ASSOC",
+	{ 0x140b, 183, "Write Remote AMP ASSOC",
 				write_remote_amp_assoc_cmd, 6, false,
 				write_remote_amp_assoc_rsp, 2, true },
-	{ 0x140c, "Get MWS Transport Layer Configuration" },
+	{ 0x140c, 243, "Get MWS Transport Layer Configuration" },
 
 	/* OGF 6 - Testing */
-	{ 0x1801, "Read Loopback Mode"			},
-	{ 0x1802, "Write Loopback Mode"			},
-	{ 0x1803, "Enable Device Under Test Mode"	},
-	{ 0x1804, "Write Simple Pairing Debug Mode"	},
+	{ 0x1801, 128, "Read Loopback Mode" },
+	{ 0x1802, 129, "Write Loopback Mode" },
+	{ 0x1803, 130, "Enable Device Under Test Mode" },
+	{ 0x1804, 157, "Write Simple Pairing Debug Mode" },
 	/* reserved commands */
-	{ 0x1807, "Enable AMP Receiver Reports"		},
-	{ 0x1808, "AMP Test End"			},
-	{ 0x1809, "AMP Test"				},
+	{ 0x1807, 189, "Enable AMP Receiver Reports" },
+	{ 0x1808, 190, "AMP Test End" },
+	{ 0x1809, 191, "AMP Test" },
 
 	/* OGF 8 - LE Control */
-	{ 0x2001, "LE Set Event Mask",
+	{ 0x2001, 200, "LE Set Event Mask",
 				le_set_event_mask_cmd, 8, true,
 				status_rsp, 1, true },
-	{ 0x2002, "LE Read Buffer Size",
+	{ 0x2002, 201, "LE Read Buffer Size",
 				null_cmd, 0, true,
 				le_read_buffer_size_rsp, 4, true },
-	{ 0x2003, "LE Read Local Supported Features",
+	{ 0x2003, 202, "LE Read Local Supported Features",
 				null_cmd, 0, true,
 				le_read_local_features_rsp, 9, true },
 	/* reserved command */
-	{ 0x2005, "LE Set Random Address",
+	{ 0x2005, 204, "LE Set Random Address",
 				le_set_random_address_cmd, 6, true,
 				status_rsp, 1, true },
-	{ 0x2006, "LE Set Advertising Parameters"	},
-	{ 0x2007, "LE Read Advertising Channel TX Power",
+	{ 0x2006, 205, "LE Set Advertising Parameters"	},
+	{ 0x2007, 206, "LE Read Advertising Channel TX Power",
 				null_cmd, 0, true,
 				le_read_adv_tx_power_rsp, 2, true },
-	{ 0x2008, "LE Set Advertising Data",
+	{ 0x2008, 207, "LE Set Advertising Data",
 				le_set_adv_data_cmd, 32, true,
 				status_rsp, 1, true },
-	{ 0x2009, "LE Set Scan Response Data",
+	{ 0x2009, 208, "LE Set Scan Response Data",
 				le_set_scan_response_data_cmd, 32, true,
 				status_rsp, 1, true },
-	{ 0x200a, "LE Set Advertise Enable",
+	{ 0x200a, 209, "LE Set Advertise Enable",
 				le_set_adv_enable_cmd, 1, true,
 				status_rsp, 1, true },
-	{ 0x200b, "LE Set Scan Parameters",
+	{ 0x200b, 210, "LE Set Scan Parameters",
 				le_set_scan_parameters_cmd, 7, true,
 				status_rsp, 1, true },
-	{ 0x200c, "LE Set Scan Enable",
+	{ 0x200c, 211, "LE Set Scan Enable",
 				le_set_scan_enable_cmd, 2, true,
 				status_rsp, 1, true },
-	{ 0x200d, "LE Create Connection",
+	{ 0x200d, 212, "LE Create Connection",
 				le_create_conn_cmd, 25, true },
-	{ 0x200e, "LE Create Connection Cancel",
+	{ 0x200e, 213, "LE Create Connection Cancel",
 				null_cmd, 0, true,
 				status_rsp, 1, true },
-	{ 0x200f, "LE Read White List Size",
+	{ 0x200f, 214, "LE Read White List Size",
 				null_cmd, 0, true,
 				le_read_white_list_size_rsp, 2, true },
-	{ 0x2010, "LE Clear White List",
+	{ 0x2010, 215, "LE Clear White List",
 				null_cmd, 0, true,
 				status_rsp, 1, true },
-	{ 0x2011, "LE Add Device To White List",
+	{ 0x2011, 216, "LE Add Device To White List",
 				le_add_to_white_list_cmd, 7, true,
 				status_rsp, 1, true },
-	{ 0x2012, "LE Remove Device From White List",
+	{ 0x2012, 217, "LE Remove Device From White List",
 				le_remove_from_white_list_cmd, 7, true,
 				status_rsp, 1, true },
-	{ 0x2013, "LE Connection Update",
+	{ 0x2013, 218, "LE Connection Update",
 				le_conn_update_cmd, 14, true },
-	{ 0x2014, "LE Set Host Channel Classification",
+	{ 0x2014, 219, "LE Set Host Channel Classification",
 				le_set_host_classification_cmd, 5, true,
 				status_rsp, 1, true },
-	{ 0x2015, "LE Read Channel Map",
+	{ 0x2015, 220, "LE Read Channel Map",
 				le_read_channel_map_cmd, 2, true,
 				le_read_channel_map_rsp, 8, true },
-	{ 0x2016, "LE Read Remote Used Features",
+	{ 0x2016, 221, "LE Read Remote Used Features",
 				le_read_remote_features_cmd, 2, true },
-	{ 0x2017, "LE Encrypt",
+	{ 0x2017, 222, "LE Encrypt",
 				le_encrypt_cmd, 32, true,
 				le_encrypt_rsp, 17, true },
-	{ 0x2018, "LE Rand",
+	{ 0x2018, 223, "LE Rand",
 				null_cmd, 0, true,
 				le_rand_rsp, 9, true },
-	{ 0x2019, "LE Start Encryption",
+	{ 0x2019, 224, "LE Start Encryption",
 				le_start_encrypt, 28, true },
-	{ 0x201a, "LE Long Term Key Request Reply"	},
-	{ 0x201b, "LE Long Term Key Request Neg Reply"	},
-	{ 0x201c, "LE Read Supported States",
+	{ 0x201a, 225, "LE Long Term Key Request Reply" },
+	{ 0x201b, 226, "LE Long Term Key Request Neg Reply" },
+	{ 0x201c, 227, "LE Read Supported States",
 				null_cmd, 0, true,
 				le_read_supported_states_rsp, 9, true },
-	{ 0x201d, "LE Receiver Test"			},
-	{ 0x201e, "LE Transmitter Test"			},
-	{ 0x201f, "LE Test End"				},
+	{ 0x201d, 228, "LE Receiver Test" },
+	{ 0x201e, 229, "LE Transmitter Test" },
+	{ 0x201f, 230, "LE Test End" },
 	{ }
 };