2006-05-10 10:38:53 +00:00
|
|
|
/* packet-bthci-cmd.c
|
|
|
|
* Routines for the Bluetooth HCI Command dissection
|
|
|
|
* Copyright 2002, Christoph Scholz <scholz@cs.uni-bonn.de>
|
|
|
|
* From: http://affix.sourceforge.net/archive/ethereal_affix-3.patch
|
|
|
|
*
|
2006-05-21 04:49:01 +00:00
|
|
|
* Refactored for wireshark checkin
|
2006-05-10 10:38:53 +00:00
|
|
|
* Ronnie Sahlberg 2006
|
|
|
|
*
|
2007-09-23 19:40:54 +00:00
|
|
|
* Updated to HCI specification 2.1 + EDR
|
|
|
|
* Allan M. Madsen 2007
|
2012-10-22 12:49:04 +00:00
|
|
|
* Updated to HCI specification 3.0+HS & 4.0
|
|
|
|
* Allan M. Madsen 2012
|
2007-09-23 19:40:54 +00:00
|
|
|
*
|
2006-05-10 10:38:53 +00:00
|
|
|
* $Id$
|
|
|
|
*
|
2006-05-21 04:49:01 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2006-05-10 10:38:53 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2009-11-04 12:49:19 +00:00
|
|
|
*
|
2006-05-10 10:38:53 +00:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2009-11-04 12:49:19 +00:00
|
|
|
*
|
2006-05-10 10:38:53 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2012-06-28 23:18:38 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2006-05-10 10:38:53 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#include <epan/packet.h>
|
2012-09-21 10:49:44 +00:00
|
|
|
#include <epan/addr_resolv.h>
|
|
|
|
|
2012-11-29 13:21:10 +00:00
|
|
|
#include "packet-bluetooth-hci.h"
|
2006-05-10 10:38:53 +00:00
|
|
|
|
|
|
|
/* Initialize the protocol and registered fields */
|
|
|
|
static int proto_bthci_cmd = -1;
|
|
|
|
static int hf_bthci_cmd_opcode = -1;
|
|
|
|
static int hf_bthci_cmd_ogf = -1;
|
|
|
|
static int hf_bthci_cmd_ocf = -1;
|
|
|
|
static int hf_bthci_cmd_param_length = -1;
|
|
|
|
static int hf_bthci_cmd_params = -1;
|
|
|
|
static int hf_bthci_cmd_lap = -1;
|
|
|
|
static int hf_bthci_cmd_inq_length = -1;
|
|
|
|
static int hf_bthci_cmd_num_responses = -1;
|
|
|
|
static int hf_bthci_cmd_encrypt_mode = -1;
|
|
|
|
static int hf_bthci_cmd_bd_addr = -1;
|
|
|
|
static int hf_bthci_cmd_packet_type_dm1 = -1;
|
|
|
|
static int hf_bthci_cmd_packet_type_dm3 = -1;
|
|
|
|
static int hf_bthci_cmd_packet_type_dm5 = -1;
|
|
|
|
static int hf_bthci_cmd_packet_type_dh1 = -1;
|
|
|
|
static int hf_bthci_cmd_packet_type_dh3 = -1;
|
|
|
|
static int hf_bthci_cmd_packet_type_dh5 = -1;
|
2007-09-23 19:40:54 +00:00
|
|
|
static int hf_bthci_cmd_packet_type_2dh1 = -1;
|
|
|
|
static int hf_bthci_cmd_packet_type_3dh1 = -1;
|
|
|
|
static int hf_bthci_cmd_packet_type_2dh3 = -1;
|
|
|
|
static int hf_bthci_cmd_packet_type_3dh3 = -1;
|
|
|
|
static int hf_bthci_cmd_packet_type_2dh5 = -1;
|
|
|
|
static int hf_bthci_cmd_packet_type_3dh5 = -1;
|
2006-05-10 10:38:53 +00:00
|
|
|
static int hf_bthci_cmd_clock_offset = -1;
|
|
|
|
static int hf_bthci_cmd_clock_offset_valid = -1;
|
|
|
|
static int hf_bthci_cmd_allow_role_switch = -1;
|
|
|
|
static int hf_bthci_cmd_page_scan_mode = -1;
|
|
|
|
static int hf_bthci_cmd_page_scan_repetition_mode = -1;
|
|
|
|
static int hf_bthci_cmd_page_scan_period_mode = -1;
|
|
|
|
static int hf_bthci_cmd_max_period_length = -1;
|
|
|
|
static int hf_bthci_cmd_min_period_length = -1;
|
|
|
|
static int hf_bthci_cmd_connection_handle = -1;
|
|
|
|
static int hf_bthci_cmd_reason = -1;
|
|
|
|
static int hf_bthci_cmd_num_link_keys = -1;
|
|
|
|
static int hf_bthci_cmd_link_key = -1;
|
|
|
|
static int hf_bthci_cmd_packet_type_hv1 = -1;
|
|
|
|
static int hf_bthci_cmd_packet_type_hv2 = -1;
|
|
|
|
static int hf_bthci_cmd_packet_type_hv3 = -1;
|
|
|
|
static int hf_bthci_cmd_role = -1;
|
|
|
|
static int hf_bthci_cmd_pin_code_length = -1;
|
|
|
|
static int hf_bthci_cmd_pin_code = -1;
|
|
|
|
static int hf_bthci_cmd_pin_type = -1;
|
|
|
|
static int hf_bthci_cmd_encryption_enable = -1;
|
|
|
|
static int hf_bthci_cmd_key_flag = -1;
|
|
|
|
static int hf_bthci_cmd_max_interval_hold = -1;
|
|
|
|
static int hf_bthci_cmd_min_interval_hold = -1;
|
|
|
|
static int hf_bthci_cmd_max_interval_sniff = -1;
|
|
|
|
static int hf_bthci_cmd_min_interval_sniff = -1;
|
|
|
|
static int hf_bthci_cmd_sniff_attempt = -1;
|
|
|
|
static int hf_bthci_cmd_timeout = -1;
|
|
|
|
static int hf_bthci_cmd_max_interval_beacon = -1;
|
|
|
|
static int hf_bthci_cmd_min_interval_beacon = -1;
|
|
|
|
static int hf_bthci_cmd_flags = -1;
|
|
|
|
static int hf_bthci_cmd_service_type = -1;
|
|
|
|
static int hf_bthci_cmd_token_rate = -1;
|
2007-09-23 19:40:54 +00:00
|
|
|
static int hf_bthci_cmd_token_bucket_size = -1;
|
2006-05-10 10:38:53 +00:00
|
|
|
static int hf_bthci_cmd_peak_bandwidth = -1;
|
|
|
|
static int hf_bthci_cmd_latency = -1;
|
|
|
|
static int hf_bthci_cmd_delay_variation = -1;
|
|
|
|
static int hf_bthci_cmd_link_policy_setting_switch = -1;
|
|
|
|
static int hf_bthci_cmd_link_policy_setting_hold = -1;
|
|
|
|
static int hf_bthci_cmd_link_policy_setting_sniff = -1;
|
|
|
|
static int hf_bthci_cmd_link_policy_setting_park = -1;
|
|
|
|
static int hf_bthci_cmd_filter_type = -1;
|
|
|
|
static int hf_bthci_cmd_inquiry_result_filter_condition_type = -1;
|
|
|
|
static int hf_bthci_cmd_connection_setup_filter_condition_type = -1;
|
|
|
|
static int hf_bthci_cmd_class_of_device = -1;
|
|
|
|
static int hf_bthci_cmd_class_of_device_mask = -1;
|
|
|
|
static int hf_bthci_cmd_auto_acc_flag = -1;
|
|
|
|
static int hf_bthci_cmd_read_all_flag = -1;
|
|
|
|
static int hf_bthci_cmd_delete_all_flag = -1;
|
|
|
|
static int hf_bthci_cmd_authentication_enable = -1;
|
|
|
|
static int hf_bthci_cmd_input_coding = -1;
|
|
|
|
static int hf_bthci_cmd_input_data_format = -1;
|
|
|
|
static int hf_bthci_cmd_input_sample_size = -1;
|
|
|
|
static int hf_bthci_cmd_linear_pcm_bit_pos = -1;
|
|
|
|
static int hf_bthci_cmd_air_coding_format = -1;
|
|
|
|
static int hf_bthci_cmd_num_broadcast_retransmissions = -1;
|
|
|
|
static int hf_bthci_cmd_hold_mode_act_page = -1;
|
|
|
|
static int hf_bthci_cmd_hold_mode_act_inquiry = -1;
|
|
|
|
static int hf_bthci_cmd_hold_mode_act_periodic = -1;
|
|
|
|
static int hf_bthci_cmd_scan_enable = -1;
|
|
|
|
static int hf_bthci_cmd_interval = -1;
|
|
|
|
static int hf_bthci_cmd_window = -1;
|
2007-09-23 19:40:54 +00:00
|
|
|
static int hf_bthci_cmd_device_name = -1;
|
2006-05-10 10:38:53 +00:00
|
|
|
static int hf_bthci_cmd_num_curr_iac = -1;
|
|
|
|
static int hf_bthci_cmd_iac_lap = -1;
|
2007-09-23 19:40:54 +00:00
|
|
|
static int hf_bthci_cmd_evt_mask_00 = -1;
|
2006-05-10 10:38:53 +00:00
|
|
|
static int hf_bthci_cmd_evt_mask_01 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_02 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_03 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_04 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_05 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_06 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_07 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_10 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_11 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_12 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_13 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_14 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_17 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_20 = -1;
|
2007-09-23 19:40:54 +00:00
|
|
|
static int hf_bthci_cmd_evt_mask_21 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_23 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_24 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_25 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_26 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_27 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_30 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_31 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_32 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_33 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_34 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_35 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_36 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_37 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_40 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_41 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_42 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_53 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_54 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_55 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_56 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_57 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_60 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_61 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_62 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_63 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_64 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_65 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_67 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_70 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_72 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask_73 = -1;
|
2006-05-10 10:38:53 +00:00
|
|
|
static int hf_bthci_cmd_sco_flow_control = -1;
|
|
|
|
static int hf_bthci_cmd_num_handles = -1;
|
|
|
|
static int hf_bthci_cmd_num_compl_packets = -1;
|
|
|
|
static int hf_bthci_cmd_flow_contr_enable = -1;
|
|
|
|
static int hf_bthci_cmd_host_data_packet_length_acl = -1;
|
|
|
|
static int hf_bthci_cmd_host_data_packet_length_sco = -1;
|
|
|
|
static int hf_bthci_cmd_host_total_num_acl_data_packets = -1;
|
|
|
|
static int hf_bthci_cmd_host_total_num_sco_data_packets = -1;
|
|
|
|
static int hf_bthci_cmd_loopback_mode = -1;
|
2007-09-23 19:40:54 +00:00
|
|
|
static int hf_bthci_cmd_page_number = -1;
|
|
|
|
static int hf_bthci_cmd_transmit_bandwidth = -1;
|
|
|
|
static int hf_bthci_cmd_receive_bandwidth = -1;
|
|
|
|
static int hf_bthci_cmd_max_latency_ms = -1;
|
|
|
|
static int hf_bthci_cmd_max_latency = -1;
|
|
|
|
static int hf_bthci_cmd_retransmission_effort = -1;
|
|
|
|
static int hf_bthci_cmd_scan_type = -1;
|
|
|
|
static int hf_bthci_cmd_inq_mode = -1;
|
|
|
|
static int hf_bthci_cmd_fec_required = -1;
|
|
|
|
static int hf_bthci_cmd_err_data_reporting = -1;
|
|
|
|
static int hf_bthci_cmd_tx_power = -1;
|
|
|
|
static int hf_bthci_cmd_sco_packet_type_hv1 = -1;
|
|
|
|
static int hf_bthci_cmd_sco_packet_type_hv2 = -1;
|
|
|
|
static int hf_bthci_cmd_sco_packet_type_hv3 = -1;
|
|
|
|
static int hf_bthci_cmd_sco_packet_type_ev3 = -1;
|
|
|
|
static int hf_bthci_cmd_sco_packet_type_ev4 = -1;
|
|
|
|
static int hf_bthci_cmd_sco_packet_type_ev5 = -1;
|
|
|
|
static int hf_bthci_cmd_sco_packet_type_2ev3 = -1;
|
|
|
|
static int hf_bthci_cmd_sco_packet_type_3ev3 = -1;
|
|
|
|
static int hf_bthci_cmd_sco_packet_type_2ev5 = -1;
|
|
|
|
static int hf_bthci_cmd_sco_packet_type_3ev5 = -1;
|
|
|
|
static int hf_bthci_cmd_min_remote_timeout = -1;
|
|
|
|
static int hf_bthci_cmd_min_local_timeout = -1;
|
|
|
|
static int hf_bthci_cmd_flush_packet_type = -1;
|
|
|
|
static int hf_bthci_cmd_afh_ch_assessment_mode = -1;
|
|
|
|
static int hf_bthci_cmd_afh_ch_classification = -1;
|
|
|
|
static int hf_bthci_cmd_which_clock = -1;
|
|
|
|
static int hf_bthci_cmd_io_capability = -1;
|
|
|
|
static int hf_bthci_cmd_oob_data_present = -1;
|
|
|
|
static int hf_bthci_cmd_auth_requirements = -1;
|
|
|
|
static int hf_bthci_cmd_passkey = -1;
|
|
|
|
static int hf_bthci_cmd_randomizer_r = -1;
|
|
|
|
static int hf_bthci_cmd_hash_c = -1;
|
|
|
|
static int hf_bthci_cmd_simple_pairing_mode = -1;
|
|
|
|
static int hf_bthci_cmd_simple_pairing_debug_mode = -1;
|
|
|
|
static int hf_bthci_cmd_notification_type = -1;
|
|
|
|
static int hf_bthci_cmd_eir_data = -1;
|
|
|
|
static int hf_bthci_cmd_eir_struct_length = -1;
|
|
|
|
static int hf_bthci_cmd_eir_struct_type = -1;
|
|
|
|
static int hf_bthci_cmd_sc_uuid16 = -1;
|
|
|
|
static int hf_bthci_cmd_sc_uuid32 = -1;
|
|
|
|
static int hf_bthci_cmd_sc_uuid128 = -1;
|
2012-10-22 12:49:04 +00:00
|
|
|
static int hf_bthci_cmd_physical_link_handle = -1;
|
|
|
|
static int hf_bthci_cmd_dedicated_amp_key_length = -1;
|
|
|
|
static int hf_bthci_cmd_dedicated_amp_key_type = -1;
|
|
|
|
static int hf_bthci_cmd_dedicated_amp_key = -1;
|
|
|
|
static int hf_bthci_cmd_flow_spec = -1;
|
|
|
|
static int hf_bthci_cmd_flow_spec_identifier = -1;
|
|
|
|
static int hf_bthci_cmd_flow_spec_service_type = -1;
|
|
|
|
static int hf_bthci_cmd_flow_spec_sdu_size = -1;
|
|
|
|
static int hf_bthci_cmd_flow_spec_sdu_arrival_time = -1;
|
|
|
|
static int hf_bthci_cmd_flow_spec_access_latency = -1;
|
|
|
|
static int hf_bthci_cmd_flush_to_us = -1;
|
|
|
|
static int hf_bthci_cmd_logical_link_handle = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask2_00 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask2_01 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask2_02 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask2_03 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask2_04 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask2_05 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask2_06 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask2_07 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask2_10 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask2_11 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask2_12 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask2_13 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask2_14 = -1;
|
|
|
|
static int hf_bthci_cmd_evt_mask2_15 = -1;
|
|
|
|
static int hf_bthci_cmd_location_domain_aware = -1;
|
|
|
|
static int hf_bthci_cmd_location_domain = -1;
|
|
|
|
static int hf_bthci_cmd_location_domain_options = -1;
|
|
|
|
static int hf_bthci_cmd_location_options = -1;
|
|
|
|
static int hf_bthci_cmd_flow_control_mode = -1;
|
|
|
|
static int hf_bthci_cmd_tx_power_level_type = -1;
|
|
|
|
static int hf_bthci_cmd_short_range_mode = -1;
|
|
|
|
static int hf_bthci_cmd_le_supported_host = -1;
|
|
|
|
static int hf_bthci_cmd_le_simultaneous_host = -1;
|
|
|
|
static int hf_bthci_cmd_enable_amp_recv_reports = -1;
|
|
|
|
static int hf_bthci_cmd_amp_recv_report_interval = -1;
|
|
|
|
static int hf_bthci_cmd_length_so_far = -1;
|
|
|
|
static int hf_bthci_cmd_amp_assoc_length = -1;
|
|
|
|
static int hf_bthci_cmd_amp_remaining_assoc_length = -1;
|
|
|
|
static int hf_bthci_cmd_amp_assoc_fragment = -1;
|
|
|
|
static int hf_bthci_cmd_le_evt_mask_00 = -1;
|
|
|
|
static int hf_bthci_cmd_le_evt_mask_01 = -1;
|
|
|
|
static int hf_bthci_cmd_le_evt_mask_02 = -1;
|
|
|
|
static int hf_bthci_cmd_le_evt_mask_03 = -1;
|
|
|
|
static int hf_bthci_cmd_le_evt_mask_04 = -1;
|
|
|
|
static int hf_bthci_cmd_le_advts_interval_min = -1;
|
|
|
|
static int hf_bthci_cmd_le_advts_interval_max = -1;
|
|
|
|
static int hf_bthci_cmd_le_advts_type = -1;
|
|
|
|
static int hf_bthci_cmd_le_own_address_type = -1;
|
|
|
|
static int hf_bthci_cmd_le_direct_address_type = -1;
|
|
|
|
static int hf_bthci_cmd_le_advts_channel_map_1 = -1;
|
|
|
|
static int hf_bthci_cmd_le_advts_channel_map_2 = -1;
|
|
|
|
static int hf_bthci_cmd_le_advts_channel_map_3 = -1;
|
|
|
|
static int hf_bthci_cmd_le_advts_filter_policy = -1;
|
|
|
|
static int hf_bthci_cmd_le_data_length = -1;
|
|
|
|
static int hf_bthci_cmd_le_advts_enable = -1;
|
|
|
|
static int hf_bthci_cmd_le_scan_enable = -1;
|
|
|
|
static int hf_bthci_cmd_le_filter_dublicates = -1;
|
|
|
|
static int hf_bthci_cmd_le_scan_type = -1;
|
|
|
|
static int hf_bthci_cmd_le_scan_interval = -1;
|
|
|
|
static int hf_bthci_cmd_le_scan_window = -1;
|
|
|
|
static int hf_bthci_cmd_le_scan_filter_policy = -1;
|
|
|
|
static int hf_bthci_cmd_le_initiator_filter_policy = -1;
|
|
|
|
static int hf_bthci_cmd_le_peer_address_type = -1;
|
|
|
|
static int hf_bthci_cmd_le_con_interval_min = -1;
|
|
|
|
static int hf_bthci_cmd_le_con_interval_max = -1;
|
|
|
|
static int hf_bthci_cmd_le_con_latency = -1;
|
|
|
|
static int hf_bthci_cmd_le_supervision_timeout = -1;
|
|
|
|
static int hf_bthci_cmd_le_min_ce_length = -1;
|
|
|
|
static int hf_bthci_cmd_le_max_ce_length = -1;
|
|
|
|
static int hf_bthci_cmd_le_address_type = -1;
|
|
|
|
static int hf_bthci_cmd_le_channel_map = -1;
|
|
|
|
static int hf_bthci_cmd_key = -1;
|
|
|
|
static int hf_bthci_cmd_plaintext_data = -1;
|
|
|
|
static int hf_bthci_cmd_random_number = -1;
|
|
|
|
static int hf_bthci_cmd_encrypted_diversifier = -1;
|
|
|
|
static int hf_bthci_cmd_le_long_term_key = -1;
|
|
|
|
static int hf_bthci_cmd_rx_freqency = -1;
|
|
|
|
static int hf_bthci_cmd_tx_freqency = -1;
|
|
|
|
static int hf_bthci_cmd_test_data_length = -1;
|
|
|
|
static int hf_bthci_cmd_test_packet_payload = -1;
|
|
|
|
static int hf_bthci_cmd_appearance = -1;
|
|
|
|
static int hf_bthci_cmd_flags_limited_disc_mode = -1;
|
|
|
|
static int hf_bthci_cmd_flags_general_disc_mode = -1;
|
|
|
|
static int hf_bthci_cmd_flags_bredr_not_support = -1;
|
|
|
|
static int hf_bthci_cmd_flags_le_bredr_support_ctrl = -1;
|
|
|
|
static int hf_bthci_cmd_flags_le_bredr_support_host = -1;
|
|
|
|
static int hf_bthci_cmd_flags_le_oob_data_present = -1;
|
|
|
|
static int hf_bthci_cmd_flags_le_oob_le_supported_host = -1;
|
|
|
|
static int hf_bthci_cmd_flags_le_oob_le_bredr_support = -1;
|
|
|
|
static int hf_bthci_cmd_flags_le_oob_address_type = -1;
|
2006-05-10 10:38:53 +00:00
|
|
|
|
|
|
|
/* Initialize the subtree pointers */
|
|
|
|
static gint ett_bthci_cmd = -1;
|
|
|
|
static gint ett_opcode = -1;
|
2007-09-23 19:40:54 +00:00
|
|
|
static gint ett_eir_subtree = -1;
|
|
|
|
static gint ett_eir_struct_subtree = -1;
|
2012-10-22 12:49:04 +00:00
|
|
|
static gint ett_flow_spec_subtree = -1;
|
2006-05-10 10:38:53 +00:00
|
|
|
|
2010-11-03 22:08:49 +00:00
|
|
|
static const value_string bthci_cmd_opcode_vals[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x0000, "No Operation"},
|
|
|
|
{0x0401, "Inquiry"},
|
|
|
|
{0x0402, "Inquiry Cancel"},
|
|
|
|
{0x0403, "Periodic Inquiry Mode"},
|
|
|
|
{0x0404, "Exit Periodic Inquiry Mode"},
|
|
|
|
{0x0405, "Create Connection"},
|
|
|
|
{0x0406, "Disconnect"},
|
|
|
|
{0x0407, "Add SCO Connection"},
|
|
|
|
{0x0408, "Create Connection Cancel"},
|
|
|
|
{0x0409, "Accept Connection Request"},
|
|
|
|
{0x040a, "Reject Connection Request"},
|
|
|
|
{0x040b, "Link Key Request Reply"},
|
|
|
|
{0x040c, "Link Key Request Negative Reply"},
|
|
|
|
{0x040d, "PIN Code Request Reply"},
|
|
|
|
{0x040e, "PIN Code Request Negative Reply"},
|
|
|
|
{0x040f, "Change Connection Packet Type"},
|
|
|
|
{0x0411, "Authentication Requested"},
|
|
|
|
{0x0413, "Set Connection Encryption"},
|
|
|
|
{0x0415, "Change Connection Link Key"},
|
|
|
|
{0x0417, "Master Link Key"},
|
|
|
|
{0x0419, "Remote Name Request"},
|
|
|
|
{0x041a, "Remote Name Request Cancel"},
|
|
|
|
{0x041b, "Read Remote Supported Features"},
|
|
|
|
{0x041c, "Read Remote Extended Features"},
|
|
|
|
{0x041d, "Read Remote Version Information"},
|
|
|
|
{0x041f, "Read Clock offset"},
|
|
|
|
{0x0420, "Read LMP Handle"},
|
|
|
|
{0x0428, "Setup Synchronous Connection"},
|
|
|
|
{0x0429, "Accept Synchronous Connection Request"},
|
|
|
|
{0x042a, "Reject Synchronous Connection Request"},
|
|
|
|
{0x042b, "IO Capability Request Reply"},
|
|
|
|
{0x042c, "User Confirmation Request Reply"},
|
|
|
|
{0x042d, "User Confirmation Request Negative Reply"},
|
|
|
|
{0x042e, "User Passkey Request Reply"},
|
|
|
|
{0x042f, "User Passkey Request Negative Reply"},
|
|
|
|
{0x0430, "Remote OOB Data Request Reply"},
|
|
|
|
{0x0433, "Remote OOB Data Request Negative Reply"},
|
2012-10-22 12:49:04 +00:00
|
|
|
{0x0434, "IO Capability Request Negative Reply"},
|
|
|
|
{0x0435, "Create Physical Link"},
|
|
|
|
{0x0436, "Accept Physical Link"},
|
|
|
|
{0x0437, "Disconnect Physical Link"},
|
|
|
|
{0x0438, "Create Logical Link"},
|
|
|
|
{0x0439, "Accept Logical Link"},
|
|
|
|
{0x043a, "Disconnect Logical Link"},
|
|
|
|
{0x043b, "Logical Link Cancel"},
|
|
|
|
{0x043c, "Flow Spec Modify"},
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x0801, "Hold Mode"},
|
|
|
|
{0x0803, "Sniff Mode"},
|
|
|
|
{0x0804, "Exit Sniff Mode"},
|
|
|
|
{0x0805, "Park Mode"},
|
|
|
|
{0x0806, "Exit Park Mode"},
|
|
|
|
{0x0807, "QoS Setup"},
|
|
|
|
{0x0809, "Role Discovery"},
|
|
|
|
{0x080b, "Switch Role"},
|
|
|
|
{0x080c, "Read Link Policy Settings"},
|
|
|
|
{0x080d, "Write Link Policy Settings"},
|
|
|
|
{0x080e, "Read Default Link Policy Settings"},
|
|
|
|
{0x080f, "Write Default Link Policy Settings"},
|
|
|
|
{0x0810, "Flow Specification"},
|
|
|
|
{0x0811, "Sniff Subrating"},
|
|
|
|
{0x0c01, "Set Event Mask"},
|
|
|
|
{0x0c03, "Reset"},
|
|
|
|
{0x0c05, "Set Event Filter"},
|
|
|
|
{0x0c08, "Flush"},
|
|
|
|
{0x0c09, "Read PIN Type "},
|
|
|
|
{0x0c0a, "Write PIN Type"},
|
|
|
|
{0x0c0b, "Create New Unit Key"},
|
|
|
|
{0x0c0d, "Read Stored Link Key"},
|
|
|
|
{0x0c11, "Write Stored Link Key"},
|
|
|
|
{0x0c12, "Delete Stored Link Key"},
|
|
|
|
{0x0c13, "Change Local Name"},
|
|
|
|
{0x0c14, "Read Local Name"},
|
|
|
|
{0x0c15, "Read Connection Accept Timeout"},
|
|
|
|
{0x0c16, "Write Connection Accept Timeout"},
|
|
|
|
{0x0c17, "Read Page Timeout"},
|
|
|
|
{0x0c18, "Write Page Timeout"},
|
|
|
|
{0x0c19, "Read Scan Enable"},
|
|
|
|
{0x0c1a, "Write Scan Enable"},
|
|
|
|
{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"},
|
|
|
|
{0x0c24, "Write Class of Device"},
|
|
|
|
{0x0c25, "Read Voice Setting"},
|
|
|
|
{0x0c26, "Write Voice Setting"},
|
|
|
|
{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 Tx Power Level"},
|
|
|
|
{0x0c2e, "Read SCO Flow Control Enable"},
|
|
|
|
{0x0c2f, "Write SCO Flow Control Enable"},
|
|
|
|
{0x0c31, "Set Host Controller To Host Flow Control"},
|
|
|
|
{0x0c33, "Host Buffer Size"},
|
|
|
|
{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"},
|
|
|
|
{0x0c42, "Read Inquiry Scan Type"},
|
|
|
|
{0x0c43, "Write Inquiry Scan Type"},
|
|
|
|
{0x0c44, "Read Inquiry Mode"},
|
|
|
|
{0x0c45, "Write Inquiry Mode"},
|
|
|
|
{0x0c46, "Read Page Scan Type"},
|
|
|
|
{0x0c47, "Write Page Scan Type"},
|
|
|
|
{0x0c48, "Read AFH Channel Assessment Mode"},
|
|
|
|
{0x0c49, "Write AFH Channel Assessment Mode"},
|
|
|
|
{0x0c51, "Read Extended Inquiry Response"},
|
|
|
|
{0x0c52, "Write Extended Inquiry Response"},
|
|
|
|
{0x0c53, "Refresh Encryption Key"},
|
|
|
|
{0x0c55, "Read Simple Pairing Mode"},
|
|
|
|
{0x0c56, "Write Simple Pairing Mode"},
|
|
|
|
{0x0c57, "Read Local OOB Data"},
|
|
|
|
{0x0c58, "Read Inquiry Response Tx Power Level"},
|
|
|
|
{0x0c59, "Write Inquiry Tx Power Level"},
|
|
|
|
{0x0c5a, "Read Default Erroneous Data Reporting"},
|
|
|
|
{0x0c5b, "Write Default Erroneous Data Reporting"},
|
|
|
|
{0x0c5f, "Enhanced Flush"},
|
|
|
|
{0x0c60, "Send Keypress Notification"},
|
2012-10-22 12:49:04 +00:00
|
|
|
{0x0c61, "Read Logical Link Accept Timeout"},
|
|
|
|
{0x0c62, "Write Logical Link Accept Timeout"},
|
|
|
|
{0x0c63, "Set Event Mask Page 2"},
|
|
|
|
{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"},
|
|
|
|
{0x0c6d, "Write LE Host Supported"},
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x1001, "Read Local Version Information"},
|
|
|
|
{0x1002, "Read Local Supported Commands"},
|
|
|
|
{0x1003, "Read Local Supported Features"},
|
|
|
|
{0x1004, "Read Local Extended Features"},
|
|
|
|
{0x1005, "Read Buffer Size"},
|
|
|
|
{0x1007, "Read Country Code"},
|
|
|
|
{0x1009, "Read BD ADDR"},
|
2012-10-22 12:49:04 +00:00
|
|
|
{0x100a, "Read Data Block Size"},
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x1401, "Read Failed Contact Counter"},
|
|
|
|
{0x1402, "Reset Failed Contact Counter"},
|
|
|
|
{0x1403, "Read Link Quality"},
|
|
|
|
{0x1405, "Read RSSI"},
|
|
|
|
{0x1406, "Read AFH Channel Map"},
|
|
|
|
{0x1407, "Read Clock"},
|
2012-10-22 12:49:04 +00:00
|
|
|
{0x1408, "Read Encryption Key Size"},
|
|
|
|
{0x1409, "Read Local AMP Info"},
|
|
|
|
{0x140a, "Read Local AMP Assoc"},
|
|
|
|
{0x140b, "Write Remote AMP Assoc"},
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x1801, "Read Loopback Mode"},
|
|
|
|
{0x1802, "Write Loopback Mode"},
|
|
|
|
{0x1803, "Enable Device Under Test Mode"},
|
|
|
|
{0x1804, "Write Simple Pairing Debug Mode"},
|
2012-10-22 12:49:04 +00:00
|
|
|
{0x1807, "Enable AMP Receiver Reports"},
|
|
|
|
{0x1808, "AMP Test End"},
|
|
|
|
{0x1809, "AMP Test"},
|
|
|
|
{0x2001, "LE Set Event Mask"},
|
|
|
|
{0x2002, "LE Read Buffer Size"},
|
|
|
|
{0x2003, "LE Read Local Supported Features"},
|
|
|
|
{0x2005, "LE Set Random Address"},
|
|
|
|
{0x2006, "LE Set Advertising Parameters"},
|
|
|
|
{0x2007, "LE Read Advertising Channel Tx Power"},
|
|
|
|
{0x2008, "LE Set Advertising Data"},
|
|
|
|
{0x2009, "LE Set Scan Response Data"},
|
|
|
|
{0x200a, "LE Set Advertise Enable"},
|
|
|
|
{0x200b, "LE Set Scan Parameters"},
|
|
|
|
{0x200c, "LE Set Scan Enable"},
|
|
|
|
{0x200d, "LE Create Connection"},
|
|
|
|
{0x200e, "LE Create Connection Cancel"},
|
|
|
|
{0x200f, "LE Read White List Size"},
|
|
|
|
{0x2010, "LE Clear White List"},
|
|
|
|
{0x2011, "LE Add Device To White List"},
|
|
|
|
{0x2012, "LE Remove Device From White List"},
|
|
|
|
{0x2013, "LE Connection Update"},
|
|
|
|
{0x2014, "LE Set Host Channel Classification"},
|
|
|
|
{0x2015, "LE Read Channel Map"},
|
|
|
|
{0x2016, "LE Read Remote Used Features"},
|
|
|
|
{0x2017, "LE Encrypt"},
|
|
|
|
{0x2018, "LE Rand"},
|
|
|
|
{0x2019, "LE Start Encryption"},
|
|
|
|
{0x201a, "LE Long Term Key Request Reply"},
|
|
|
|
{0x201b, "LE Long Term Key Request Negative Reply"},
|
|
|
|
{0x201c, "LE Read Supported States"},
|
|
|
|
{0x201d, "LE Receiver Test"},
|
|
|
|
{0x201e, "LE Transmitter Test"},
|
|
|
|
{0x201f, "LE Test End"},
|
2012-03-12 14:40:09 +00:00
|
|
|
{0xfc00, "Vendor-Specific"},
|
|
|
|
{0, NULL}
|
2006-05-10 10:38:53 +00:00
|
|
|
};
|
2010-11-03 22:08:49 +00:00
|
|
|
value_string_ext bthci_cmd_opcode_vals_ext = VALUE_STRING_EXT_INIT(bthci_cmd_opcode_vals);
|
2006-05-10 10:38:53 +00:00
|
|
|
|
2010-11-03 22:08:49 +00:00
|
|
|
static const value_string bthci_ogf_vals[] = {
|
2012-10-22 12:49:04 +00:00
|
|
|
{ HCI_OGF_LINK_CONTROL, "Link Control Commands" },
|
|
|
|
{ HCI_OGF_LINK_POLICY, "Link Policy Commands" },
|
2012-03-12 14:40:09 +00:00
|
|
|
{ HCI_OGF_HOST_CONTROLLER,"Host Controller & Baseband Commands" },
|
|
|
|
{ HCI_OGF_INFORMATIONAL,"Informational Parameters" },
|
2012-10-22 12:49:04 +00:00
|
|
|
{ HCI_OGF_STATUS, "Status Parameters" },
|
|
|
|
{ HCI_OGF_TESTING, "Testing Commands" },
|
|
|
|
{ HCI_OGF_LOW_ENERGY, "LE Controller Commands" },
|
|
|
|
{ HCI_OGF_LOGO_TESTING, "Bluetooth Logo Testing Commands" },
|
|
|
|
{ HCI_OGF_VENDOR_SPECIFIC, "Vendor-Specific Commands" },
|
2012-03-12 14:40:09 +00:00
|
|
|
{ 0, NULL }
|
2007-09-23 19:40:54 +00:00
|
|
|
};
|
2010-11-03 22:08:49 +00:00
|
|
|
value_string_ext bthci_ogf_vals_ext = VALUE_STRING_EXT_INIT(bthci_ogf_vals);
|
2007-09-23 19:40:54 +00:00
|
|
|
|
2010-11-03 22:08:49 +00:00
|
|
|
static const value_string bthci_cmd_status_vals[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x00, "Success"},
|
|
|
|
{0x01, "Unknown HCI Command"},
|
|
|
|
{0x02, "No Connection"},
|
|
|
|
{0x03, "Hardware Failure"},
|
|
|
|
{0x04, "Page Timeout"},
|
|
|
|
{0x05, "Authentication Failure"},
|
|
|
|
{0x06, "Key Missing"},
|
|
|
|
{0x07, "Memory Full"},
|
|
|
|
{0x08, "Connection Timeout"},
|
|
|
|
{0x09, "Max Number Of Connections"},
|
|
|
|
{0x0A, "Max Number Of SCO Connections To A Device"},
|
|
|
|
{0x0B, "ACL connection already exists"},
|
|
|
|
{0x0C, "Command Disallowed"},
|
|
|
|
{0x0D, "Host Rejected due to limited resources"},
|
|
|
|
{0x0E, "Host Rejected due to security reasons"},
|
|
|
|
{0x0F, "Host Rejected due to remote device is only a personal device"},
|
|
|
|
{0x10, "Host Timeout"},
|
|
|
|
{0x11, "Unsupported Feature or Parameter Value"},
|
|
|
|
{0x12, "Invalid HCI Command Parameters"},
|
|
|
|
{0x13, "Other End Terminated Connection: User Ended Connection"},
|
|
|
|
{0x14, "Other End Terminated Connection: Low Resources"},
|
|
|
|
{0x15, "Other End Terminated Connection: About to Power Off"},
|
|
|
|
{0x16, "Connection Terminated by Local Host"},
|
|
|
|
{0x17, "Repeated Attempts"},
|
|
|
|
{0x18, "Pairing Not Allowed"},
|
|
|
|
{0x19, "Unknown LMP PDU"},
|
|
|
|
{0x1A, "Unsupported Remote Feature"},
|
|
|
|
{0x1B, "SCO Offset Rejected"},
|
|
|
|
{0x1C, "SCO Interval Rejected"},
|
|
|
|
{0x1D, "SCO Air Mode Rejected"},
|
|
|
|
{0x1E, "Invalid LMP Parameters"},
|
|
|
|
{0x1F, "Unspecified Error"},
|
|
|
|
{0x20, "Unsupported LMP Parameter Value"},
|
|
|
|
{0x21, "Role Change Not Allowed"},
|
|
|
|
{0x22, "LMP Response Timeout"},
|
|
|
|
{0x23, "LMP Error Transaction Collision"},
|
|
|
|
{0x24, "LMP PDU Not Allowed"},
|
|
|
|
{0x25, "Encryption Mode Not Acceptable"},
|
|
|
|
{0x26, "Unit Key Used"},
|
|
|
|
{0x27, "QoS is Not Supported"},
|
|
|
|
{0x28, "Instant Passed"},
|
|
|
|
{0x29, "Pairing with Unit Key Not Supported"},
|
|
|
|
{0x2A, "Different Transaction Collision"},
|
|
|
|
{0x2C, "QoS Unacceptable Parameter"},
|
|
|
|
{0x2D, "QoS Rejected"},
|
|
|
|
{0x2E, "Channel Classification Not Supported"},
|
|
|
|
{0x2F, "Insufficient Security"},
|
|
|
|
{0x30, "Parameter Out Of Mandatory Range"},
|
|
|
|
{0x31, "Unknown"},
|
|
|
|
{0x32, "Role Switch Pending"},
|
|
|
|
{0x33, "Unknown"},
|
|
|
|
{0x34, "Reserved Slot Violation"},
|
2012-10-22 12:49:04 +00:00
|
|
|
{0x35, "Role Switch Failed"},
|
|
|
|
{0x36, "Extended Inquiry Response Too Large"},
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x37, "Secure Simple Pairing Not Supported By Host"},
|
|
|
|
{0x38, "Host Busy - Pairing"},
|
2012-10-22 12:49:04 +00:00
|
|
|
{0x39, "Connection Rejected - No Suitable Channel Found"},
|
|
|
|
{0x3a, "Controller Busy"},
|
|
|
|
{0x3b, "Unacceptable Connection Interval"},
|
|
|
|
{0x3c, "Directed Advertising Timeout"},
|
|
|
|
{0x3d, "Connection Terminated - MIC Failure"},
|
|
|
|
{0x3e, "Connection Failed To Be Established"},
|
|
|
|
{0x3f, "MAC Connection Failed"},
|
2012-03-12 14:40:09 +00:00
|
|
|
{0, NULL }
|
2006-05-10 10:38:53 +00:00
|
|
|
};
|
2010-11-03 22:08:49 +00:00
|
|
|
value_string_ext bthci_cmd_status_vals_ext = VALUE_STRING_EXT_INIT(bthci_cmd_status_vals);
|
2006-05-10 10:38:53 +00:00
|
|
|
|
2010-11-03 22:08:49 +00:00
|
|
|
static const value_string bthci_cmd_major_dev_class_vals[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x00, "Miscellaneous"},
|
|
|
|
{0x01, "Computer"},
|
|
|
|
{0x02, "Phone"},
|
|
|
|
{0x03, "LAN/Network Access Point"},
|
|
|
|
{0x04, "Audio/Video"},
|
|
|
|
{0x05, "Peripheral (HID)"},
|
|
|
|
{0x06, "Imaging"},
|
|
|
|
{0x07, "Wearable"},
|
|
|
|
{0x08, "Toy"},
|
|
|
|
{0, NULL }
|
2007-09-23 19:40:54 +00:00
|
|
|
};
|
2010-11-03 22:08:49 +00:00
|
|
|
value_string_ext bthci_cmd_major_dev_class_vals_ext = VALUE_STRING_EXT_INIT(bthci_cmd_major_dev_class_vals);
|
2007-09-23 19:40:54 +00:00
|
|
|
|
2010-11-03 22:08:49 +00:00
|
|
|
static const value_string bthci_cmd_service_class_type_vals[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x1000, "Service Discovery Server Service"},
|
|
|
|
{0x1001, "Browse Group Descriptor Service"},
|
|
|
|
{0x1002, "Public Browse Group"},
|
|
|
|
{0x1101, "Serial Port"},
|
|
|
|
{0x1102, "LAN Access Using PPP"},
|
|
|
|
{0x1103, "Dialup Networking"},
|
|
|
|
{0x1104, "IrMC Sync"},
|
|
|
|
{0x1105, "OBEX Object Push"},
|
|
|
|
{0x1106, "OBEX File Transfer"},
|
|
|
|
{0x1107, "IrMC Sync Command"},
|
|
|
|
{0x1108, "Headset"},
|
|
|
|
{0x1109, "Cordless Telephony"},
|
|
|
|
{0x110A, "Audio Source"},
|
|
|
|
{0x110B, "Audio Sink"},
|
|
|
|
{0x110C, "A/V Remote Control Target"},
|
|
|
|
{0x110D, "Advanced Audio Distribution"},
|
|
|
|
{0x110E, "A/V Remote Control"},
|
|
|
|
{0x110F, "Video Conferencing"},
|
|
|
|
{0x1110, "Intercom"},
|
|
|
|
{0x1111, "Fax"},
|
|
|
|
{0x1112, "Headset Audio Gateway"},
|
|
|
|
{0x1113, "WAP"},
|
|
|
|
{0x1114, "WAP Client"},
|
|
|
|
{0x1115, "PANU"},
|
|
|
|
{0x1116, "NAP"},
|
|
|
|
{0x1117, "GN"},
|
|
|
|
{0x1118, "Direct Printing"},
|
|
|
|
{0x1119, "Reference Printing"},
|
|
|
|
{0x111A, "Imaging"},
|
|
|
|
{0x111B, "Imaging Responder"},
|
|
|
|
{0x111C, "Imaging Automatic Archive"},
|
|
|
|
{0x111D, "Imaging Referenced Objects"},
|
|
|
|
{0x111E, "Handsfree"},
|
|
|
|
{0x111F, "Handsfree Audio Gateway"},
|
|
|
|
{0x1120, "Direct Printing Reference Objects Service"},
|
|
|
|
{0x1121, "Reflected UI"},
|
|
|
|
{0x1122, "Basic Printing"},
|
|
|
|
{0x1123, "Printing Status"},
|
|
|
|
{0x1124, "Human Interface Device Service"},
|
|
|
|
{0x1125, "Hardcopy Cable Replacement"},
|
|
|
|
{0x1126, "HCR Print"},
|
|
|
|
{0x1127, "HCR Scan"},
|
|
|
|
{0x1128, "Common ISDN Access"},
|
|
|
|
{0x1129, "Video Conferencing GW"},
|
|
|
|
{0x112A, "UDI_MT"},
|
|
|
|
{0x112B, "UDI_TA"},
|
|
|
|
{0x112C, "Audio/Video"},
|
|
|
|
{0x112D, "SIM Access"},
|
|
|
|
{0x112E, "Phonebook Access - PCE"},
|
|
|
|
{0x112F, "Phonebook Access - PSE"},
|
|
|
|
{0x1130, "Phonebook Access"},
|
|
|
|
{0x1200, "PnP Information"},
|
|
|
|
{0x1201, "Generic Networking"},
|
|
|
|
{0x1202, "Generic File Transfer"},
|
|
|
|
{0x1203, "Generic Audio"},
|
|
|
|
{0x1204, "Generic Telephony"},
|
|
|
|
{0x1205, "UPNP Service"},
|
|
|
|
{0x1206, "UPNP IP Service"},
|
|
|
|
{0x1300, "ESDP_UPNP_IP_PAN"},
|
|
|
|
{0x1301, "ESDP_UPNP_IP_LAP"},
|
|
|
|
{0x1302, "ESDP_UPNP_L2CAP"},
|
|
|
|
{0x1303, "Video Source"},
|
|
|
|
{0x1304, "Video Sink"},
|
|
|
|
{0x1305, "Video Distribution"},
|
2012-10-22 12:49:04 +00:00
|
|
|
/* LE services */
|
|
|
|
{0x1800, "Generic Access"},
|
|
|
|
{0x1801, "Generic Attribute"},
|
|
|
|
{0x1802, "Immediate Alert"},
|
|
|
|
{0x1803, "Link Loss"},
|
|
|
|
{0x1804, "Tx Power"},
|
|
|
|
{0x1805, "Current Time"},
|
|
|
|
{0x1806, "Reference Time Update"},
|
|
|
|
{0x1807, "Next DST Change"},
|
|
|
|
{0x1808, "Glucose"},
|
|
|
|
{0x1809, "Health Thermometer"},
|
|
|
|
{0x180a, "Device Information"},
|
|
|
|
{0x180b, ""},
|
|
|
|
{0x180c, ""},
|
|
|
|
{0x180d, "Heart Rate"},
|
|
|
|
{0x180e, "Phone Alert Status"},
|
|
|
|
{0x180f, "Battery"},
|
|
|
|
{0x1810, "Blood Pressure"},
|
|
|
|
{0x1811, "Alert Notification"},
|
|
|
|
{0x1812, "Human Interface Device"},
|
|
|
|
{0x1813, "Scan Parameters"},
|
|
|
|
{0x1814, "Running Speed and Cadence"},
|
|
|
|
{0x1816, "Cycling Speed and Cadence"},
|
2012-03-12 14:40:09 +00:00
|
|
|
{0, NULL}
|
2007-09-23 19:40:54 +00:00
|
|
|
};
|
2010-11-03 22:08:49 +00:00
|
|
|
value_string_ext bthci_cmd_service_class_type_vals_ext = VALUE_STRING_EXT_INIT(bthci_cmd_service_class_type_vals);
|
|
|
|
|
|
|
|
static const value_string bthci_cmd_eir_data_type_vals[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x01, "Flags" },
|
|
|
|
{0x02, "16-bit Service Class UUIDs (incomplete)" },
|
|
|
|
{0x03, "16-bit Service Class UUIDs" },
|
|
|
|
{0x04, "32-bit Service Class UUIDs (incomplete)" },
|
|
|
|
{0x05, "32-bit Service Class UUIDs" },
|
|
|
|
{0x06, "128-bit Service Class UUIDs (incomplete)" },
|
|
|
|
{0x07, "128-bit Service Class UUIDs" },
|
|
|
|
{0x08, "Device Name (shortened)" },
|
|
|
|
{0x09, "Device Name" },
|
|
|
|
{0x0A, "Tx Power Level" },
|
|
|
|
{0x0B, "OOB Optional Data Length" },
|
|
|
|
{0x0C, "BD_ADDR" },
|
|
|
|
{0x0D, "Class Of Device" },
|
|
|
|
{0x0E, "Simple Pairing Hash C" },
|
|
|
|
{0x0F, "Simple Pairing Randomizer R" },
|
2012-10-22 12:49:04 +00:00
|
|
|
{0x10, "Device ID/Security Manager TK Value" },
|
|
|
|
{0x11, "Security Manager Out of Band Flags" },
|
|
|
|
{0x12, "Slave Connection Interval Range" },
|
|
|
|
{0x14, "List of 16-bit Service Solicitation UUIDs" },
|
|
|
|
{0x15, "List of 128-bit Service Solicitation UUIDs" },
|
|
|
|
{0x16, "Service Data" },
|
|
|
|
{0x17, "Public Target Address" },
|
|
|
|
{0x18, "Random Target Address" },
|
|
|
|
{0x19, "Appearance" },
|
2012-03-12 14:40:09 +00:00
|
|
|
{0xFF, "Manufacturer Specific" },
|
|
|
|
{ 0, NULL }
|
2007-09-23 19:40:54 +00:00
|
|
|
};
|
2010-11-03 22:08:49 +00:00
|
|
|
value_string_ext bthci_cmd_eir_data_type_vals_ext = VALUE_STRING_EXT_INIT(bthci_cmd_eir_data_type_vals);
|
2007-09-23 19:40:54 +00:00
|
|
|
|
2012-10-22 12:49:04 +00:00
|
|
|
static const value_string bthci_cmd_appearance_vals[] = {
|
|
|
|
{ 0x0000, "Unknown" },
|
|
|
|
{ 0x0040, "Generic Phone" },
|
|
|
|
{ 0x0080, "Generic Computer" },
|
|
|
|
{ 0x00C0, "Generic Watch" },
|
|
|
|
{ 0x00C1, "Sports Watch" },
|
|
|
|
{ 0x0100, "Generic Clock" },
|
|
|
|
{ 0x0140, "Generic Display" },
|
|
|
|
{ 0x0180, "Generic Remote Control" },
|
|
|
|
{ 0x01C0, "Generic Eye-glasses" },
|
|
|
|
{ 0x0200, "Generic Tag" },
|
|
|
|
{ 0x0240, "Generic Keyring" },
|
|
|
|
{ 0x0280, "Generic Media Player" },
|
|
|
|
{ 0x02C0, "Generic Barcode Scanner" },
|
|
|
|
{ 0x0300, "Generic Thermometer" },
|
|
|
|
{ 0x0301, "Ear Thermometer" },
|
|
|
|
{ 0x0340, "Generic Heart Rate Sensor" },
|
|
|
|
{ 0x0341, "Heart Rate Belt Sensor" },
|
|
|
|
{ 0x0380, "Generic Blood Pressure" },
|
|
|
|
{ 0x0381, "Arm Blood Pressure" },
|
|
|
|
{ 0x0382, "Wrist Blood Pressure" },
|
|
|
|
{ 0x03C0, "Human Interface Device (HID)" },
|
|
|
|
{ 0x03C1, "Keyboard" },
|
|
|
|
{ 0x03C2, "Mouse" },
|
|
|
|
{ 0x03C3, "Joystick" },
|
|
|
|
{ 0x03C4, "Gamepad" },
|
|
|
|
{ 0x03C5, "Digitizer Tablet" },
|
|
|
|
{ 0x03C6, "Card Reader" },
|
|
|
|
{ 0x03C7, "Digital Pen" },
|
|
|
|
{ 0x03C8, "Barcode Scanner" },
|
|
|
|
{ 0x0400, "Generic Glucose Meter" },
|
|
|
|
{ 0x0440, "Generic Running/Walking Sensor" },
|
|
|
|
{ 0x0441, "In-shoe Running/Walking Sensor" },
|
|
|
|
{ 0x0442, "On-shoe Running/Walking Sensor" },
|
|
|
|
{ 0x0443, "On-hip Running/Walking Sensor" },
|
|
|
|
{ 0x0480, "Generic Cycling Sensor" },
|
|
|
|
{ 0x0481, "Cycling Computer" },
|
|
|
|
{ 0x0482, "Cycling Speed Sensor" },
|
|
|
|
{ 0x0483, "Cycling Cadence Sensor" },
|
|
|
|
{ 0x0484, "Cycling Power Sensor" },
|
|
|
|
{ 0x0485, "Cycling Speed and Cadence Sensor" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
value_string_ext bthci_cmd_appearance_vals_ext = VALUE_STRING_EXT_INIT(bthci_cmd_appearance_vals);
|
|
|
|
|
2007-09-23 19:40:54 +00:00
|
|
|
const value_string bthci_cmd_io_capability_vals[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x00, "Display Only" },
|
|
|
|
{0x01, "Display Yes/No" },
|
|
|
|
{0x02, "Keyboard Only" },
|
|
|
|
{0x03, "No Input, No Output" },
|
|
|
|
{ 0, NULL }
|
2007-09-23 19:40:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
const value_string bthci_cmd_oob_data_present_vals[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x00, "OOB Authentication Data Not Present" },
|
|
|
|
{0x01, "OOB Authentication Data From Remote Device Present" },
|
|
|
|
{ 0, NULL }
|
2007-09-23 19:40:54 +00:00
|
|
|
};
|
|
|
|
|
2010-11-03 22:08:49 +00:00
|
|
|
static const value_string bthci_cmd_auth_req_vals[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x00, "MITM Protection Not Required - No Bonding. Numeric Comparison, Automatic Accept Allowed" },
|
|
|
|
{0x01, "MITM Protection Required - No Bonding. Use IO Capabilty To Determine Procedure" },
|
|
|
|
{0x02, "MITM Protection Not Required - Dedicated Bonding. Numeric Comparison, Automatic Accept Allowed" },
|
|
|
|
{0x03, "MITM Protection Required - Dedicated Bonding. Use IO Capabilty To Determine Procedure" },
|
|
|
|
{0x04, "MITM Protection Not Required - General Bonding. Numeric Comparison, Automatic Accept Allowed" },
|
|
|
|
{0x05, "MITM Protection Required - General Bonding. Use IO Capabilty To Determine Procedure" },
|
|
|
|
{ 0, NULL }
|
2007-09-23 19:40:54 +00:00
|
|
|
};
|
2010-11-03 22:08:49 +00:00
|
|
|
value_string_ext bthci_cmd_auth_req_vals_ext = VALUE_STRING_EXT_INIT(bthci_cmd_auth_req_vals);
|
2007-09-23 19:40:54 +00:00
|
|
|
|
2012-10-22 12:49:04 +00:00
|
|
|
const value_string bthci_cmd_address_types_vals[] = {
|
|
|
|
{ 0x00, "Public Device Address" },
|
|
|
|
{ 0x01, "Random Device Address" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
2006-05-10 10:38:53 +00:00
|
|
|
static const value_string cmd_role_vals[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x00, "Become Master"},
|
|
|
|
{0x01, "Remain Slave"},
|
|
|
|
{0, NULL }
|
2006-05-10 10:38:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string cmd_pin_types[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x00, "Variable PIN" },
|
|
|
|
{0x01, "Fixed PIN" },
|
|
|
|
{0, NULL }
|
2006-05-10 10:38:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string cmd_encryption_enable[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x00, "Link Level Encryption is OFF"},
|
|
|
|
{0x01, "Link Level Encryption is ON"},
|
|
|
|
{0, NULL }
|
2006-05-10 10:38:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string cmd_key_flag[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x00, "Using Semi-permanent Link Key"},
|
|
|
|
{0x01, "Using Temporary Link Key"},
|
|
|
|
{0, NULL }
|
2006-05-10 10:38:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string cmd_filter_types[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x00, "Clear all Filters" },
|
|
|
|
{0x01, "Inquiry Result" },
|
|
|
|
{0x02, "Connection Setup" },
|
|
|
|
{0, NULL }
|
2006-05-10 10:38:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string cmd_inquiry_result_filter_condition_types[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x00, "A new device responded" },
|
|
|
|
{0x01, "A device with the specified Class of Device responded" },
|
|
|
|
{0x02, "A device with the specified BD_ADDR responded" },
|
|
|
|
{0, NULL }
|
2006-05-10 10:38:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string cmd_service_types[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x00, "No Traffic"},
|
|
|
|
{0x01, "Best Effort"},
|
|
|
|
{0x02, "Guaranteed"},
|
|
|
|
{0, NULL }
|
2006-05-10 10:38:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string cmd_connection_setup_filter_condition_types[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x00, "Allow Connections from all devices" },
|
|
|
|
{0x01, "Allow Connections from a device with a specific Class of Device" },
|
|
|
|
{0x02, "Allow Connections from a device with a specific BD_ADDR" },
|
|
|
|
{0, NULL }
|
2006-05-10 10:38:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string cmd_auto_acc_flag_values[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x01, "Do NOT Auto accept" },
|
|
|
|
{0x02, "Do Auto accept, role switch disabled" },
|
|
|
|
{0x03, "Do Auto accept, role switch enabled" },
|
|
|
|
{0, NULL }
|
2006-05-10 10:38:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string cmd_read_all_flag_values[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x00, "Return Link Key for specified BD_ADDR" },
|
|
|
|
{0x01, "Return all stored Link Keys" },
|
|
|
|
{0, NULL }
|
2009-11-04 12:49:19 +00:00
|
|
|
};
|
2006-05-10 10:38:53 +00:00
|
|
|
|
|
|
|
static const value_string cmd_delete_all_flag_values[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x00, "Delete only Link Key for specified BD_ADDR" },
|
|
|
|
{0x01, "Delete all stored Link Keys" },
|
|
|
|
{0, NULL }
|
2009-11-04 12:49:19 +00:00
|
|
|
};
|
2006-05-10 10:38:53 +00:00
|
|
|
|
2012-10-22 12:49:04 +00:00
|
|
|
const value_string bthci_cmd_scan_enable_values[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x00, "No Scans enabled" },
|
|
|
|
{0x01, "Inquiry Scan enabled/Page Scan disable" },
|
|
|
|
{0x02, "Inquiry Scan disabled/Page Scan enabled" },
|
|
|
|
{0x03, "Inquiry Scan enabled/Page Scan enabled" },
|
|
|
|
{0, NULL }
|
2006-05-10 10:38:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string cmd_authentication_enable_values[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x00, "Authentication disabled" },
|
|
|
|
{0x01, "Authentication enabled for all connection" },
|
|
|
|
{0, NULL }
|
2006-05-10 10:38:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string cmd_input_coding_values[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x0, "Linear" },
|
|
|
|
{0x1, "\xb5-law" },
|
|
|
|
{0x2, "A-law" },
|
|
|
|
{0, NULL }
|
2006-05-10 10:38:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string cmd_input_data_format_values[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x0, "1's complement" },
|
|
|
|
{0x1, "2's complement" },
|
|
|
|
{0x2, "Sign-Magnitude" },
|
|
|
|
{0, NULL }
|
2006-05-10 10:38:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string cmd_input_sample_size_values[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x0, "8 bit (only for Linear PCM)" },
|
|
|
|
{0x1, "16 bit (only for Linear PCM)" },
|
|
|
|
{0, NULL }
|
2006-05-10 10:38:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string cmd_air_coding_format_values[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x0, "CVSD" },
|
|
|
|
{0x1, "\xb5-law" },
|
|
|
|
{0x2, "A-law" },
|
2012-10-22 12:49:04 +00:00
|
|
|
{0x3, "Transparent" },
|
2012-03-12 14:40:09 +00:00
|
|
|
{0, NULL }
|
2006-05-10 10:38:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string cmd_en_disabled[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x00, "disabled" },
|
|
|
|
{0x01, "enabled" },
|
|
|
|
{0, NULL }
|
2006-05-10 10:38:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string cmd_flow_contr_enable[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x00, "Flow control off in direction from Host Controller to Host." },
|
|
|
|
{0x01, "ON - HCI ACL Data Packets / OFF - HCI SCO Data Packets" },
|
|
|
|
{0x02, "OFF - HCI ACL Data Packets / ON - HCI SCO Data Packets" },
|
|
|
|
{0x03, "ON - HCI ACL Data Packets / ON - HCI SCO Data Packets" },
|
|
|
|
{0, NULL }
|
2006-05-10 10:38:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string cmd_power_level_types[] = {
|
2012-10-22 12:49:04 +00:00
|
|
|
{0x00, "Current Tx Power Level" },
|
|
|
|
{0x01, "Maximum Tx Power Level" },
|
2012-03-12 14:40:09 +00:00
|
|
|
{0, NULL }
|
2006-05-10 10:38:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string cmd_loopback_modes[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x00, "No Loopback mode enabled" },
|
|
|
|
{0x01, "Enable Local Loopback" },
|
|
|
|
{0x02, "Enable Remote Loopback" },
|
|
|
|
{0, NULL }
|
2006-05-10 10:38:53 +00:00
|
|
|
};
|
|
|
|
|
2012-10-22 12:49:04 +00:00
|
|
|
static const value_string cmd_encrypt_mode_vals[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{ 0x00, "Encryption Disabled" },
|
|
|
|
{ 0x01, "Encryption only for Point-To-Point Packets" },
|
|
|
|
{ 0x02, "Encryption for Point-To-Point and Broadcast Packets" },
|
|
|
|
{ 0, NULL }
|
2006-05-10 10:38:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string cmd_boolean[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0, "false" },
|
|
|
|
{1, "true" },
|
|
|
|
{0, NULL }
|
2006-05-10 10:38:53 +00:00
|
|
|
};
|
|
|
|
|
2012-10-22 12:49:04 +00:00
|
|
|
const value_string bthci_cmd_page_scan_modes[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0, "Mandatory Page Scan Mode"},
|
|
|
|
{1, "Optional Page Scan Mode I"},
|
|
|
|
{2, "Optional Page Scan Mode II"},
|
|
|
|
{3, "Optional Page Scan Mode III"},
|
|
|
|
{0, NULL }
|
2006-05-10 10:38:53 +00:00
|
|
|
};
|
|
|
|
|
2012-10-22 12:49:04 +00:00
|
|
|
const value_string bthci_cmd_page_scan_repetition_modes[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0, "R0"},
|
|
|
|
{1, "R1"},
|
|
|
|
{2, "R2"},
|
|
|
|
{0, NULL }
|
2006-05-10 10:38:53 +00:00
|
|
|
};
|
|
|
|
|
2012-10-22 12:49:04 +00:00
|
|
|
const value_string bthci_cmd_page_scan_period_modes[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0, "P0"},
|
|
|
|
{1, "P1"},
|
|
|
|
{2, "P2"},
|
|
|
|
{0, NULL }
|
2006-05-10 10:38:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string cmd_role_switch_modes[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0, "Local device will be master, and will not accept a master-slave switch request." },
|
|
|
|
{1, "Local device may be master, or may become slave after accepting a master slave switch." },
|
|
|
|
{0, NULL }
|
2006-05-10 10:38:53 +00:00
|
|
|
};
|
|
|
|
|
2007-09-23 19:40:54 +00:00
|
|
|
static const value_string cmd_rtx_effort[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x00, "No Retransmission" },
|
2012-10-22 12:49:04 +00:00
|
|
|
{0x01, "At least 1 retransmission, optimize for power consumption" },
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x02, "At least 1 retransmission, optimize for link quality" },
|
|
|
|
{0xFF, "Don't Care" },
|
|
|
|
{ 0, NULL }
|
2007-09-23 19:40:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string cmd_scan_types[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x00, "Standard Scan" },
|
|
|
|
{0x01, "Interlaced Scan" },
|
|
|
|
{ 0, NULL }
|
2007-09-23 19:40:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string cmd_inq_modes[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x00, "Standard Results" },
|
|
|
|
{0x01, "Results With RSSI" },
|
|
|
|
{0x02, "Results With RSSI or Extended Results" },
|
|
|
|
{ 0, NULL }
|
2007-09-23 19:40:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string cmd_flush_pkt_type[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x00, "Automatically Flushable Only" },
|
|
|
|
{ 0, NULL }
|
2007-09-23 19:40:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string cmd_which_clock[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x00, "Local" },
|
|
|
|
{0x01, "Piconet" },
|
|
|
|
{ 0, NULL }
|
2007-09-23 19:40:54 +00:00
|
|
|
};
|
|
|
|
|
2012-10-22 12:49:04 +00:00
|
|
|
const value_string bthci_cmd_notification_types[] = {
|
2012-03-12 14:40:09 +00:00
|
|
|
{0x00, "Passkey Entry Started" },
|
|
|
|
{0x01, "Passkey Digit Entered" },
|
|
|
|
{0x02, "Passkey Digit Erased" },
|
|
|
|
{0x03, "Passkey Cleared" },
|
|
|
|
{0x04, "Passkey Entry Completed" },
|
|
|
|
{ 0, NULL }
|
2007-09-23 19:40:54 +00:00
|
|
|
};
|
|
|
|
|
2012-10-22 12:49:04 +00:00
|
|
|
static const value_string bthci_cmd_amp_key_type[] = {
|
|
|
|
{0x03, "Debug Combination Key" },
|
|
|
|
{0x04, "Authenticated Combination Key" },
|
|
|
|
{0x05, "Unauthenticated Combination Key" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
2007-09-23 19:40:54 +00:00
|
|
|
|
2012-10-22 12:49:04 +00:00
|
|
|
static const value_string cmd_flow_spec_servicetype[] = {
|
|
|
|
{ 0x00, "No traffic" },
|
|
|
|
{ 0x01, "Best effort (Default)" },
|
|
|
|
{ 0x02, "Guaranteed" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string cmd_flow_ctrl_mode[] = {
|
|
|
|
{ 0x00, "Packet based" },
|
|
|
|
{ 0x01, "Data Block based" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string cmd_le_advertising_types[] = {
|
|
|
|
{ 0x00, "Connectable Unidirected Advertising" },
|
|
|
|
{ 0x01, "Connectable Directed Advertising" },
|
|
|
|
{ 0x02, "Scannable Unidirected Advertising" },
|
|
|
|
{ 0x03, "Non-Connectable Unidirected Advertising" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string cmd_le_advertising_filter_policy[] = {
|
|
|
|
{ 0x00, "Allow Scan Req from Any, Allow Connect Req from Any" },
|
|
|
|
{ 0x01, "Allow Scan Req from White List Only, Allow Connect Req from Any" },
|
|
|
|
{ 0x02, "Allow Scan Req from Any, Allow Connect Req from White List Only" },
|
|
|
|
{ 0x03, "Allow Scan Req from White List Only, Allow Connect Req from White List Only." },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string cmd_le_scan_types[] = {
|
|
|
|
{ 0x00, "Passive" },
|
|
|
|
{ 0x01, "Active" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string cmd_le_scan_filter_policy[] = {
|
|
|
|
{ 0x00, "Accept all advertisments. Ignore directed advertisements not addresed to this device" },
|
|
|
|
{ 0x01, "Ignore advertisments from devices not in the white list only. Ignore directed advertisements not addresed to this device" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string cmd_init_filter_policy[] = {
|
|
|
|
{ 0x00, "Use Peer Address" },
|
|
|
|
{ 0x01, "Use White List. Ignore Peer Address" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static const value_string cmd_le_test_pkt_payload[] = {
|
|
|
|
{ 0x00, "Pseudo-Random Sequence 9" },
|
|
|
|
{ 0x01, "Pattern Of Alternating Bits '11110000'" },
|
|
|
|
{ 0x02, "Pattern Of Alternating Bits '10101010'" },
|
|
|
|
{ 0x03, "Pseudo-Random Sequence 15" },
|
|
|
|
{ 0x04, "Pattern Of All '1' bits" },
|
|
|
|
{ 0x05, "Pattern Of All '0' bits" },
|
|
|
|
{ 0x06, "Pattern Of Alternating Bits '00001111'" },
|
|
|
|
{ 0x07, "Pattern Of Alternating Bits '0101'" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
static int
|
2007-09-23 19:40:54 +00:00
|
|
|
dissect_bthci_cmd_bd_addr(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree)
|
|
|
|
{
|
2012-03-12 14:40:09 +00:00
|
|
|
guint8 i, bd_addr[6];
|
|
|
|
proto_item *item;
|
2007-09-23 19:40:54 +00:00
|
|
|
|
2012-03-12 14:40:09 +00:00
|
|
|
for(i=6; i; i--)
|
|
|
|
bd_addr[6-i] = tvb_get_guint8(tvb, offset+i-1);
|
2007-09-23 19:40:54 +00:00
|
|
|
|
2012-03-12 14:40:09 +00:00
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_bd_addr, tvb, offset, 6, ENC_NA);
|
|
|
|
proto_item_append_text(item, "%02x%02x:%02x:%02x%02x%02x (%s)",
|
|
|
|
bd_addr[0], bd_addr[1], bd_addr[2], bd_addr[3], bd_addr[4], bd_addr[5],
|
|
|
|
get_ether_name(bd_addr));
|
2009-11-04 12:49:19 +00:00
|
|
|
|
2012-03-12 14:40:09 +00:00
|
|
|
offset+=6;
|
2007-09-23 19:40:54 +00:00
|
|
|
|
2012-03-12 14:40:09 +00:00
|
|
|
return offset;
|
2007-09-23 19:40:54 +00:00
|
|
|
}
|
|
|
|
|
2009-11-04 12:49:19 +00:00
|
|
|
static int
|
2007-09-23 19:40:54 +00:00
|
|
|
dissect_bthci_cmd_cod(int type, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree)
|
|
|
|
{
|
2012-03-12 14:40:09 +00:00
|
|
|
guint8 cod1, cod2;
|
|
|
|
proto_item *item;
|
|
|
|
|
|
|
|
item = proto_tree_add_item(tree, type, tvb, offset, 3, ENC_LITTLE_ENDIAN);
|
|
|
|
|
|
|
|
cod1 = tvb_get_guint8(tvb, offset+1);
|
|
|
|
cod2 = tvb_get_guint8(tvb, offset+2);
|
|
|
|
|
|
|
|
if ((cod2 != 0) || (cod1 & 0x20))
|
|
|
|
{
|
|
|
|
char buf[128];
|
|
|
|
|
|
|
|
buf[0] = '\0';
|
|
|
|
|
|
|
|
proto_item_append_text(item, " (%s - services:", val_to_str_ext_const(cod1 & 0x1f, &bthci_cmd_major_dev_class_vals_ext, "???"));
|
|
|
|
if (cod2 & 0x80) g_strlcat(buf, " Information,", sizeof(buf));
|
|
|
|
if (cod2 & 0x40) g_strlcat(buf, " Telephony,", sizeof(buf));
|
|
|
|
if (cod2 & 0x20) g_strlcat(buf, " Audio,", sizeof(buf));
|
|
|
|
if (cod2 & 0x10) g_strlcat(buf, " Object transfer,", sizeof(buf));
|
|
|
|
if (cod2 & 0x08) g_strlcat(buf, " Capturing,", sizeof(buf));
|
|
|
|
if (cod2 & 0x04) g_strlcat(buf, " Rendering,", sizeof(buf));
|
|
|
|
if (cod2 & 0x02) g_strlcat(buf, " Networking,", sizeof(buf));
|
|
|
|
if (cod2 & 0x01) g_strlcat(buf, " Positioning,", sizeof(buf));
|
|
|
|
if (cod1 & 0x20) g_strlcat(buf, " Limited discoverable mode,", sizeof(buf));
|
|
|
|
|
|
|
|
buf[strlen(buf)-1] = '\0'; /* skip last comma */
|
|
|
|
|
|
|
|
g_strlcat(buf, ")", sizeof(buf));
|
|
|
|
proto_item_append_text(item, "%s", buf);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
proto_item_append_text(item, " (%s - no major services)", val_to_str_ext_const(cod1 & 0x1f, &bthci_cmd_major_dev_class_vals_ext, "???"));
|
|
|
|
}
|
|
|
|
|
|
|
|
return offset+3;
|
2007-09-23 19:40:54 +00:00
|
|
|
}
|
|
|
|
|
2012-10-22 12:49:04 +00:00
|
|
|
static int
|
|
|
|
dissect_bthci_eir_ad_data(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, guint8 size)
|
2007-09-23 19:40:54 +00:00
|
|
|
{
|
2012-12-03 14:44:12 +00:00
|
|
|
guint8 length, type, data_size = size;
|
|
|
|
guint16 i, j;
|
2012-10-22 12:49:04 +00:00
|
|
|
proto_item *item, *ti_data = NULL;
|
|
|
|
proto_tree *ti_data_subtree = NULL;
|
2012-03-12 14:40:09 +00:00
|
|
|
|
|
|
|
if (tree) {
|
2012-10-22 12:49:04 +00:00
|
|
|
ti_data=proto_tree_add_text(tree, tvb, offset, data_size, (size==240)?"Extended Inquiry Response Data":"Advertising Data");
|
|
|
|
ti_data_subtree=proto_item_add_subtree(ti_data, ett_eir_subtree);
|
2012-03-12 14:40:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
i=0;
|
2012-10-22 12:49:04 +00:00
|
|
|
while(i<data_size){
|
2012-03-12 14:40:09 +00:00
|
|
|
length = tvb_get_guint8(tvb, offset+i);
|
|
|
|
if (length != 0) {
|
|
|
|
|
2012-12-02 15:21:53 +00:00
|
|
|
proto_item *ti_data_struct;
|
|
|
|
proto_tree *ti_data_struct_subtree;
|
2012-03-12 14:40:09 +00:00
|
|
|
|
2012-10-22 12:49:04 +00:00
|
|
|
ti_data_struct = proto_tree_add_text(ti_data_subtree, tvb, offset+i, length+1, "%s", "");
|
|
|
|
ti_data_struct_subtree = proto_item_add_subtree(ti_data_struct, ett_eir_struct_subtree);
|
2012-03-12 14:40:09 +00:00
|
|
|
|
|
|
|
type = tvb_get_guint8(tvb, offset+i+1);
|
|
|
|
|
2012-10-22 12:49:04 +00:00
|
|
|
proto_item_append_text(ti_data_struct,"%s", val_to_str(type, bthci_cmd_eir_data_type_vals, "Unknown"));
|
2012-03-12 14:40:09 +00:00
|
|
|
|
2012-10-22 12:49:04 +00:00
|
|
|
proto_tree_add_item(ti_data_struct_subtree,hf_bthci_cmd_eir_struct_length, tvb, offset+i, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(ti_data_struct_subtree,hf_bthci_cmd_eir_struct_type, tvb, offset+i+1, 1, ENC_LITTLE_ENDIAN);
|
2012-03-12 14:40:09 +00:00
|
|
|
|
|
|
|
switch (type) {
|
2012-10-22 12:49:04 +00:00
|
|
|
case 0x01: /* flags */
|
|
|
|
if(length-1 > 0)
|
|
|
|
{
|
|
|
|
proto_tree_add_item(ti_data_struct_subtree, hf_bthci_cmd_flags_limited_disc_mode, tvb, offset+i+2, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(ti_data_struct_subtree, hf_bthci_cmd_flags_general_disc_mode, tvb, offset+i+2, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(ti_data_struct_subtree, hf_bthci_cmd_flags_bredr_not_support, tvb, offset+i+2, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(ti_data_struct_subtree, hf_bthci_cmd_flags_le_bredr_support_ctrl, tvb, offset+i+2, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(ti_data_struct_subtree, hf_bthci_cmd_flags_le_bredr_support_host, tvb, offset+i+2, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
}
|
|
|
|
break;
|
2012-03-12 14:40:09 +00:00
|
|
|
case 0x02: /* 16-bit Service Class UUIDs, incomplete list */
|
|
|
|
case 0x03: /* 16-bit Service Class UUIDs, complete list */
|
2012-10-22 12:49:04 +00:00
|
|
|
case 0x14: /* 16-bit Service Solicitation UUIDs */
|
2012-03-12 14:40:09 +00:00
|
|
|
j=0;
|
|
|
|
while(j<(length-1))
|
|
|
|
{
|
2012-10-22 12:49:04 +00:00
|
|
|
proto_tree_add_item(ti_data_struct_subtree, hf_bthci_cmd_sc_uuid16, tvb, offset+i+j+2, 2, ENC_LITTLE_ENDIAN);
|
2012-03-12 14:40:09 +00:00
|
|
|
j+=2;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 0x04: /* 32-bit Service Class UUIDs, incomplete list */
|
|
|
|
case 0x05: /* 32-bit Service Class UUIDs, complete list */
|
|
|
|
j=0;
|
|
|
|
while(j<(length-1))
|
|
|
|
{
|
2012-10-22 12:49:04 +00:00
|
|
|
proto_tree_add_item(ti_data_struct_subtree, hf_bthci_cmd_sc_uuid32, tvb, offset+i+j+2, 4, ENC_LITTLE_ENDIAN);
|
2012-03-12 14:40:09 +00:00
|
|
|
j+=4;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 0x06: /* 128-bit Service Class UUIDs, incomplete list */
|
|
|
|
case 0x07: /* 128-bit Service Class UUIDs, complete list */
|
2012-10-22 12:49:04 +00:00
|
|
|
case 0x15: /* 128-bit Service Solicitation UUIDs */
|
2012-03-12 14:40:09 +00:00
|
|
|
j=0;
|
|
|
|
while(j<(length-1))
|
|
|
|
{
|
2012-10-22 12:49:04 +00:00
|
|
|
proto_tree_add_item(ti_data_struct_subtree, hf_bthci_cmd_sc_uuid128, tvb, offset+i+j+2, 16, ENC_NA);
|
2012-03-12 14:40:09 +00:00
|
|
|
j+=16;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 0x08: /* Device Name, shortened */
|
|
|
|
case 0x09: /* Device Name, full */
|
2012-10-22 12:49:04 +00:00
|
|
|
proto_tree_add_item(ti_data_struct_subtree, hf_bthci_cmd_device_name, tvb, offset+i+2, length-1, ENC_ASCII|ENC_NA);
|
|
|
|
proto_item_append_text(ti_data_struct,": %s", tvb_format_text(tvb,offset+i+2,length-1));
|
2012-03-12 14:40:09 +00:00
|
|
|
break;
|
|
|
|
case 0x0A: /* Tx Power Level */
|
2012-10-22 12:49:04 +00:00
|
|
|
proto_tree_add_item(ti_data_struct_subtree, hf_bthci_cmd_tx_power, tvb, offset+i+2, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
break;
|
|
|
|
case 0x0D: /* Class of Device */
|
|
|
|
dissect_bthci_cmd_cod(hf_bthci_cmd_class_of_device, tvb, offset+i+2, pinfo, ti_data_struct_subtree);
|
|
|
|
break;
|
|
|
|
case 0x0E: /* Simple Pairing Hash C */
|
|
|
|
proto_tree_add_item(ti_data_struct_subtree, hf_bthci_cmd_hash_c, tvb, offset+i+2, 16, ENC_NA);
|
|
|
|
break;
|
|
|
|
case 0x0F: /* Simple Pairing Randomizer R */
|
|
|
|
proto_tree_add_item(ti_data_struct_subtree, hf_bthci_cmd_randomizer_r, tvb, offset+i+2, 16, ENC_NA);
|
|
|
|
break;
|
|
|
|
case 0x11: /* Security Manager OOB Flags */
|
|
|
|
proto_tree_add_item(ti_data_struct_subtree, hf_bthci_cmd_flags_le_oob_data_present, tvb, offset+i+2, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(ti_data_struct_subtree, hf_bthci_cmd_flags_le_oob_le_supported_host, tvb, offset+i+2, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(ti_data_struct_subtree, hf_bthci_cmd_flags_le_oob_le_bredr_support, tvb, offset+i+2, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(ti_data_struct_subtree, hf_bthci_cmd_flags_le_oob_address_type, tvb, offset+i+2, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
break;
|
|
|
|
case 0x12: /* Slave Connection Interval Range */
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_le_con_interval_min, tvb, offset+i+2, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_item_append_text(item, " (%g msec)", tvb_get_letohs(tvb, offset+i+2)*1.25);
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_le_con_interval_max, tvb, offset+i+4, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_item_append_text(item, " (%g msec)", tvb_get_letohs(tvb, offset+i+4)*1.25);
|
|
|
|
proto_item_append_text(ti_data_struct,": %g - %g msec", tvb_get_letohs(tvb, offset+i+2)*1.25, tvb_get_letohs(tvb, offset+i+4)*1.25);
|
|
|
|
break;
|
|
|
|
case 0x16: /* Service Data */
|
|
|
|
proto_tree_add_item(ti_data_struct_subtree, hf_bthci_cmd_sc_uuid16, tvb, offset+i+2, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
break;
|
|
|
|
case 0x17: /* Public Target Address */
|
|
|
|
case 0x18: /* Random Target Address */
|
|
|
|
{
|
|
|
|
j=0;
|
|
|
|
while(j<(length-1))
|
|
|
|
{
|
|
|
|
dissect_bthci_cmd_bd_addr(tvb, offset+i+j+2, pinfo, ti_data_struct_subtree);
|
|
|
|
j+=6;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case 0x19: /* Appearance */
|
|
|
|
{
|
|
|
|
guint16 appearance = tvb_get_letohs(tvb, offset+i+2);
|
|
|
|
proto_tree_add_item(ti_data_struct_subtree, hf_bthci_cmd_appearance, tvb, offset+i+2, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_item_append_text(ti_data_struct,": %s", val_to_str(appearance, bthci_cmd_appearance_vals, "Unknown"));
|
2012-03-21 22:18:15 +00:00
|
|
|
break;
|
2012-10-22 12:49:04 +00:00
|
|
|
}
|
2012-03-12 14:40:09 +00:00
|
|
|
default:
|
2012-10-22 12:49:04 +00:00
|
|
|
proto_tree_add_item(ti_data_struct_subtree, hf_bthci_cmd_eir_data, tvb, offset+i+2, length-1, ENC_LITTLE_ENDIAN);
|
2012-03-12 14:40:09 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
i += length+1;
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-10-22 12:49:04 +00:00
|
|
|
return offset+data_size;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int
|
|
|
|
dissect_bthci_cmd_flow_spec(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, gboolean tx)
|
|
|
|
{
|
2012-12-02 15:21:53 +00:00
|
|
|
proto_item *ti_flow_spec;
|
|
|
|
proto_tree *ti_flow_spec_subtree;
|
2012-10-22 12:49:04 +00:00
|
|
|
|
|
|
|
ti_flow_spec = proto_tree_add_none_format(tree, hf_bthci_cmd_flow_spec, tvb, offset, 16, tx?"Tx Flow Spec ":"Rx Flow Spec");
|
|
|
|
ti_flow_spec_subtree = proto_item_add_subtree(ti_flow_spec, ett_flow_spec_subtree);
|
|
|
|
|
|
|
|
proto_tree_add_item(ti_flow_spec_subtree, hf_bthci_cmd_flow_spec_identifier, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
proto_tree_add_item(ti_flow_spec_subtree, hf_bthci_cmd_flow_spec_service_type, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
proto_tree_add_item(ti_flow_spec_subtree, hf_bthci_cmd_flow_spec_sdu_size, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
proto_tree_add_item(ti_flow_spec_subtree, hf_bthci_cmd_flow_spec_sdu_arrival_time, tvb, offset, 4, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=4;
|
|
|
|
proto_tree_add_item(ti_flow_spec_subtree, hf_bthci_cmd_flow_spec_access_latency, tvb, offset, 4, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=4;
|
|
|
|
proto_tree_add_item(ti_flow_spec_subtree, hf_bthci_cmd_flush_to_us, tvb, offset, 4, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=4;
|
|
|
|
|
|
|
|
return offset;
|
2007-09-23 19:40:54 +00:00
|
|
|
}
|
2006-05-10 10:38:53 +00:00
|
|
|
|
2011-10-19 21:55:08 +00:00
|
|
|
static int
|
2006-05-10 10:38:53 +00:00
|
|
|
dissect_link_control_cmd(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, guint16 cmd_ocf)
|
|
|
|
{
|
2012-03-12 14:40:09 +00:00
|
|
|
proto_item *item;
|
|
|
|
guint32 clock_value;
|
|
|
|
|
|
|
|
switch (cmd_ocf) {
|
|
|
|
case 0x0001: /* Inquiry */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_lap, tvb, offset, 3, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=3;
|
2012-10-22 12:49:04 +00:00
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_inq_length, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_item_append_text(item, " (%g sec)", 1.28*tvb_get_guint8(tvb, offset));
|
2012-03-12 14:40:09 +00:00
|
|
|
offset++;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_num_responses, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0002: /* Inquiry Cancel */
|
|
|
|
/* no parameters */
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0003: /* Periodic Inquiry Mode */
|
2012-10-22 12:49:04 +00:00
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_max_period_length, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_item_append_text(item, " (%g sec)", 1.28*tvb_get_letohs(tvb, offset));
|
2012-03-12 14:40:09 +00:00
|
|
|
offset+=2;
|
2012-10-22 12:49:04 +00:00
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_min_period_length, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_item_append_text(item, " (%g sec)", 1.28*tvb_get_letohs(tvb, offset));
|
2012-03-12 14:40:09 +00:00
|
|
|
offset+=2;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_lap, tvb, offset, 3, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=3;
|
2012-10-22 12:49:04 +00:00
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_inq_length, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_item_append_text(item, " (%g sec)", 1.28*tvb_get_guint8(tvb, offset));
|
2012-03-12 14:40:09 +00:00
|
|
|
offset++;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_num_responses, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0004: /* Exit Periodic Inquiry Mode */
|
|
|
|
/* no parameters */
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0005: /* Create Connection */
|
|
|
|
offset = dissect_bthci_cmd_bd_addr(tvb, offset, pinfo, tree);
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_packet_type_2dh1, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_packet_type_3dh1, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_packet_type_dm1, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_packet_type_dh1, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_packet_type_2dh3, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_packet_type_3dh3, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_packet_type_dm3, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_packet_type_dh3, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_packet_type_2dh5, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_packet_type_3dh5, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_packet_type_dm5, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_packet_type_dh5, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_page_scan_repetition_mode, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_page_scan_mode, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_clock_offset, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
clock_value = tvb_get_letohs(tvb, 13) & 32767; /* only bit0-14 are valid */
|
2012-10-22 12:49:04 +00:00
|
|
|
proto_item_append_text(item, " (%g msec)", 1.25*clock_value);
|
2012-03-12 14:40:09 +00:00
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_clock_offset_valid , tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_allow_role_switch, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0006: /* Disconnect */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_connection_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_reason, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0007: /* Add SCO Connection */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_connection_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_packet_type_hv1, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_packet_type_hv2, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_packet_type_hv3, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0008: /* Create Connection Cancel Request */
|
|
|
|
offset = dissect_bthci_cmd_bd_addr(tvb, offset, pinfo, tree);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0009: /* Accept Connection Request */
|
|
|
|
offset = dissect_bthci_cmd_bd_addr(tvb, offset, pinfo, tree);
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_role, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x000a: /* Reject Connection Request */
|
|
|
|
offset = dissect_bthci_cmd_bd_addr(tvb, offset, pinfo, tree);
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_reason, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x000b: /* Link Key Request Reply */
|
|
|
|
offset = dissect_bthci_cmd_bd_addr(tvb, offset, pinfo, tree);
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_link_key, tvb, offset, 16, ENC_NA);
|
|
|
|
offset+=16;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x000c: /* Link Key Request Negative Reply */
|
|
|
|
offset = dissect_bthci_cmd_bd_addr(tvb, offset, pinfo, tree);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x000d: /* PIN Code Request Reply */
|
|
|
|
offset = dissect_bthci_cmd_bd_addr(tvb, offset, pinfo, tree);
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_pin_code_length ,tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_pin_code ,tvb, offset, 16, ENC_ASCII|ENC_NA);
|
|
|
|
offset+=16;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x000e: /* PIN Code Request Negative Reply */
|
|
|
|
offset = dissect_bthci_cmd_bd_addr(tvb, offset, pinfo, tree);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x000f: /* Change Connection Packet Type */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_connection_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_packet_type_2dh1, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_packet_type_3dh1, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_packet_type_dm1, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_packet_type_dh1, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_packet_type_2dh3, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_packet_type_3dh3, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_packet_type_dm3, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_packet_type_dh3, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_packet_type_2dh5, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_packet_type_3dh5, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_packet_type_dm5, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_packet_type_dh5, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0011: /* Authentication Request */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_connection_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0013: /* Set Connection Encryption */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_connection_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_encryption_enable, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0017: /* Master Link Key */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_key_flag, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0019: /* Remote Name Request */
|
|
|
|
offset = dissect_bthci_cmd_bd_addr(tvb, offset, pinfo, tree);
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_page_scan_repetition_mode, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_page_scan_mode, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_clock_offset, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
clock_value = tvb_get_letohs(tvb, offset) & 32767; /* only bit0-14 are valid */
|
2012-10-22 12:49:04 +00:00
|
|
|
proto_item_append_text(item, " (%g msec)", 1.25*clock_value);
|
2012-03-12 14:40:09 +00:00
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_clock_offset_valid , tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x001a: /* Remote Name Request Cancel */
|
|
|
|
offset = dissect_bthci_cmd_bd_addr(tvb, offset, pinfo, tree);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x001c: /* Read Remote Extended Features */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_connection_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_page_number, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0028: /* Setup Synchronous Connection */
|
|
|
|
case 0x0029: /* Accept Synchronous Connection Request */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_connection_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_transmit_bandwidth, tvb, offset, 4, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=4;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_receive_bandwidth, tvb, offset, 4, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=4;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_max_latency_ms, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_input_coding, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_input_data_format, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_input_sample_size, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_linear_pcm_bit_pos, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_air_coding_format, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_retransmission_effort, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_sco_packet_type_hv1, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_sco_packet_type_hv2, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_sco_packet_type_hv3, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_sco_packet_type_ev3, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_sco_packet_type_ev4, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_sco_packet_type_ev5, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_sco_packet_type_2ev3, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_sco_packet_type_3ev3, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_sco_packet_type_2ev5, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_sco_packet_type_3ev5, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x002a: /* Reject Synchronous Connection Request */
|
|
|
|
offset = dissect_bthci_cmd_bd_addr(tvb, offset, pinfo, tree);
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_reason, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0015: /* Change Connection Link Key */
|
|
|
|
case 0x001b: /* Read Remote Supported Features */
|
|
|
|
case 0x001d: /* Read Remote Version Information */
|
|
|
|
case 0x001f: /* Read Clock Offset*/
|
|
|
|
case 0x0020: /* Read LMP Handle */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_connection_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x002b: /* IO Capability Response */
|
|
|
|
offset = dissect_bthci_cmd_bd_addr(tvb, offset, pinfo, tree);
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_io_capability, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_oob_data_present, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_auth_requirements, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
2012-10-22 12:49:04 +00:00
|
|
|
case 0x0034: /* IO Capability Request Negative Reply */
|
|
|
|
offset = dissect_bthci_cmd_bd_addr(tvb, offset, pinfo, tree);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_reason, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
2012-03-12 14:40:09 +00:00
|
|
|
case 0x002c: /* User Confirmation Request Reply */
|
|
|
|
case 0x002d: /* User Confirmation Request Negative Reply */
|
|
|
|
case 0x002f: /* User Passkey Request Negative Reply */
|
|
|
|
case 0x0033: /* Remote OOB Data Request Negative Reply */
|
|
|
|
offset = dissect_bthci_cmd_bd_addr(tvb, offset, pinfo, tree);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x002e: /* User Passkey Request Reply */
|
|
|
|
offset = dissect_bthci_cmd_bd_addr(tvb, offset, pinfo, tree);
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_passkey, tvb, offset, 4, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=4;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0030: /* Remote OOB Data Request Reply */
|
|
|
|
offset = dissect_bthci_cmd_bd_addr(tvb, offset, pinfo, tree);
|
|
|
|
|
2012-10-22 12:49:04 +00:00
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_hash_c, tvb, offset, 16, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=16;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_randomizer_r, tvb, offset, 16, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=16;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0035: /* Create Physical Link */
|
|
|
|
case 0x0036: /* Accept Physical Link */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_physical_link_handle, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_dedicated_amp_key_length, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_dedicated_amp_key_type, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_dedicated_amp_key, tvb, offset, -1, ENC_NA);
|
|
|
|
offset+=tvb_length_remaining(tvb, offset);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0037: /* Disconnect Physical Link */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_physical_link_handle, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_reason, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0038: /* Create Logical Link */
|
|
|
|
case 0x0039: /* Accept Logical Link */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_physical_link_handle, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
offset = dissect_bthci_cmd_flow_spec(tvb, offset, pinfo, tree, TRUE);
|
|
|
|
offset = dissect_bthci_cmd_flow_spec(tvb, offset, pinfo, tree, FALSE);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x003a: /* Disconnect Logical Link */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_logical_link_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
2012-03-12 14:40:09 +00:00
|
|
|
offset+=2;
|
|
|
|
break;
|
|
|
|
|
2012-10-22 12:49:04 +00:00
|
|
|
case 0x003b: /* Logical Link Cancel */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_physical_link_handle, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_flow_spec_identifier, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x003c: /* Flow Spec Modify */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_logical_link_handle, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
offset = dissect_bthci_cmd_flow_spec(tvb, offset, pinfo, tree, TRUE);
|
|
|
|
offset = dissect_bthci_cmd_flow_spec(tvb, offset, pinfo, tree, FALSE);
|
|
|
|
break;
|
|
|
|
|
2012-03-12 14:40:09 +00:00
|
|
|
default:
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_params, tvb, offset, -1, ENC_NA);
|
|
|
|
offset+=tvb_length_remaining(tvb, offset);
|
|
|
|
break;
|
|
|
|
}
|
2012-10-22 12:49:04 +00:00
|
|
|
return offset;
|
2006-05-10 10:38:53 +00:00
|
|
|
}
|
|
|
|
|
2011-10-19 21:55:08 +00:00
|
|
|
static int
|
2006-05-10 10:38:53 +00:00
|
|
|
dissect_link_policy_cmd(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, guint16 cmd_ocf)
|
|
|
|
{
|
2012-03-12 14:40:09 +00:00
|
|
|
proto_item *item;
|
|
|
|
guint16 timeout;
|
|
|
|
|
|
|
|
switch (cmd_ocf) {
|
|
|
|
|
|
|
|
case 0x0001: /* Hold Mode */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_connection_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_max_interval_hold, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
timeout = tvb_get_letohs(tvb, offset);
|
|
|
|
proto_item_append_text(item, " slots (%g msec)", timeout*0.625);
|
|
|
|
offset+=2;
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_min_interval_hold, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
timeout = tvb_get_letohs(tvb, offset);
|
|
|
|
proto_item_append_text(item, " slots (%g msec)", timeout*0.625);
|
|
|
|
offset+=2;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0003: /* sniff mode */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_connection_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_max_interval_sniff, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_item_append_text(item, " slots (%g msec)", tvb_get_letohs(tvb, offset)*0.625);
|
|
|
|
offset+=2;
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_min_interval_sniff, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_item_append_text(item, " slots (%g msec)", tvb_get_letohs(tvb, offset)*0.625);
|
|
|
|
offset+=2;
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_sniff_attempt, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
timeout = tvb_get_letohs(tvb, offset);
|
|
|
|
if (timeout>0) {
|
|
|
|
proto_item_append_text(item, " (%g msec)", (2*timeout-1)*0.625);
|
|
|
|
} else {
|
|
|
|
proto_item_append_text(item, " (0 msec)");
|
|
|
|
}
|
|
|
|
offset+=2;
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_timeout, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_item_append_text(item, " slots (%g msec)", tvb_get_letohs(tvb, offset)*1.25);
|
|
|
|
offset+=2;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0005: /* Park Mode */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_connection_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_max_interval_beacon, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
timeout = tvb_get_letohs(tvb, offset);
|
|
|
|
proto_item_append_text(item, " slots (%g msec)", timeout*0.625);
|
|
|
|
offset+=2;
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_min_interval_beacon, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
timeout = tvb_get_letohs(tvb, offset);
|
|
|
|
proto_item_append_text(item, " slots (%g msec)", timeout*0.625);
|
|
|
|
offset+=2;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0007: /* QoS Setup */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_connection_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_flags, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_service_type, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_token_rate, tvb, offset, 4, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=4;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_peak_bandwidth, tvb, offset, 4, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=4;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_latency, tvb, offset, 4, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=4;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_delay_variation, tvb, offset, 4, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=4;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x000b: /* Switch Role */
|
|
|
|
offset = dissect_bthci_cmd_bd_addr(tvb, offset, pinfo, tree);
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_role, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0004: /* Exit Sniff Mode */
|
|
|
|
case 0x0006: /* Exit Park Mode */
|
|
|
|
case 0x0009: /* Role Discovery */
|
|
|
|
case 0x000c: /* Read Link Policy Settings */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_connection_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x000d: /* Write Link Policy Settings */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_connection_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
2012-10-22 12:49:04 +00:00
|
|
|
/* deliberately fall through */
|
|
|
|
case 0x000f: /* Write Default Link Policy Settings */
|
2012-03-12 14:40:09 +00:00
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_link_policy_setting_switch, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_link_policy_setting_hold , tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_link_policy_setting_sniff , tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_link_policy_setting_park , tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0010: /* Flow Specification */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_connection_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_flags, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_service_type, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_token_rate, tvb, offset, 4, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=4;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_token_bucket_size, tvb, offset, 4, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=4;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_peak_bandwidth, tvb, offset, 4, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=4;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_latency, tvb, offset, 4, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=4;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0011: /* Sniff Subrating */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_connection_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_max_latency, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_item_append_text(item, " slots (%g msec)", tvb_get_letohs(tvb, offset)*0.625);
|
|
|
|
offset+=2;
|
|
|
|
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_min_remote_timeout, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_item_append_text(item, " slots (%g msec)", tvb_get_letohs(tvb, offset)*0.625);
|
|
|
|
offset+=2;
|
|
|
|
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_min_local_timeout, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_item_append_text(item, " slots (%g msec)", tvb_get_letohs(tvb, offset)*0.625);
|
|
|
|
offset+=2;
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_params, tvb, offset, -1, ENC_NA);
|
|
|
|
offset+=tvb_length_remaining(tvb, offset);
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
2011-10-19 21:55:08 +00:00
|
|
|
return offset;
|
2006-05-10 10:38:53 +00:00
|
|
|
}
|
|
|
|
|
2011-10-19 21:55:08 +00:00
|
|
|
static int
|
2009-11-04 12:49:19 +00:00
|
|
|
dissect_host_controller_baseband_cmd(tvbuff_t *tvb, int offset, packet_info *pinfo _U_,
|
2012-03-12 14:40:09 +00:00
|
|
|
proto_tree *tree, guint16 cmd_ocf)
|
2006-05-10 10:38:53 +00:00
|
|
|
{
|
2012-03-12 14:40:09 +00:00
|
|
|
proto_item *item;
|
|
|
|
guint16 timeout;
|
|
|
|
guint8 filter_type, filter_condition_type, num8;
|
|
|
|
int i;
|
|
|
|
|
|
|
|
switch (cmd_ocf) {
|
|
|
|
|
|
|
|
case 0x0001: /* Set Event Mask */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_00, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_01, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_02, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_03, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_04, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_05, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_06, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_07, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_10, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_11, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_12, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_13, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_14, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_17, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_20, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_21, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_23, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_24, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_25, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_26, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_27, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_30, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_31, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_32, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_33, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_34, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_35, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_36, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_37, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_40, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_41, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_42, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_53, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_54, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_55, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_56, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_57, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_60, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_61, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_62, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_63, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_64, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_65, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_67, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_70, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_72, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask_73, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0005: /* Set Event Filter */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_filter_type, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
filter_type = tvb_get_guint8(tvb, 3);
|
|
|
|
offset++;
|
|
|
|
switch (filter_type) {
|
|
|
|
|
|
|
|
case 0x01: /* Inquiry Result Filter */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_inquiry_result_filter_condition_type,
|
|
|
|
tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
filter_condition_type = tvb_get_guint8(tvb, offset);
|
|
|
|
offset++;
|
|
|
|
switch (filter_condition_type) {
|
|
|
|
case 0x01:
|
|
|
|
offset=dissect_bthci_cmd_cod(hf_bthci_cmd_class_of_device, tvb, offset, pinfo, tree);
|
|
|
|
offset=dissect_bthci_cmd_cod(hf_bthci_cmd_class_of_device_mask, tvb, offset, pinfo, tree);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x02:
|
|
|
|
offset = dissect_bthci_cmd_bd_addr(tvb, offset, pinfo, tree);
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x02: /* Connection Setup Filter */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_connection_setup_filter_condition_type,
|
|
|
|
tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
filter_condition_type = tvb_get_guint8(tvb, offset);
|
|
|
|
offset++;
|
|
|
|
switch (filter_condition_type) {
|
|
|
|
case 0x00:
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_auto_acc_flag, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x01:
|
|
|
|
offset=dissect_bthci_cmd_cod(hf_bthci_cmd_class_of_device, tvb, offset, pinfo, tree);
|
|
|
|
offset=dissect_bthci_cmd_cod(hf_bthci_cmd_class_of_device_mask, tvb, offset, pinfo, tree);
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_auto_acc_flag, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x02:
|
|
|
|
offset = dissect_bthci_cmd_bd_addr(tvb, offset, pinfo, tree);
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_auto_acc_flag, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
case 0x000a: /* Write PIN Type */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_pin_type, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x000d: /* Read Stored Link Key */
|
|
|
|
offset = dissect_bthci_cmd_bd_addr(tvb, offset, pinfo, tree);
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_read_all_flag, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0011: /* Write Stored Link Key */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_num_link_keys, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
num8 = tvb_get_guint8(tvb, offset);
|
|
|
|
offset++;
|
|
|
|
for (i=0; i<num8; i++) {
|
|
|
|
dissect_bthci_cmd_bd_addr(tvb, offset+(i*22), pinfo, tree);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_link_key, tvb, offset+6+(i*22), 16, ENC_NA);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0012: /* Delete Stored Link Key */
|
|
|
|
offset = dissect_bthci_cmd_bd_addr(tvb, offset, pinfo, tree);
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_delete_all_flag, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0013: /* Change Local Name */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_device_name,
|
|
|
|
tvb, offset, 248, ENC_ASCII|ENC_NA);
|
|
|
|
offset+=248;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0016: /* Write Connection Accept Timeout */
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_timeout, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
timeout = tvb_get_letohs(tvb, offset);
|
|
|
|
proto_item_append_text(item, " slots (%g msec)", timeout*0.625);
|
|
|
|
offset+=2;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0018: /* Write Page Timeout */
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_timeout, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
timeout = tvb_get_letohs(tvb, offset);
|
|
|
|
if (timeout > 0) {
|
|
|
|
proto_item_append_text(item, " slots (%g msec)", timeout*0.625);
|
|
|
|
} else {
|
|
|
|
proto_item_append_text(item, " Illegal Page Timeout");
|
|
|
|
}
|
|
|
|
offset+=2;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x001a: /* Write Scan Enable */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_scan_enable,
|
|
|
|
tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0020: /* Write Authentication Enable */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_authentication_enable,
|
|
|
|
tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0022: /* Write Encryption Mode */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_encrypt_mode, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0024: /* Write Class of Device */
|
|
|
|
offset=dissect_bthci_cmd_cod(hf_bthci_cmd_class_of_device, tvb, offset, pinfo, tree);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0026: /* Write Voice Setting */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_input_coding,
|
|
|
|
tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_input_data_format,
|
|
|
|
tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_input_sample_size,
|
|
|
|
tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_linear_pcm_bit_pos,
|
|
|
|
tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_air_coding_format,
|
|
|
|
tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0028: /* Write Automatic Flush Timeout */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_connection_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_timeout, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
timeout = tvb_get_letohs(tvb, offset);
|
|
|
|
if (timeout>0) {
|
|
|
|
proto_item_append_text(item, " slots (%g msec)", timeout*0.625);
|
|
|
|
} else {
|
|
|
|
proto_item_append_text(item, " (= No Automatic Flush )");
|
|
|
|
}
|
|
|
|
offset+=2;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x002a: /* Write Num of Broadcast Retransmissions */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_num_broadcast_retransmissions,
|
|
|
|
tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x002c: /* Write Hold Mode Activity */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_hold_mode_act_page,
|
|
|
|
tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_hold_mode_act_inquiry,
|
|
|
|
tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_hold_mode_act_periodic,
|
|
|
|
tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x002d: /* Read Transmit Power Level */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_connection_handle,
|
|
|
|
tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
2012-10-22 12:49:04 +00:00
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_tx_power_level_type,
|
2012-03-12 14:40:09 +00:00
|
|
|
tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x002f: /* Write SCO Flow Control Enable */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_sco_flow_control,
|
|
|
|
tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0031: /* Set Host Controller To Host Flow Control */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_flow_contr_enable,
|
|
|
|
tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0033: /* Host Buffer Size */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_host_data_packet_length_acl,
|
|
|
|
tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_host_data_packet_length_sco,
|
|
|
|
tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_host_total_num_acl_data_packets,
|
|
|
|
tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_host_total_num_sco_data_packets,
|
|
|
|
tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0035: /* Host Number Of Completed Packets */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_num_handles,
|
|
|
|
tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
num8 = tvb_get_guint8(tvb, offset);
|
|
|
|
offset++;
|
|
|
|
for (i=0; i<num8; i++) {
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_connection_handle,
|
|
|
|
tvb, offset+(i*4), 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_num_compl_packets,
|
|
|
|
tvb, offset+2+(i*4), 2, ENC_LITTLE_ENDIAN);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0037: /* Write Link Supervision Timeout */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_connection_handle,
|
|
|
|
tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_timeout,
|
|
|
|
tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
timeout = tvb_get_letohs(tvb, offset);
|
|
|
|
if (timeout>0) {
|
|
|
|
proto_item_append_text(item, " slots (%g msec)", timeout*0.625);
|
|
|
|
} else {
|
|
|
|
proto_item_append_text(item, " (= No Link Supervision Timeout)");
|
|
|
|
}
|
|
|
|
offset+=2;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x003a: /* Write Current IAC LAP */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_num_curr_iac, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
num8 = tvb_get_guint8(tvb, offset);
|
|
|
|
offset++;
|
|
|
|
for (i=0; i<num8; i++) {
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_iac_lap, tvb, offset+(i*3), 3, ENC_LITTLE_ENDIAN);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x003c: /* Write Page Scan Period Mode */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_page_scan_period_mode,
|
|
|
|
tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x003e: /* Write Page Scan Mode */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_page_scan_mode,
|
|
|
|
tvb, 3, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x003f: /* Set AFH Host Channel Classification */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_afh_ch_classification, tvb, offset, 10, ENC_NA);
|
|
|
|
offset+=10;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0008: /* Flush */
|
|
|
|
case 0x0027: /* Read Automatic Flush Timeout */
|
|
|
|
case 0x0036: /* Read Link Supervision Timeout */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_connection_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x001c: /* Write Page Scan Activity */
|
|
|
|
case 0x001e: /* Write Inquiry Scan Activity */
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_interval, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_item_append_text(item, " slots (%g msec)", tvb_get_letohs(tvb, offset)*0.625);
|
|
|
|
offset+=2;
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_window, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_item_append_text(item, " slots (%g msec)", tvb_get_letohs(tvb, offset)*0.625);
|
|
|
|
offset+=2;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
case 0x0043: /* Write Inquiry Scan Type */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_scan_type, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0045: /* Write Inquiry Mode */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_inq_mode, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0047: /* Write Page Scan Type */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_scan_type, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0049: /* Write AFH Channel Assessment Mode */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_afh_ch_assessment_mode, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0052: /* Write Extended Inquiry Response */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_fec_required, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
2012-10-22 12:49:04 +00:00
|
|
|
offset=dissect_bthci_eir_ad_data(tvb, offset, pinfo, tree, 240);
|
2012-03-12 14:40:09 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0053: /* Refresh Encryption Key */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_connection_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0056: /* Write Simple Pairing Mode */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_simple_pairing_mode, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0059: /* Write Inquiry Tx Response Power Level */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_tx_power, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x005b: /* Write Default Erroneous Data Reporting */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_err_data_reporting, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x005f: /* Enhanced Flush */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_connection_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_flush_packet_type, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0060: /* Send Keypress Notification */
|
|
|
|
offset = dissect_bthci_cmd_bd_addr(tvb, offset, pinfo, tree);
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_notification_type, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
2012-10-22 12:49:04 +00:00
|
|
|
case 0x0062: /* Write Logical Link Accept Timeout */
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_timeout, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_item_append_text(item, " slots (%g msec)", tvb_get_letohs(tvb, offset)*0.625);
|
|
|
|
offset+=2;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0063: /* Set Event Mask Page 2 */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask2_00, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask2_01, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask2_02, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask2_03, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask2_04, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask2_05, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask2_06, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask2_07, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask2_10, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask2_11, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask2_12, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask2_13, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask2_14, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_evt_mask2_15, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=7;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0065: /* Write Location Data */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_location_domain_aware, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_location_domain, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_location_domain_options, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_location_options, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0067: /* Write Flow Control Mode */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_flow_control_mode, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0068: /* Read Enhanced Tx Power Level */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_connection_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_tx_power_level_type, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0069: /* Read Best Effort Flush Timeout */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_logical_link_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x006a: /* Write Best Effort Flush Timeout */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_logical_link_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_flush_to_us, tvb, offset, 4, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=4;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x006b: /* Short Range Mode */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_physical_link_handle, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_short_range_mode, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x006d: /* Write LE Host Supported */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_le_supported_host, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_le_simultaneous_host, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
2012-03-12 14:40:09 +00:00
|
|
|
default:
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_params, tvb, offset, -1, ENC_NA);
|
|
|
|
offset+=tvb_length_remaining(tvb, offset);
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
2011-10-19 21:55:08 +00:00
|
|
|
return offset;
|
2006-05-10 10:38:53 +00:00
|
|
|
}
|
|
|
|
|
2011-10-19 21:55:08 +00:00
|
|
|
static int
|
2009-11-04 12:49:19 +00:00
|
|
|
dissect_informational_parameters_cmd(tvbuff_t *tvb, int offset, packet_info *pinfo _U_,
|
2012-03-12 14:40:09 +00:00
|
|
|
proto_tree *tree, guint16 cmd_ocf)
|
2006-05-10 10:38:53 +00:00
|
|
|
{
|
2012-03-12 14:40:09 +00:00
|
|
|
switch (cmd_ocf) {
|
2006-05-10 10:38:53 +00:00
|
|
|
|
2012-03-12 14:40:09 +00:00
|
|
|
case 0x0004: /* Read Local Extended Features */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_page_number, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
2006-05-10 10:38:53 +00:00
|
|
|
|
2012-03-12 14:40:09 +00:00
|
|
|
default:
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_params, tvb, offset, -1, ENC_NA);
|
|
|
|
offset+=tvb_length_remaining(tvb, offset);
|
|
|
|
break;
|
2006-05-10 10:38:53 +00:00
|
|
|
|
2012-03-12 14:40:09 +00:00
|
|
|
}
|
2012-10-22 12:49:04 +00:00
|
|
|
return offset;
|
2006-05-10 10:38:53 +00:00
|
|
|
}
|
|
|
|
|
2011-10-19 21:55:08 +00:00
|
|
|
static int
|
2009-11-04 12:49:19 +00:00
|
|
|
dissect_status_parameters_cmd(tvbuff_t *tvb, int offset, packet_info *pinfo _U_,
|
2012-03-12 14:40:09 +00:00
|
|
|
proto_tree *tree, guint16 cmd_ocf)
|
2006-05-10 10:38:53 +00:00
|
|
|
{
|
2012-03-12 14:40:09 +00:00
|
|
|
switch (cmd_ocf) {
|
|
|
|
|
|
|
|
case 0x0001: /* Read Failed Contact Counter */
|
|
|
|
case 0x0002: /* Reset Failed Contact Counter */
|
|
|
|
case 0x0003: /* Get Link Quality */
|
|
|
|
case 0x0005: /* Read RSSI */
|
|
|
|
case 0x0006: /* Read AFH Channel Map */
|
2012-10-22 12:49:04 +00:00
|
|
|
case 0x0008: /* Read Encryption Key Size */
|
2012-03-12 14:40:09 +00:00
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_connection_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0007: /* Read Clock */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_connection_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_which_clock, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
2012-10-22 12:49:04 +00:00
|
|
|
case 0x0009: /* Read Local AMP Info */
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x000a: /* Read Local AMP Assoc */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_physical_link_handle, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_length_so_far, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_amp_assoc_length, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x000b: /* Write Remote AMP Assoc */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_physical_link_handle, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_length_so_far, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_amp_remaining_assoc_length, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_amp_assoc_fragment, tvb, offset, -1, ENC_NA);
|
|
|
|
offset+=tvb_length_remaining(tvb, offset);
|
|
|
|
break;
|
|
|
|
|
2012-03-12 14:40:09 +00:00
|
|
|
default:
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_params, tvb, offset, -1, ENC_NA);
|
|
|
|
offset+=tvb_length_remaining(tvb, offset);
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
2011-10-19 21:55:08 +00:00
|
|
|
return offset;
|
2006-05-10 10:38:53 +00:00
|
|
|
}
|
|
|
|
|
2011-10-19 21:55:08 +00:00
|
|
|
static int
|
2006-05-10 10:38:53 +00:00
|
|
|
dissect_testing_cmd(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, guint16 cmd_ocf)
|
|
|
|
{
|
2012-03-12 14:40:09 +00:00
|
|
|
switch (cmd_ocf) {
|
2006-05-10 10:38:53 +00:00
|
|
|
|
2012-03-12 14:40:09 +00:00
|
|
|
case 0x0002: /* Write Loopback Mode */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_loopback_mode, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
2006-05-10 10:38:53 +00:00
|
|
|
|
2012-03-12 14:40:09 +00:00
|
|
|
case 0x0004: /* Write Simple Pairing Debug Mode */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_simple_pairing_debug_mode, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
2007-09-23 19:40:54 +00:00
|
|
|
|
2012-10-22 12:49:04 +00:00
|
|
|
case 0x0007: /* Enable AMP Receiver Reports */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_enable_amp_recv_reports, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_amp_recv_report_interval, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
2012-03-12 14:40:09 +00:00
|
|
|
default:
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_params, tvb, offset, -1, ENC_NA);
|
|
|
|
offset+=tvb_length_remaining(tvb, offset);
|
|
|
|
break;
|
2006-05-10 10:38:53 +00:00
|
|
|
|
2012-03-12 14:40:09 +00:00
|
|
|
}
|
2011-10-19 21:55:08 +00:00
|
|
|
return offset;
|
2006-05-10 10:38:53 +00:00
|
|
|
}
|
|
|
|
|
2012-10-22 12:49:04 +00:00
|
|
|
static void
|
|
|
|
dissect_le_cmd(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, guint16 cmd_ocf)
|
|
|
|
{
|
|
|
|
proto_item *item;
|
|
|
|
|
|
|
|
switch(cmd_ocf) {
|
|
|
|
|
|
|
|
case 0x0001: /* LE Set Event Mask */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_le_evt_mask_00, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_le_evt_mask_01, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_le_evt_mask_02, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_le_evt_mask_03, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_le_evt_mask_04, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=8;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0005: /* LE Set Random Address */
|
|
|
|
offset = dissect_bthci_cmd_bd_addr(tvb, offset, pinfo, tree);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0006: /* LE Set Advertising Parameters */
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_le_advts_interval_min, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_item_append_text(item, " (%g msec)", tvb_get_letohs(tvb, offset)*0.625);
|
|
|
|
offset+=2;
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_le_advts_interval_max, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_item_append_text(item, " (%g msec)", tvb_get_letohs(tvb, offset)*0.625);
|
|
|
|
offset+=2;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_le_advts_type, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_le_own_address_type, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_le_direct_address_type, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
offset = dissect_bthci_cmd_bd_addr(tvb, offset, pinfo, tree);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_le_advts_channel_map_1, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_le_advts_channel_map_2, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_le_advts_channel_map_3, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_le_advts_filter_policy, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0008: /* LE Set Advertising Data */
|
|
|
|
case 0x0009: /* LE Set Scan Response Data */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_le_data_length, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
offset = dissect_bthci_eir_ad_data(tvb, offset, pinfo, tree, 31);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x000a: /* LE Set Advertise Enable */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_le_advts_enable, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x000b: /* LE Set Scan Parameters */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_le_scan_type, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_le_scan_interval, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_item_append_text(item, " (%g msec)", tvb_get_letohs(tvb, offset)*0.625);
|
|
|
|
offset+=2;
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_le_scan_window, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_item_append_text(item, " (%g msec)", tvb_get_letohs(tvb, offset)*0.625);
|
|
|
|
offset+=2;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_le_own_address_type, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_le_scan_filter_policy, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x000c: /* LE Set Scan Enable */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_le_scan_enable, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_le_filter_dublicates, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x000d: /* LE Create Connection */
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_le_scan_interval, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_item_append_text(item, " (%g msec)", tvb_get_letohs(tvb, offset)*0.625);
|
|
|
|
offset+=2;
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_le_scan_window, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_item_append_text(item, " (%g msec)", tvb_get_letohs(tvb, offset)*0.625);
|
|
|
|
offset+=2;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_le_initiator_filter_policy, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_le_peer_address_type, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
offset = dissect_bthci_cmd_bd_addr(tvb, offset, pinfo, tree);
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_le_own_address_type, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_le_con_interval_min, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_item_append_text(item, " (%g msec)", tvb_get_letohs(tvb, offset)*1.25);
|
|
|
|
offset+=2;
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_le_con_interval_max, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_item_append_text(item, " (%g msec)", tvb_get_letohs(tvb, offset)*1.25);
|
|
|
|
offset+=2;
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_le_con_latency, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_item_append_text(item, " (number events)");
|
|
|
|
offset+=2;
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_le_supervision_timeout, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_item_append_text(item, " (%g sec)", tvb_get_letohs(tvb, offset)*0.01);
|
|
|
|
offset+=2;
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_le_min_ce_length, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_item_append_text(item, " (%g msec)", tvb_get_letohs(tvb, offset)*0.625);
|
|
|
|
offset+=2;
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_le_max_ce_length, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_item_append_text(item, " (%g msec)", tvb_get_letohs(tvb, offset)*0.625);
|
|
|
|
offset+=2;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0011: /* LE Add Device To White List */
|
|
|
|
case 0x0012: /* LE Remove Device From White List */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_le_address_type, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
offset = dissect_bthci_cmd_bd_addr(tvb, offset, pinfo, tree);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0013: /* LE Connection Update */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_connection_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_le_con_interval_min, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_item_append_text(item, " (%g msec)", tvb_get_letohs(tvb, offset)*1.25);
|
|
|
|
offset+=2;
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_le_con_interval_max, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_item_append_text(item, " (%g msec)", tvb_get_letohs(tvb, offset)*1.25);
|
|
|
|
offset+=2;
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_le_con_latency, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_item_append_text(item, " (number events)");
|
|
|
|
offset+=2;
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_le_supervision_timeout, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_item_append_text(item, " (%g sec)", tvb_get_letohs(tvb, offset)*0.01);
|
|
|
|
offset+=2;
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_le_min_ce_length, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_item_append_text(item, " (%g msec)", tvb_get_letohs(tvb, offset)*0.625);
|
|
|
|
offset+=2;
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_le_max_ce_length, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_item_append_text(item, " (%g msec)", tvb_get_letohs(tvb, offset)*0.625);
|
|
|
|
offset+=2;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0014: /* LE Set Host Channel Classification */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_le_channel_map, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=5;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0015: /* LE Read Channel Map */
|
|
|
|
case 0x0016: /* LE Read Remote Used Features */
|
|
|
|
case 0x001b: /* LE Long Term Key Request Negative Reply */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_connection_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0017: /* LE Encrypt */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_key, tvb, offset, 16, ENC_NA);
|
|
|
|
offset+=16;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_plaintext_data, tvb, offset, 16, ENC_NA);
|
|
|
|
offset+=16;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x0019: /* LE Start Encryption */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_connection_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_random_number, tvb, offset, 8, ENC_NA);
|
|
|
|
offset+=8;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_encrypted_diversifier, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_le_long_term_key, tvb, offset, 16, ENC_NA);
|
|
|
|
offset+=16;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x001a: /* LE Long Term Key Request Reply */
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_connection_handle, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_le_long_term_key, tvb, offset, 16, ENC_NA);
|
|
|
|
offset+=16;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x001d: /* LE Receiver Test */
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_rx_freqency, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
2012-10-22 14:02:10 +00:00
|
|
|
proto_item_append_text(item, " (%d MHz)", 2402 + 2*tvb_get_guint8(tvb, offset));
|
2012-10-22 12:49:04 +00:00
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x001e: /* LE Transmitter Test */
|
|
|
|
item = proto_tree_add_item(tree, hf_bthci_cmd_tx_freqency, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
2012-10-22 14:02:10 +00:00
|
|
|
proto_item_append_text(item, " (%d MHz)", 2402 + 2*tvb_get_guint8(tvb, offset));
|
2012-10-22 12:49:04 +00:00
|
|
|
offset++;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_test_data_length, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_test_packet_payload, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
offset++;
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
proto_tree_add_item(tree, hf_bthci_cmd_params, tvb, offset, -1, ENC_NA);
|
|
|
|
offset+=tvb_length_remaining(tvb, offset);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2006-05-10 10:38:53 +00:00
|
|
|
/* Code to actually dissect the packets */
|
|
|
|
static void
|
|
|
|
dissect_bthci_cmd(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
|
|
|
{
|
2012-03-12 14:40:09 +00:00
|
|
|
proto_item *ti_cmd = NULL;
|
|
|
|
proto_tree *bthci_cmd_tree = NULL;
|
|
|
|
guint16 opcode, ocf;
|
|
|
|
guint8 param_length, ogf;
|
|
|
|
int offset = 0;
|
|
|
|
|
|
|
|
proto_item *ti_opcode;
|
|
|
|
proto_tree *opcode_tree;
|
|
|
|
|
|
|
|
if (tree) {
|
|
|
|
ti_cmd = proto_tree_add_item(tree, proto_bthci_cmd, tvb, offset, -1, ENC_NA);
|
|
|
|
bthci_cmd_tree = proto_item_add_subtree(ti_cmd, ett_bthci_cmd);
|
|
|
|
}
|
|
|
|
|
|
|
|
opcode = tvb_get_letohs(tvb, offset);
|
|
|
|
ocf = opcode & 0x03ff;
|
2010-05-18 06:09:52 +00:00
|
|
|
ogf = (guint8) (opcode >> 10);
|
2006-05-10 10:38:53 +00:00
|
|
|
|
2012-03-12 14:40:09 +00:00
|
|
|
proto_item_append_text(ti_cmd," - %s", val_to_str_ext(opcode, &bthci_cmd_opcode_vals_ext, "Unknown 0x%04x"));
|
2006-05-10 10:38:53 +00:00
|
|
|
|
2012-03-12 14:40:09 +00:00
|
|
|
col_set_str(pinfo->cinfo, COL_PROTOCOL, "HCI_CMD");
|
2006-05-10 10:38:53 +00:00
|
|
|
|
2012-03-12 14:40:09 +00:00
|
|
|
col_append_fstr(pinfo->cinfo, COL_INFO, " %s", val_to_str_ext(opcode, &bthci_cmd_opcode_vals_ext, "Unknown 0x%04x"));
|
2006-05-10 10:38:53 +00:00
|
|
|
|
2012-03-12 14:40:09 +00:00
|
|
|
ti_opcode = proto_tree_add_item(bthci_cmd_tree, hf_bthci_cmd_opcode, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
opcode_tree = proto_item_add_subtree(ti_opcode, ett_opcode);
|
|
|
|
proto_tree_add_item(opcode_tree, hf_bthci_cmd_ogf, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
proto_tree_add_item(opcode_tree, hf_bthci_cmd_ocf, tvb, offset, 2, ENC_LITTLE_ENDIAN);
|
|
|
|
offset+=2;
|
2006-05-10 10:38:53 +00:00
|
|
|
|
|
|
|
|
2012-03-12 14:40:09 +00:00
|
|
|
proto_tree_add_item(bthci_cmd_tree, hf_bthci_cmd_param_length, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
|
|
|
param_length = tvb_get_guint8(tvb, offset);
|
|
|
|
offset++;
|
2006-05-10 10:38:53 +00:00
|
|
|
|
2012-03-12 14:40:09 +00:00
|
|
|
if (param_length > 0) {
|
|
|
|
switch (ogf) {
|
|
|
|
case 0x01: /* Link Control Command */
|
|
|
|
dissect_link_control_cmd(tvb, offset, pinfo, bthci_cmd_tree, ocf);
|
|
|
|
break;
|
2006-05-10 10:38:53 +00:00
|
|
|
|
2012-03-12 14:40:09 +00:00
|
|
|
case 0x02: /* Link Policy Command */
|
|
|
|
dissect_link_policy_cmd(tvb, offset, pinfo, bthci_cmd_tree, ocf);
|
|
|
|
break;
|
2006-05-10 10:38:53 +00:00
|
|
|
|
2012-03-12 14:40:09 +00:00
|
|
|
case 0x03: /* Host Controller & Baseband Command */
|
|
|
|
dissect_host_controller_baseband_cmd(tvb, offset, pinfo, bthci_cmd_tree, ocf);
|
|
|
|
break;
|
2006-05-10 10:38:53 +00:00
|
|
|
|
2012-03-12 14:40:09 +00:00
|
|
|
case 0x04: /* Informational Parameter Command */
|
|
|
|
dissect_informational_parameters_cmd(tvb, offset, pinfo, bthci_cmd_tree, ocf);
|
|
|
|
break;
|
2006-05-10 10:38:53 +00:00
|
|
|
|
2012-03-12 14:40:09 +00:00
|
|
|
case 0x05: /* Status Parameter Command */
|
|
|
|
dissect_status_parameters_cmd(tvb, offset, pinfo, bthci_cmd_tree, ocf);
|
|
|
|
break;
|
2006-05-10 10:38:53 +00:00
|
|
|
|
2012-03-12 14:40:09 +00:00
|
|
|
case 0x06: /* Testing Command */
|
|
|
|
dissect_testing_cmd(tvb, offset, pinfo, bthci_cmd_tree, ocf);
|
|
|
|
break;
|
2006-05-10 10:38:53 +00:00
|
|
|
|
2012-10-22 12:49:04 +00:00
|
|
|
case 0x08: /* Low Energy Command */
|
|
|
|
dissect_le_cmd(tvb, offset, pinfo, bthci_cmd_tree, ocf);
|
|
|
|
break;
|
|
|
|
|
2012-03-12 14:40:09 +00:00
|
|
|
default:
|
|
|
|
proto_tree_add_item(bthci_cmd_tree, hf_bthci_cmd_params, tvb, 3, -1, ENC_NA);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2006-05-10 10:38:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2006-05-21 04:49:01 +00:00
|
|
|
/* Register the protocol with Wireshark */
|
2006-05-10 10:38:53 +00:00
|
|
|
|
|
|
|
/* this format is require because a script is used to build the C function
|
|
|
|
that calls all the protocol registration.
|
|
|
|
*/
|
|
|
|
void
|
|
|
|
proto_register_bthci_cmd(void)
|
2009-11-04 12:49:19 +00:00
|
|
|
{
|
2006-05-10 10:38:53 +00:00
|
|
|
|
2012-03-12 14:40:09 +00:00
|
|
|
/* Setup list of header fields See Section 1.6.1 for details*/
|
|
|
|
static hf_register_info hf[] = {
|
|
|
|
{ &hf_bthci_cmd_opcode,
|
|
|
|
{ "Command Opcode","bthci_cmd.opcode", FT_UINT16, BASE_HEX|BASE_EXT_STRING,
|
|
|
|
&bthci_cmd_opcode_vals_ext, 0x0, "HCI Command Opcode", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_ogf,
|
|
|
|
{ "ogf", "bthci_cmd.ogf",
|
|
|
|
FT_UINT16, BASE_HEX|BASE_EXT_STRING, &bthci_ogf_vals_ext, 0xfc00,
|
|
|
|
"Opcode Group Field", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_ocf,
|
|
|
|
{ "ocf", "bthci_cmd.ocf",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0x03ff,
|
|
|
|
"Opcode Command Field", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_param_length,
|
|
|
|
{ "Parameter Total Length", "bthci_cmd.param_length",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_params,
|
|
|
|
{ "Command Parameters", "bthci_cmd.params",
|
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_lap,
|
|
|
|
{ "LAP", "bthci_cmd.lap",
|
|
|
|
FT_UINT24, BASE_HEX, NULL, 0x0,
|
|
|
|
"LAP for the inquiry access code", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_inq_length,
|
|
|
|
{ "Inquiry Length", "bthci_cmd.inq_length",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0,
|
|
|
|
"Inquiry Length (*1.28s)", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_num_responses,
|
|
|
|
{ "Num Responses", "bthci_cmd.num_responses",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0,
|
|
|
|
"Number of Responses", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_encrypt_mode,
|
|
|
|
{ "Encryption Mode", "bthci_cmd.encrypt_mode",
|
2012-10-22 12:49:04 +00:00
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_encrypt_mode_vals), 0x0,
|
2012-03-12 14:40:09 +00:00
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_bd_addr,
|
|
|
|
{ "BD_ADDR:", "bthci_cmd.bd_addr",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0x0,
|
|
|
|
"Bluetooth Device Address", HFILL}
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_packet_type_2dh1,
|
|
|
|
{ "Packet Type 2-DH1", "bthci_cmd.packet_type_2dh1",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cmd_boolean), 0x0002,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_packet_type_3dh1,
|
|
|
|
{ "Packet Type 3-DH1", "bthci_cmd.packet_type_3dh1",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cmd_boolean), 0x0004,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_packet_type_dm1,
|
|
|
|
{ "Packet Type DM1", "bthci_cmd.packet_type_dm1",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cmd_boolean), 0x0008,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_packet_type_dh1,
|
|
|
|
{ "Packet Type DH1", "bthci_cmd.packet_type_dh1",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cmd_boolean), 0x0010,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_packet_type_2dh3,
|
|
|
|
{ "Packet Type 2-DH3", "bthci_cmd.packet_type_2dh3",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cmd_boolean), 0x0100,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_packet_type_3dh3,
|
|
|
|
{ "Packet Type 3-DH3", "bthci_cmd.packet_type_3dh3",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cmd_boolean), 0x0200,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_packet_type_dm3,
|
|
|
|
{ "Packet Type DM3", "bthci_cmd.packet_type_dm3",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cmd_boolean), 0x0400,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_packet_type_dh3,
|
|
|
|
{ "Packet Type DH3", "bthci_cmd.packet_type_dh3",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cmd_boolean), 0x0800,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_packet_type_2dh5,
|
|
|
|
{ "Packet Type 2-DH5", "bthci_cmd.packet_type_2dh5",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cmd_boolean), 0x1000,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_packet_type_3dh5,
|
|
|
|
{ "Packet Type 3-DH5", "bthci_cmd.packet_type_3dh5",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cmd_boolean), 0x2000,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_packet_type_dm5,
|
|
|
|
{ "Packet Type DM5", "bthci_cmd.packet_type_dm5",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cmd_boolean), 0x4000,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_packet_type_dh5,
|
|
|
|
{ "Packet Type DH5", "bthci_cmd.packet_type_dh5",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cmd_boolean), 0x8000,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_page_scan_mode,
|
|
|
|
{ "Page Scan Mode", "bthci_cmd.page_scan_mode",
|
2012-10-22 12:49:04 +00:00
|
|
|
FT_UINT8, BASE_HEX, VALS(bthci_cmd_page_scan_modes), 0x0,
|
2012-03-12 14:40:09 +00:00
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_page_scan_repetition_mode,
|
|
|
|
{ "Page Scan Repetition Mode", "bthci_cmd.page_scan_repetition_mode",
|
2012-10-22 12:49:04 +00:00
|
|
|
FT_UINT8, BASE_HEX, VALS(bthci_cmd_page_scan_repetition_modes), 0x0,
|
2012-03-12 14:40:09 +00:00
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_page_scan_period_mode,
|
|
|
|
{ "Page Scan Period Mode", "bthci_cmd.page_scan_period_mode",
|
2012-10-22 12:49:04 +00:00
|
|
|
FT_UINT8, BASE_HEX, VALS(bthci_cmd_page_scan_period_modes), 0x0,
|
2012-03-12 14:40:09 +00:00
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_clock_offset,
|
|
|
|
{ "Clock Offset", "bthci_cmd.clock_offset",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0x7FFF,
|
|
|
|
"Bit 2-16 of the Clock Offset between CLKmaster-CLKslave", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_clock_offset_valid,
|
|
|
|
{ "Clock_Offset_Valid_Flag", "bthci_cmd.clock_offset_valid",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cmd_boolean), 0x8000,
|
|
|
|
"Indicates if clock offset is valid", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_allow_role_switch,
|
|
|
|
{ "Allow Role Switch", "bthci_cmd.allow_role_switch",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_role_switch_modes), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_max_period_length,
|
|
|
|
{ "Max Period Length", "bthci_cmd.max_period_length",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
"Maximum amount of time specified between consecutive inquiries.", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_min_period_length,
|
|
|
|
{ "Min Period Length", "bthci_cmd.min_period_length",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
"Minimum amount of time specified between consecutive inquiries.", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_connection_handle,
|
|
|
|
{ "Connection Handle", "bthci_cmd.connection_handle",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_reason,
|
|
|
|
{ "Reason", "bthci_cmd.reason",
|
|
|
|
FT_UINT8, BASE_HEX|BASE_EXT_STRING, &bthci_cmd_status_vals_ext, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_num_link_keys,
|
|
|
|
{ "Number of Link Keys", "bthci_cmd.num_link_keys",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_link_key,
|
|
|
|
{ "Link Key", "bthci_cmd.link_key",
|
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x0,
|
|
|
|
"Link Key for the associated BD_ADDR", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_packet_type_hv1,
|
|
|
|
{ "Packet Type HV1", "bthci_cmd.packet_type_hv1",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cmd_boolean), 0x0020,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_packet_type_hv2,
|
|
|
|
{ "Packet Type HV2", "bthci_cmd.packet_type_hv2",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cmd_boolean), 0x0040,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_packet_type_hv3,
|
|
|
|
{ "Packet Type HV3", "bthci_cmd.packet_type_hv3",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cmd_boolean), 0x0080,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_role,
|
|
|
|
{ "Role", "bthci_cmd.role",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_role_vals), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_pin_code_length,
|
|
|
|
{ "PIN Code Length", "bthci_cmd.pin_code_length",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_pin_code,
|
|
|
|
{ "PIN Code", "bthci_cmd.pin_code",
|
|
|
|
FT_STRING, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_pin_type,
|
|
|
|
{ "PIN Type", "bthci_cmd.pin_type",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_pin_types), 0x0,
|
|
|
|
"PIN Types", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_encryption_enable,
|
|
|
|
{ "Encryption Enable", "bthci_cmd.encryption_enable",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_encryption_enable), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_key_flag,
|
|
|
|
{ "Key Flag", "bthci_cmd.key_flag",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_key_flag), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_max_interval_hold,
|
|
|
|
{ "Hold Mode Max Interval", "bthci_cmd.hold_mode_max_int",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
"Maximal acceptable number of Baseband slots to wait in Hold Mode.", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_min_interval_hold,
|
|
|
|
{ "Hold Mode Min Interval", "bthci_cmd.hold_mode_min_int",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
"Minimum acceptable number of Baseband slots to wait in Hold Mode.", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_max_interval_sniff,
|
|
|
|
{ "Sniff Max Interval", "bthci_cmd.sniff_max_int",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
"Maximal acceptable number of Baseband slots between each sniff period.", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_min_interval_sniff,
|
|
|
|
{ "Sniff Min Interval", "bthci_cmd.sniff_min_int",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
"Minimum acceptable number of Baseband slots between each sniff period.", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_sniff_attempt,
|
|
|
|
{ "Sniff Attempt", "bthci_cmd.sniff_attempt",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
"Number of Baseband receive slots for sniff attempt.", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_timeout,
|
|
|
|
{ "Timeout", "bthci_cmd.timeout",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
"Number of Baseband slots for timeout.", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_max_interval_beacon,
|
|
|
|
{ "Beacon Max Interval", "bthci_cmd.beacon_max_int",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
"Maximal acceptable number of Baseband slots between consecutive beacons.", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_min_interval_beacon,
|
|
|
|
{ "Beacon Min Interval", "bthci_cmd.beacon_min_int",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
"Minimum acceptable number of Baseband slots between consecutive beacons.", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_flags,
|
|
|
|
{ "Flags", "bthci_cmd.flags",
|
|
|
|
FT_UINT8, BASE_HEX, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_service_type,
|
|
|
|
{ "Service Type", "bthci_cmd.service_type",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_service_types), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_token_rate,
|
|
|
|
{ "Available Token Rate", "bthci_cmd.token_rate",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0x0,
|
|
|
|
"Token Rate, in bytes per second", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_token_bucket_size,
|
|
|
|
{ "Available Token Bucket Size", "bthci_cmd.token_bucket_size",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0x0,
|
|
|
|
"Token Bucket Size in bytes", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_peak_bandwidth,
|
|
|
|
{ "Peak Bandwidth", "bthci_cmd.peak_bandwidth",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0x0,
|
|
|
|
"Peak Bandwidth, in bytes per second", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_latency,
|
|
|
|
{ "Latency", "bthci_cmd.latency",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0x0,
|
|
|
|
"Latency, in microseconds", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_delay_variation,
|
|
|
|
{ "Delay Variation", "bthci_cmd.delay_variation",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0x0,
|
|
|
|
"Delay Variation, in microseconds", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_link_policy_setting_switch,
|
|
|
|
{ "Enable Master Slave Switch", "bthci_cmd.link_policy_switch",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cmd_boolean), 0x0001,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_link_policy_setting_hold,
|
|
|
|
{ "Enable Hold Mode", "bthci_cmd.link_policy_hold",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cmd_boolean), 0x0002,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_link_policy_setting_sniff,
|
|
|
|
{ "Enable Sniff Mode", "bthci_cmd.link_policy_sniff",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cmd_boolean), 0x0004,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_link_policy_setting_park,
|
|
|
|
{ "Enable Park Mode", "bthci_cmd.link_policy_park",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cmd_boolean), 0x0008,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_filter_type,
|
|
|
|
{ "Filter Type", "bthci_cmd.filter_type",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_filter_types), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_inquiry_result_filter_condition_type,
|
|
|
|
{ "Filter Condition Type", "bthci_cmd.filter_condition_type",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_inquiry_result_filter_condition_types), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_connection_setup_filter_condition_type,
|
|
|
|
{ "Filter Condition Type", "bthci_cmd.filter_condition_type",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_connection_setup_filter_condition_types), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_class_of_device,
|
|
|
|
{ "Class of Device", "bthci_cmd.class_of_device",
|
|
|
|
FT_UINT24, BASE_HEX, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_class_of_device_mask,
|
|
|
|
{ "Class of Device Mask", "bthci_cmd.class_of_device_mask",
|
|
|
|
FT_UINT24, BASE_HEX, NULL, 0x0,
|
|
|
|
"Bit Mask used to determine which bits of the Class of Device parameter are of interest.", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_auto_acc_flag,
|
|
|
|
{ "Auto Accept Flag", "bthci_cmd.auto_accept_flag",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_auto_acc_flag_values), 0x0,
|
|
|
|
"Class of Device of Interest", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_read_all_flag,
|
|
|
|
{ "Read All Flag", "bthci_cmd.read_all_flag",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_read_all_flag_values), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_delete_all_flag,
|
|
|
|
{ "Delete All Flag", "bthci_cmd.delete_all_flag",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_delete_all_flag_values), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_authentication_enable,
|
|
|
|
{ "Authentication Enable", "bthci_cmd.auth_enable",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_authentication_enable_values), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_input_coding,
|
|
|
|
{ "Input Coding", "bthci_cmd.input_coding",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cmd_input_coding_values), 0x0300,
|
|
|
|
"Authentication Enable", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_input_data_format,
|
|
|
|
{ "Input Data Format", "bthci_cmd.input_data_format",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cmd_input_data_format_values), 0x00c0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_input_sample_size,
|
|
|
|
{ "Input Sample Size", "bthci_cmd.input_sample_size",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cmd_input_sample_size_values), 0x0020,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_linear_pcm_bit_pos,
|
|
|
|
{ "Linear PCM Bit Pos", "bthci_cmd.lin_pcm_bit_pos",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x001c,
|
|
|
|
"# bit pos. that MSB of sample is away from starting at MSB", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_air_coding_format,
|
|
|
|
{ "Air Coding Format", "bthci_cmd.air_coding_format",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cmd_air_coding_format_values), 0x0003,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_num_broadcast_retransmissions,
|
|
|
|
{ "Num Broadcast Retran", "bthci_cmd.num_broad_retran",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0,
|
|
|
|
"Number of Broadcast Retransmissions", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_hold_mode_act_page,
|
|
|
|
{ "Suspend Page Scan", "bthci_cmd.hold_mode_page",
|
|
|
|
FT_UINT8, BASE_DEC, VALS(cmd_boolean), 0x1,
|
|
|
|
"Device can enter low power state", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_hold_mode_act_inquiry,
|
|
|
|
{ "Suspend Inquiry Scan", "bthci_cmd.hold_mode_inquiry",
|
|
|
|
FT_UINT8, BASE_DEC, VALS(cmd_boolean), 0x2,
|
|
|
|
"Device can enter low power state", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_hold_mode_act_periodic,
|
|
|
|
{ "Suspend Periodic Inquiries", "bthci_cmd.hold_mode_periodic",
|
|
|
|
FT_UINT8, BASE_DEC, VALS(cmd_boolean), 0x4,
|
|
|
|
"Device can enter low power state", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_scan_enable,
|
|
|
|
{ "Scan Enable", "bthci_cmd.scan_enable",
|
2012-10-22 12:49:04 +00:00
|
|
|
FT_UINT8, BASE_HEX, VALS(bthci_cmd_scan_enable_values), 0x0,
|
2012-03-12 14:40:09 +00:00
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_interval,
|
|
|
|
{ "Interval", "bthci_cmd.interval",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_window,
|
|
|
|
{ "Interval", "bthci_cmd.window",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
"Window", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_device_name,
|
|
|
|
{ "Device Name", "bthci_cmd.device_name",
|
|
|
|
FT_STRINGZ, BASE_NONE, NULL, 0x0,
|
|
|
|
"Userfriendly descriptive name for the device", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_num_curr_iac,
|
|
|
|
{ "Number of Current IAC", "bthci_cmd.num_curr_iac",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0,
|
|
|
|
"Number of IACs which are currently in use", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_iac_lap,
|
|
|
|
{ "IAC LAP", "bthci_cmd.num_curr_iac",
|
|
|
|
FT_UINT24, BASE_HEX, NULL, 0x0,
|
|
|
|
"LAP(s)used to create IAC", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_00,
|
|
|
|
{ "Inquiry Complete", "bthci_cmd.evt_mask_00",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x01,
|
|
|
|
"Inquiry Complete Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_01,
|
|
|
|
{ "Inquiry Result", "bthci_cmd.evt_mask_01",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x02,
|
|
|
|
"Inquiry Result Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_02,
|
|
|
|
{ "Connect Complete", "bthci_cmd.evt_mask_02",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x04,
|
|
|
|
"Connection Complete Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_03,
|
|
|
|
{ "Connect Request", "bthci_cmd.evt_mask_03",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x08,
|
|
|
|
"Connect Request Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_04,
|
|
|
|
{ "Disconnect Complete", "bthci_cmd.evt_mask_04",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x10,
|
|
|
|
"Disconnect Complete Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_05,
|
|
|
|
{ "Auth Complete", "bthci_cmd.evt_mask_05",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x20,
|
|
|
|
"Auth Complete Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_06,
|
|
|
|
{ "Remote Name Req Complete", "bthci_cmd.evt_mask_06",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x40,
|
|
|
|
"Remote Name Req Complete Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_07,
|
|
|
|
{ "Encrypt Change", "bthci_cmd.evt_mask_07",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x80,
|
|
|
|
"Encrypt Change Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_10,
|
|
|
|
{ "Change Connection Link Key Complete", "bthci_cmd.evt_mask_10",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x01,
|
|
|
|
"Change Connection Link Key Complete Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_11,
|
|
|
|
{ "Master Link Key Complete", "bthci_cmd.evt_mask_11",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x02,
|
|
|
|
"Master Link Key Complete Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_12,
|
|
|
|
{ "Read Remote Supported Features", "bthci_cmd.evt_mask_12",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x04,
|
|
|
|
"Read Remote Supported Features Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_13,
|
|
|
|
{ "Read Remote Ver Info Complete", "bthci_cmd.evt_mask_13",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x08,
|
|
|
|
"Read Remote Ver Info Complete Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_14,
|
|
|
|
{ "QoS Setup Complete", "bthci_cmd.evt_mask_14",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x10,
|
|
|
|
"QoS Setup Complete Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_17,
|
|
|
|
{ "Hardware Error", "bthci_cmd.evt_mask_17",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x80,
|
|
|
|
"Hardware Error Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_20,
|
|
|
|
{ "Flush Occurred", "bthci_cmd.evt_mask_20",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x01,
|
|
|
|
"Flush Occurred Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_21,
|
|
|
|
{ "Role Change", "bthci_cmd.evt_mask_21",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x02,
|
|
|
|
"Role Change Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_23,
|
|
|
|
{ "Mode Change", "bthci_cmd.evt_mask_23",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x08,
|
|
|
|
"Mode Change Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_24,
|
|
|
|
{ "Return Link Keys", "bthci_cmd.evt_mask_24",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x10,
|
|
|
|
"Return Link Keys Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_25,
|
|
|
|
{ "PIN Code Request", "bthci_cmd.evt_mask_25",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x20,
|
|
|
|
"PIN Code Request Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_26,
|
|
|
|
{ "Link Key Request", "bthci_cmd.evt_mask_26",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x40,
|
|
|
|
"Link Key Request Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_27,
|
|
|
|
{ "Link Key Notification", "bthci_cmd.evt_mask_27",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x80,
|
|
|
|
"Link Key Notification Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_30,
|
|
|
|
{ "Loopback Command", "bthci_cmd.evt_mask_30",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x01,
|
|
|
|
"Loopback Command Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_31,
|
|
|
|
{ "Data Buffer Overflow" , "bthci_cmd.evt_mask_31",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x02,
|
|
|
|
"Data Buffer Overflow Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_32,
|
|
|
|
{ "Max Slots Change", "bthci_cmd.evt_mask_32",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x04,
|
|
|
|
"Max Slots Change Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_33,
|
|
|
|
{ "Read Clock Offset Complete", "bthci_cmd.evt_mask_33",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x08,
|
|
|
|
"Read Clock Offset Complete Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_34,
|
|
|
|
{ "Connection Packet Type Changed", "bthci_cmd.evt_mask_34",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x10,
|
|
|
|
"Connection Packet Type Changed Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_35,
|
|
|
|
{ "QoS Violation", "bthci_cmd.evt_mask_35",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x20,
|
|
|
|
"QoS Violation Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_36,
|
|
|
|
{ "Page Scan Mode Change", "bthci_cmd.evt_mask_36",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x40,
|
|
|
|
"Page Scan Mode Change Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_37,
|
|
|
|
{ "Page Scan Repetition Mode Change", "bthci_cmd.evt_mask_37",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x80,
|
|
|
|
"Page Scan Repetition Mode Change Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_40,
|
|
|
|
{ "Flow Specification Complete", "bthci_cmd.evt_mask_40",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x01,
|
|
|
|
"Flow Specification Complete Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_41,
|
|
|
|
{ "Inquiry Result With RSSI", "bthci_cmd.evt_mask_41",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x02,
|
|
|
|
"Inquiry Result With RSSI Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_42,
|
|
|
|
{ "Read Remote Ext. Features Complete", "bthci_cmd.evt_mask_42",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x04,
|
|
|
|
"Read Remote Ext. Features Complete Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_53,
|
|
|
|
{ "Synchronous Connection Complete", "bthci_cmd.evt_mask_53",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x08,
|
|
|
|
"Synchronous Connection Complete Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_54,
|
|
|
|
{ "Synchronous Connection Changed", "bthci_cmd.evt_mask_54",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x10,
|
|
|
|
"Synchronous Connection Changed Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_55,
|
|
|
|
{ "Sniff Subrate", "bthci_cmd.evt_mask_55",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x20,
|
|
|
|
"Sniff Subrate Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_56,
|
|
|
|
{ "Extended Inquiry Result", "bthci_cmd.evt_mask_56",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x40,
|
|
|
|
"Extended Inquiry Result Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_57,
|
|
|
|
{ "Encryption Key Refresh Complete", "bthci_cmd.evt_mask_57",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x80,
|
|
|
|
"Encryption Key Refresh Complete Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_60,
|
|
|
|
{ "IO Capability Request", "bthci_cmd.evt_mask_60",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x01,
|
|
|
|
"IO Capability Request Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_61,
|
|
|
|
{ "IO Capability Response", "bthci_cmd.evt_mask_61",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x02,
|
|
|
|
"IO Capability Response Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_62,
|
|
|
|
{ "User Confirmation Request", "bthci_cmd.evt_mask_62",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x04,
|
|
|
|
"User Confirmation Request Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_63,
|
|
|
|
{ "User Passkey Request", "bthci_cmd.evt_mask_63",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x08,
|
|
|
|
"User Passkey Request Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_64,
|
|
|
|
{ "Remote OOB Data Request", "bthci_cmd.evt_mask_64",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x10,
|
|
|
|
"Remote OOB Data Request Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_65,
|
|
|
|
{ "Simple Pairing Complete", "bthci_cmd.evt_mask_65",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x20,
|
|
|
|
"Simple Pairing Complete Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_67,
|
|
|
|
{ "Link Supervision Timeout Changed", "bthci_cmd.evt_mask_67",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x80,
|
|
|
|
"Link Supervision Timeout Changed Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_70,
|
|
|
|
{ "Enhanced Flush Complete", "bthci_cmd.evt_mask_70",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x01,
|
|
|
|
"Enhanced Flush Complete Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_72,
|
|
|
|
{ "User Passkey Notification", "bthci_cmd.evt_mask_72",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x04,
|
|
|
|
"User Passkey Notification Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask_73,
|
|
|
|
{ "Keypress Notification", "bthci_cmd.evt_mask_73",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x08,
|
|
|
|
"Keypress Notification Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_sco_flow_control,
|
|
|
|
{ "SCO Flow Control","bthci_cmd.flow_control",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_en_disabled), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_num_handles,
|
|
|
|
{ "Number of Handles", "bthci_cmd.num_handles",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_bthci_cmd_num_compl_packets,
|
|
|
|
{ "Number of Completed Packets", "bthci_cmd.num_compl_packets",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
"Number of Completed HCI Data Packets", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_flow_contr_enable,
|
|
|
|
{ "Flow Control Enable", "bthci_cmd.flow_contr_enable",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_flow_contr_enable), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_host_data_packet_length_acl,
|
|
|
|
{"Host ACL Data Packet Length (bytes)", "bthci_cmd.max_data_length_acl",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
"Max Host ACL Data Packet length of data portion host is able to accept", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_host_data_packet_length_sco,
|
|
|
|
{"Host SCO Data Packet Length (bytes)", "bthci_cmd.max_data_length_sco",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0,
|
|
|
|
"Max Host SCO Data Packet length of data portion host is able to accept", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_host_total_num_acl_data_packets,
|
|
|
|
{"Host Total Num ACL Data Packets", "bthci_cmd.max_data_num_acl",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
"Total Number of HCI ACL Data Packets that can be stored in the data buffers of the Host", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_host_total_num_sco_data_packets,
|
|
|
|
{"Host Total Num SCO Data Packets", "bthci_cmd.max_data_num_sco",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
"Total Number of HCI SCO Data Packets that can be stored in the data buffers of the Host", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_loopback_mode,
|
|
|
|
{"Loopback Mode", "bthci_cmd.loopback_mode",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_loopback_modes), 0x0,
|
|
|
|
NULL, HFILL}
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_page_number,
|
|
|
|
{"Page Number", "bthci_cmd.page_number",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL}
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_transmit_bandwidth,
|
|
|
|
{"Tx Bandwidth (bytes/s)", "bthci_cmd.tx_bandwidth",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0x0,
|
|
|
|
"Tx Bandwidth", HFILL}
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_receive_bandwidth,
|
|
|
|
{"Rx Bandwidth (bytes/s)", "bthci_cmd.rx_bandwidth",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0x0,
|
|
|
|
"Rx Bandwidth", HFILL}
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_max_latency_ms,
|
|
|
|
{"Max. Latency (ms)", "bthci_cmd.max_latency_ms",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL}
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_max_latency,
|
|
|
|
{"Max. Latency", "bthci_cmd.max_latency",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
"Max. Latency in baseband slots", HFILL}
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_retransmission_effort,
|
|
|
|
{"Retransmission Effort", "bthci_cmd.retransmission_effort",
|
|
|
|
FT_UINT8, BASE_DEC, VALS(cmd_rtx_effort), 0x0,
|
|
|
|
NULL, HFILL}
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_scan_type,
|
|
|
|
{"Scan Type", "bthci_cmd.inq_scan_type",
|
|
|
|
FT_UINT8, BASE_DEC, VALS(cmd_scan_types), 0x0,
|
|
|
|
NULL, HFILL}
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_inq_mode,
|
|
|
|
{"Inquiry Mode", "bthci_cmd.inq_scan_type",
|
|
|
|
FT_UINT8, BASE_DEC, VALS(cmd_inq_modes), 0x0,
|
|
|
|
NULL, HFILL}
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_fec_required,
|
|
|
|
{"FEC Required", "bthci_cmd.fec_required",
|
|
|
|
FT_UINT8, BASE_DEC, VALS(cmd_boolean), 0x0,
|
|
|
|
NULL, HFILL}
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_err_data_reporting,
|
|
|
|
{"Erroneous Data Reporting", "bthci_cmd.err_data_reporting",
|
|
|
|
FT_UINT8, BASE_DEC, VALS(cmd_en_disabled), 0x0,
|
|
|
|
NULL, HFILL}
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_tx_power,
|
|
|
|
{"Power Level (dBm)", "bthci_cmd.power_level",
|
|
|
|
FT_INT8, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL}
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_sco_packet_type_hv1,
|
|
|
|
{ "Packet Type HV1", "bthci_cmd.sco_packet_type_hv1",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cmd_boolean), 0x0001,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_sco_packet_type_hv2,
|
|
|
|
{ "Packet Type HV2", "bthci_cmd.sco_packet_type_hv2",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cmd_boolean), 0x0002,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_sco_packet_type_hv3,
|
|
|
|
{ "Packet Type HV3", "bthci_cmd.sco_packet_type_hv3",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cmd_boolean), 0x0004,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_sco_packet_type_ev3,
|
|
|
|
{ "Packet Type EV3", "bthci_cmd.sco_packet_type_ev3",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cmd_boolean), 0x0008,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_sco_packet_type_ev4,
|
|
|
|
{ "Packet Type EV4", "bthci_cmd.sco_packet_type_ev4",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cmd_boolean), 0x0010,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_sco_packet_type_ev5,
|
|
|
|
{ "Packet Type EV5", "bthci_cmd.sco_packet_type_ev5",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cmd_boolean), 0x0020,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_sco_packet_type_2ev3,
|
|
|
|
{ "Packet Type 2-EV3", "bthci_cmd.sco_packet_type_2ev3",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cmd_boolean), 0x0040,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_sco_packet_type_3ev3,
|
|
|
|
{ "Packet Type 3-EV3", "bthci_cmd.sco_packet_type_3ev3",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cmd_boolean), 0x0080,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_sco_packet_type_2ev5,
|
|
|
|
{ "Packet Type 2-EV5", "bthci_cmd.sco_packet_type_2ev5",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cmd_boolean), 0x0100,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_sco_packet_type_3ev5,
|
|
|
|
{ "Packet Type 3-EV5", "bthci_cmd.sco_packet_type_3ev5",
|
|
|
|
FT_UINT16, BASE_DEC, VALS(cmd_boolean), 0x0200,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_min_remote_timeout,
|
|
|
|
{"Min. Remote Timeout", "bthci_cmd.min_remote_timeout",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
"Min. Remote Timeout in baseband slots", HFILL}
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_min_local_timeout,
|
|
|
|
{"Min. Local Timeout", "bthci_cmd.min_local_timeout",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
"Min. Local Timeout in baseband slots", HFILL}
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_flush_packet_type,
|
|
|
|
{"Packet Type", "bthci_cmd.flush_packet_type",
|
|
|
|
FT_UINT8, BASE_DEC, VALS(cmd_flush_pkt_type), 0x0,
|
|
|
|
NULL, HFILL}
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_afh_ch_assessment_mode,
|
|
|
|
{"AFH Channel Assessment Mode", "bthci_cmd.afh_ch_assessment_mode",
|
|
|
|
FT_UINT8, BASE_DEC, VALS(cmd_en_disabled), 0x0,
|
|
|
|
NULL, HFILL}
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_afh_ch_classification,
|
|
|
|
{ "Channel Classification", "bthci_cmd.afh_ch_classification",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_which_clock,
|
|
|
|
{"Which Clock", "bthci_cmd.which_clock",
|
|
|
|
FT_UINT8, BASE_DEC, VALS(cmd_which_clock), 0x0,
|
|
|
|
NULL, HFILL}
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_io_capability,
|
|
|
|
{"IO Capability", "bthci_cmd.io_capability",
|
|
|
|
FT_UINT8, BASE_DEC, VALS(bthci_cmd_io_capability_vals), 0x0,
|
|
|
|
NULL, HFILL}
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_oob_data_present,
|
|
|
|
{"OOB Data Present", "bthci_cmd.oob_data_present",
|
|
|
|
FT_UINT8, BASE_DEC, VALS(bthci_cmd_oob_data_present_vals), 0x0,
|
|
|
|
NULL, HFILL}
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_auth_requirements,
|
|
|
|
{"Authentication Requirements", "bthci_cmd.auth_requirements",
|
|
|
|
FT_UINT8, BASE_DEC|BASE_EXT_STRING, &bthci_cmd_auth_req_vals_ext, 0x0,
|
|
|
|
NULL, HFILL}
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_passkey,
|
|
|
|
{"Passkey", "bthci_cmd.passkey",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL}
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_hash_c,
|
|
|
|
{"Hash C", "bthci_cmd.hash_c",
|
2012-10-22 12:49:04 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x0,
|
2012-03-12 14:40:09 +00:00
|
|
|
NULL, HFILL}
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_randomizer_r,
|
|
|
|
{"Randomizer R", "bthci_cmd.randomizer_r",
|
2012-10-22 12:49:04 +00:00
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x0,
|
2012-03-12 14:40:09 +00:00
|
|
|
NULL, HFILL}
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_simple_pairing_mode,
|
|
|
|
{"Simple Pairing Mode", "bthci_cmd.simple_pairing_mode",
|
|
|
|
FT_UINT8, BASE_DEC, VALS(cmd_en_disabled), 0x0,
|
|
|
|
NULL, HFILL}
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_simple_pairing_debug_mode,
|
|
|
|
{"Simple Pairing Debug Mode", "bthci_cmd.simple_pairing_debug_mode",
|
|
|
|
FT_UINT8, BASE_DEC, VALS(cmd_en_disabled), 0x0,
|
|
|
|
NULL, HFILL}
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_notification_type,
|
|
|
|
{"Notification Type", "bthci_cmd.notification_type",
|
2012-10-22 12:49:04 +00:00
|
|
|
FT_UINT8, BASE_DEC, VALS(bthci_cmd_notification_types), 0x0,
|
2012-03-12 14:40:09 +00:00
|
|
|
NULL, HFILL}
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_eir_data,
|
|
|
|
{"Data", "bthci_cmd.eir_data",
|
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x0,
|
2012-10-22 12:49:04 +00:00
|
|
|
NULL, HFILL}
|
2012-03-12 14:40:09 +00:00
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_eir_struct_length,
|
|
|
|
{ "Length", "bthci_cmd.eir_struct_length",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0,
|
|
|
|
"Structure Length", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_eir_struct_type,
|
|
|
|
{ "Type", "bthci_cmd.eir_data_type",
|
|
|
|
FT_UINT8, BASE_HEX|BASE_EXT_STRING, &bthci_cmd_eir_data_type_vals_ext, 0x0,
|
|
|
|
"Data Type", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_sc_uuid16,
|
|
|
|
{ "UUID", "bthci_cmd.service_class_uuid16",
|
|
|
|
FT_UINT16, BASE_HEX|BASE_EXT_STRING, &bthci_cmd_service_class_type_vals_ext, 0x0,
|
|
|
|
"16-bit Service Class UUID", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_sc_uuid32,
|
|
|
|
{ "UUID", "bthci_cmd.service_class_uuid32",
|
|
|
|
FT_UINT32, BASE_HEX, NULL, 0x0,
|
|
|
|
"32-bit Service Class UUID", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_sc_uuid128,
|
|
|
|
{ "UUID", "bthci_cmd.service_class_uuid128",
|
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x0,
|
|
|
|
"128-bit Service Class UUID", HFILL }
|
2012-10-22 12:49:04 +00:00
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_physical_link_handle,
|
|
|
|
{"Physical Link Handle", "bthci_cmd.physical_link_handle",
|
|
|
|
FT_UINT8, BASE_HEX, NULL, 0x0,
|
|
|
|
NULL, HFILL}
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_dedicated_amp_key_length,
|
|
|
|
{"Dedicated AMP Key Length", "bthci_cmd.dedicated_amp_key_length",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL}
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_dedicated_amp_key_type,
|
|
|
|
{"Dedicated AMP Key Type", "bthci_cmd.dedicated_amp_key_type",
|
|
|
|
FT_UINT8, BASE_DEC, VALS(bthci_cmd_amp_key_type), 0x0,
|
|
|
|
NULL, HFILL}
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_dedicated_amp_key,
|
|
|
|
{"Dedicated AMP Key Type", "bthci_cmd.dedicated_amp_key",
|
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL}
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_flow_spec,
|
|
|
|
{ "Flow Spec", "bthci_cmd.flow_spec",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_flow_spec_sdu_size,
|
|
|
|
{ "Maximum SDU Size", "bthci_cmd.sdu_size",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_flow_spec_sdu_arrival_time,
|
|
|
|
{ "SDU Inter-arrival Time (us)", "bthci_cmd.sdu_arrival_time",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_flow_spec_identifier,
|
|
|
|
{ "Identifier", "bthci_cmd.ident",
|
|
|
|
FT_UINT8, BASE_HEX, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_flow_spec_access_latency,
|
|
|
|
{ "Access Latency (us)", "bthci_cmd.access_latency",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_flow_spec_service_type,
|
|
|
|
{ "Service Type", "bthci_cmd.servicetype",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_flow_spec_servicetype), 0x0,
|
|
|
|
"Level of service required", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_flush_to_us,
|
|
|
|
{ "Flush Timeout (us)", "bthci_cmd.flushto",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_logical_link_handle,
|
|
|
|
{ "Logical Link Handle", "bthci_cmd.logical_link_handle",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0x0FFF,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
|
|
|
|
{ &hf_bthci_cmd_evt_mask2_00,
|
|
|
|
{ "Physical Link Complete", "bthci_cmd.evt_mask2_00",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x01,
|
|
|
|
"Physical Link Complete Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask2_01,
|
|
|
|
{ "Channel Selected", "bthci_cmd.evt_mask2_01",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x02,
|
|
|
|
"Channel Selected Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask2_02,
|
|
|
|
{ "Disconnection Physical Link", "bthci_cmd.evt_mask2_02",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x04,
|
|
|
|
"Disconnection Physical Link Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask2_03,
|
|
|
|
{ "Physical Link Loss Early Warning", "bthci_cmd.evt_mask2_03",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x08,
|
|
|
|
"Physical Link Loss Early Warning Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask2_04,
|
|
|
|
{ "Physical Link Recovery", "bthci_cmd.evt_mask2_04",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x10,
|
|
|
|
"Physical Link Recovery Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask2_05,
|
|
|
|
{ "Logical Link Complete", "bthci_cmd.evt_mask2_05",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x20,
|
|
|
|
"Logical Link Complete Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask2_06,
|
|
|
|
{ "Disconnection Logical Link Complete", "bthci_cmd.evt_mask2_06",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x40,
|
|
|
|
"Disconnection Logical Link Complete Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask2_07,
|
|
|
|
{ "Flow Spec Modify Complete", "bthci_cmd.evt_mask2_07",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x80,
|
|
|
|
"Flow Spec Modify Complete Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask2_10,
|
|
|
|
{ "Number Of Completed Data Blocks", "bthci_cmd.evt_mask2_10",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x01,
|
|
|
|
"Number Of Completed Data Blocks Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask2_11,
|
|
|
|
{ "AMP Start Test", "bthci_cmd.evt_mask2_11",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x02,
|
|
|
|
"AMP Start Test Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask2_12,
|
|
|
|
{ "AMP Test End", "bthci_cmd.evt_mask2_12",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x04,
|
|
|
|
"AMP Test End Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask2_13,
|
|
|
|
{ "AMP Receiver Report", "bthci_cmd.evt_mask2_13",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x08,
|
|
|
|
"AMP Receiver Report Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask2_14,
|
|
|
|
{ "Short Range Mode Change Complete", "bthci_cmd.evt_mask2_14",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x10,
|
|
|
|
"Short Range Mode Change Complete Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_evt_mask2_15,
|
|
|
|
{ "AMP Status Change", "bthci_cmd.evt_mask2_15",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x20,
|
|
|
|
"AMP Status Change Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_location_domain_aware,
|
|
|
|
{ "Location Domain Aware", "bthci_cmd.location_domain_aware",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_location_domain,
|
|
|
|
{ "Location Domain", "bthci_cmd.location_domain",
|
|
|
|
FT_STRING, BASE_NONE, NULL, 0x0,
|
|
|
|
"ISO 3166-1 Country Code", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_location_domain_options,
|
|
|
|
{ "Location Domain Options", "bthci_cmd.location_domain_options",
|
|
|
|
FT_STRING, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_location_options,
|
|
|
|
{ "Location Options", "bthci_cmd.location_options",
|
|
|
|
FT_UINT8, BASE_HEX, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_flow_control_mode,
|
|
|
|
{ "Flow Control Mode", "bthci_cmd.flow_control_mode",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_flow_ctrl_mode), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_tx_power_level_type,
|
|
|
|
{ "Tx Power Level Type", "bthci_cmd.tx_power_level_type",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_power_level_types), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_short_range_mode,
|
|
|
|
{ "Short Range Mode", "bthci_cmd.short_range_mode",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_en_disabled), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_enable_amp_recv_reports,
|
|
|
|
{ "Enable AMP Receiver Reports", "bthci_cmd.enable_amp_recv_reports",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_amp_recv_report_interval,
|
|
|
|
{ "AMP Receiver Report Interval (s)", "bthci_cmd.amp_recv_report_interval",
|
|
|
|
FT_UINT8, BASE_DEC, 0x0, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_length_so_far,
|
|
|
|
{ "Length So Far", "bthci_cmd.length_so_far",
|
|
|
|
FT_UINT16, BASE_DEC, 0x0, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_amp_assoc_length,
|
|
|
|
{ "AMP Assoc Length", "bthci_cmd.amp_assoc_length",
|
|
|
|
FT_UINT16, BASE_DEC, 0x0, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_amp_remaining_assoc_length,
|
|
|
|
{ "AMP Remaining Assoc Length", "bthci_cmd.amp_remaining_assoc_length",
|
|
|
|
FT_UINT16, BASE_DEC, 0x0, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_amp_assoc_fragment,
|
|
|
|
{ "AMP Assoc Fragment", "bthci_cmd.amp_assoc_fragment",
|
|
|
|
FT_BYTES, BASE_NONE, 0x0, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_le_supported_host,
|
|
|
|
{ "LE Supported Host", "bthci_cmd.le_supported_host",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_le_simultaneous_host,
|
|
|
|
{ "Simultaneous LE Host", "bthci_cmd.le_simlutaneous_host",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x0,
|
|
|
|
"Support for both LE and BR/EDR to same device", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_le_evt_mask_00,
|
|
|
|
{ "LE Connection Complete", "bthci_cmd.le_evt_mask_00",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x01,
|
|
|
|
"LE Connection Complete Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_le_evt_mask_01,
|
|
|
|
{ "LE Advertising Report", "bthci_cmd.le_evt_mask_01",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x02,
|
|
|
|
"LE Advertising Report Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_le_evt_mask_02,
|
|
|
|
{ "LE Connection Update Complete", "bthci_cmd.le_evt_mask_02",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x04,
|
|
|
|
"LE Connection Update Complete Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_le_evt_mask_03,
|
|
|
|
{ "LE Read Remote Used Features Complete", "bthci_cmd.le_evt_mask_03",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x08,
|
|
|
|
"LE Read Remote Used Features Complete Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_le_evt_mask_04,
|
|
|
|
{ "LE Long Term Key Request", "bthci_cmd.le_evt_mask_04",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x10,
|
|
|
|
"LE Long Term Key Request Bit", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_le_advts_interval_min,
|
|
|
|
{ "Advertising Interval Min", "bthci_cmd.le_advts_interval_min",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_le_advts_interval_max,
|
|
|
|
{ "Advertising Interval Max", "bthci_cmd.le_advts_interval_max",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_le_advts_type,
|
|
|
|
{ "Advertising Type", "bthci_cmd.le_advts_type",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_le_advertising_types), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_le_address_type,
|
|
|
|
{ "Address Type", "bthci_cmd.le_address_type",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(bthci_cmd_address_types_vals), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_le_own_address_type,
|
|
|
|
{ "Own Address Type", "bthci_cmd.le_own_address_type",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(bthci_cmd_address_types_vals), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_le_peer_address_type,
|
|
|
|
{ "Peer Address Type", "bthci_cmd.le_peer_address_type",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(bthci_cmd_address_types_vals), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_le_direct_address_type,
|
|
|
|
{ "Direct Address Type", "bthci_cmd.le_direct_address_type",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(bthci_cmd_address_types_vals), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_le_advts_channel_map_1,
|
|
|
|
{ "Channel 37", "bthci_cmd.le_advts_ch_map_1",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x01,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_le_advts_channel_map_2,
|
|
|
|
{ "Channel 38", "bthci_cmd.le_advts_ch_map_2",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x02,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_le_advts_channel_map_3,
|
|
|
|
{ "Channel 39", "bthci_cmd.le_advts_ch_map_3",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x04,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_le_advts_filter_policy,
|
|
|
|
{ "Advertising Filter Policy", "bthci_cmd.le_advts_filter_policy",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_le_advertising_filter_policy), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_le_data_length,
|
|
|
|
{ "Data Length", "bthci_cmd.le_data_length",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_le_advts_enable,
|
|
|
|
{ "Advertising Enable", "bthci_cmd.le_advts_enable",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_le_scan_enable,
|
|
|
|
{ "Scan Enable", "bthci_cmd.le_scan_enable",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_le_filter_dublicates,
|
|
|
|
{ "Filter Dublicates", "bthci_cmd.le_filter_dublicates",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_le_scan_type,
|
|
|
|
{ "Scan Type", "bthci_cmd.le_scan_type",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_le_scan_types), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_le_scan_interval,
|
|
|
|
{ "Scan Interval", "bthci_cmd.le_scan_interval",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_le_scan_window,
|
|
|
|
{ "Scan Window", "bthci_cmd.le_scan_window",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_le_scan_filter_policy,
|
|
|
|
{ "Scan Filter Policy", "bthci_cmd.le_scan_filter_policy",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_le_scan_filter_policy), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_le_initiator_filter_policy,
|
|
|
|
{ "Initiator Filter Policy", "bthci_cmd.le_initiator_filter_policy",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_init_filter_policy), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_le_con_interval_min,
|
|
|
|
{ "Connection Interval Min", "bthci_cmd.le_con_interval_min",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_le_con_interval_max,
|
|
|
|
{ "Connection Interval Max", "bthci_cmd.le_con_interval_max",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_le_con_latency,
|
|
|
|
{ "Connection Latency", "bthci_cmd.le_con_latency",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_le_supervision_timeout,
|
|
|
|
{ "Supervision Timeout", "bthci_cmd.le_supv_timeout",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_le_min_ce_length,
|
|
|
|
{ "Min CE Length", "bthci_cmd.le_min_ce_length",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
"Min. Connection Event Length", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_le_max_ce_length,
|
|
|
|
{ "Max CE Length", "bthci_cmd.le_max_ce_length",
|
|
|
|
FT_UINT16, BASE_DEC, NULL, 0x0,
|
|
|
|
"Max. Connection Event Length", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_le_channel_map,
|
|
|
|
{ "Channel Map", "bthci_cmd.le_channel_map",
|
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_key,
|
|
|
|
{ "Key", "bthci_cmd.le_key",
|
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x0,
|
|
|
|
"Encryption Key", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_plaintext_data,
|
|
|
|
{ "Plaintext", "bthci_cmd.le_plaintext",
|
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_random_number,
|
|
|
|
{ "Random Number", "bthci_cmd.le_random_number",
|
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_encrypted_diversifier,
|
|
|
|
{ "Encrypted Diversifier", "bthci_cmd.le_encrypted_diversifier",
|
|
|
|
FT_UINT16, BASE_HEX, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_le_long_term_key,
|
|
|
|
{ "Long Term Key", "bthci_cmd.le_long_tem_key",
|
|
|
|
FT_BYTES, BASE_NONE, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_rx_freqency,
|
|
|
|
{ "Rx Frequency", "bthci_cmd.rx_freqency",
|
|
|
|
FT_UINT8, BASE_HEX, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_tx_freqency,
|
|
|
|
{ "Tx Frequency", "bthci_cmd.tx_freqency",
|
|
|
|
FT_UINT8, BASE_HEX, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_test_data_length,
|
|
|
|
{ "Test Data Length", "bthci_cmd.le_test_data_length",
|
|
|
|
FT_UINT8, BASE_DEC, NULL, 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_test_packet_payload,
|
|
|
|
{ "Packet Payload", "bthci_cmd.le_test_data_length",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_le_test_pkt_payload), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_appearance,
|
|
|
|
{ "Appearance", "bthci_cmd.le_appearance",
|
|
|
|
FT_UINT16, BASE_HEX, VALS(bthci_cmd_appearance_vals), 0x0,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_flags_limited_disc_mode,
|
|
|
|
{ "LE Limited Discoverable Mode", "bthci_cmd.le_flags_limit_disc_mode",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x01,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_flags_general_disc_mode,
|
|
|
|
{ "LE General Discoverable Mode", "bthci_cmd.le_flags_general_disc_mode",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x02,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_flags_bredr_not_support,
|
|
|
|
{ "BR/EDR Not Supported", "bthci_cmd.le_flags_bredr_not_supported",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x04,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_flags_le_bredr_support_ctrl,
|
|
|
|
{ "Simultaneous LE and BR/EDR to Same Device Capable (Controller)", "bthci_cmd.le_flags_bredr_support_ctrl",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x08,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_flags_le_bredr_support_host,
|
|
|
|
{ "Simultaneous LE and BR/EDR to Same Device Capable (Host)", "bthci_cmd.le_flags_bredr_support_host",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x10,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_flags_le_oob_data_present,
|
|
|
|
{ "OOB Data Present", "bthci_cmd.le_flags_le_oob_data_present",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x01,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_flags_le_oob_le_supported_host,
|
|
|
|
{ "LE Supported By Host", "bthci_cmd.le_flags_le_oob_le_supported_host",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x02,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_flags_le_oob_le_bredr_support,
|
|
|
|
{ "Simultaneous LE and BR/EDR to Same Device Capable (Host)", "bthci_cmd.le_flags_le_oob_le_bredr_support",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(cmd_boolean), 0x04,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_bthci_cmd_flags_le_oob_address_type,
|
|
|
|
{ "Address Type", "bthci_cmd.le_flags_le_oob_address_type",
|
|
|
|
FT_UINT8, BASE_HEX, VALS(bthci_cmd_address_types_vals), 0x08,
|
|
|
|
NULL, HFILL }
|
|
|
|
},
|
|
|
|
|
2012-03-12 14:40:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Setup protocol subtree array */
|
|
|
|
static gint *ett[] = {
|
|
|
|
&ett_bthci_cmd,
|
|
|
|
&ett_opcode,
|
|
|
|
&ett_eir_subtree,
|
2012-10-22 12:49:04 +00:00
|
|
|
&ett_eir_struct_subtree,
|
|
|
|
&ett_flow_spec_subtree
|
2012-03-12 14:40:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Register the protocol name and description */
|
|
|
|
proto_bthci_cmd = proto_register_protocol("Bluetooth HCI Command", "HCI_CMD", "bthci_cmd");
|
|
|
|
|
|
|
|
register_dissector("bthci_cmd", dissect_bthci_cmd, proto_bthci_cmd);
|
|
|
|
|
|
|
|
/* Required function calls to register the header fields and subtrees used */
|
|
|
|
proto_register_field_array(proto_bthci_cmd, hf, array_length(hf));
|
|
|
|
proto_register_subtree_array(ett, array_length(ett));
|
2006-05-10 10:38:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* If this dissector uses sub-dissector registration add a registration routine.
|
|
|
|
This format is required because a script is used to find these routines and
|
|
|
|
create the code that calls these routines.
|
|
|
|
*/
|
|
|
|
void
|
|
|
|
proto_reg_handoff_bthci_cmd(void)
|
|
|
|
{
|
2012-03-12 14:40:09 +00:00
|
|
|
dissector_handle_t bthci_cmd_handle;
|
|
|
|
bthci_cmd_handle = find_dissector("bthci_cmd");
|
|
|
|
dissector_add_uint("hci_h4.type", HCI_H4_TYPE_CMD, bthci_cmd_handle);
|
|
|
|
dissector_add_uint("hci_h1.type", BTHCI_CHANNEL_COMMAND, bthci_cmd_handle);
|
2006-05-10 10:38:53 +00:00
|
|
|
}
|
|
|
|
|
2012-10-09 10:36:04 +00:00
|
|
|
/*
|
|
|
|
* Editor modelines - http://www.wireshark.org/tools/modelines.html
|
|
|
|
*
|
|
|
|
* Local variables:
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* tab-width: 8
|
|
|
|
* indent-tabs-mode: nil
|
|
|
|
* End:
|
|
|
|
*
|
|
|
|
* vi: set shiftwidth=4 tabstop=8 expandtab:
|
|
|
|
* :indentSize=4:tabSize=8:noTabs=true:
|
|
|
|
*/
|