diff options
author | Allan Møller Madsen <almomadk@gmail.com> | 2017-02-05 16:03:34 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2017-02-07 05:28:22 +0000 |
commit | 6e761f0ac00395ed8c964ac0414e0dc704f54d23 (patch) | |
tree | 17ff1f824300b8e720ef45845768a55abeb64375 /epan/dissectors/packet-bthci_evt.c | |
parent | 1ec2a69c8a133d1f524bd146bbf3d9814bd62077 (diff) |
Add dissection of Bluetooth 5.0 AE related HCI commands
Added the following batch of HCI commands:
LE Read Maximum Advertising Data Length
LE Read Number of Supported Advertising Sets
LE Remove Advertising Set
LE Set Periodic Advertising Data
LE Set Periodic Advertising Enable
LE Set Extended Scan Parameters
LE Set Extended Scan Enable
LE Extended Create Connection
Corrected min/max interval field sizes of LE Set Extended
Advertising Parameters command and updated LE Set Extended
Advertising Enable command to use subtree for each set.
Change-Id: Id9c08189a76a0a4adc89b669b50d832f68a929aa
Signed-off-by: Allan Møller Madsen <almomadk@gmail.com>
Reviewed-on: https://code.wireshark.org/review/19958
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-bthci_evt.c')
-rw-r--r-- | epan/dissectors/packet-bthci_evt.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/epan/dissectors/packet-bthci_evt.c b/epan/dissectors/packet-bthci_evt.c index 7ed41b4102..5da1e8d42f 100644 --- a/epan/dissectors/packet-bthci_evt.c +++ b/epan/dissectors/packet-bthci_evt.c @@ -418,6 +418,8 @@ static int hf_bthci_evt_le_address_type = -1; static int hf_bthci_evt_le_rssi = -1; static int hf_bthci_evt_le_tx_phy = -1; static int hf_bthci_evt_le_rx_phy = -1; +static int hf_bthci_evt_max_adv_data_length = -1; +static int hf_bthci_evt_num_supported_adv_sets = -1; static const int *hfx_bthci_evt_le_features[] = { &hf_bthci_evt_le_features_encryption, @@ -4253,6 +4255,26 @@ dissect_bthci_evt_command_complete(tvbuff_t *tvb, int offset, break; } + case 0x203A: /* LE Read Maximum Advertising Data Length */ + { + proto_tree_add_item(tree, hf_bthci_evt_status, tvb, offset, 1, ENC_LITTLE_ENDIAN); + send_hci_summary_status_tap(tvb_get_guint8(tvb, offset), pinfo, bluetooth_data); + offset += 1; + proto_tree_add_item(tree, hf_bthci_evt_max_adv_data_length, tvb, offset, 2, ENC_LITTLE_ENDIAN); + offset += 2; + break; + } + + case 0x203B: /* LE Read Number of Supported Advertising Sets */ + { + proto_tree_add_item(tree, hf_bthci_evt_status, tvb, offset, 1, ENC_LITTLE_ENDIAN); + send_hci_summary_status_tap(tvb_get_guint8(tvb, offset), pinfo, bluetooth_data); + offset += 1; + proto_tree_add_item(tree, hf_bthci_evt_num_supported_adv_sets, tvb, offset, 1, ENC_LITTLE_ENDIAN); + offset += 1; + break; + } + case 0x0441: /* Set Connectionless Slave Broadcast */ case 0x0442: /* Set Connectionless Slave Broadcast Receive */ case 0x0C70: /* Set MWS Signaling */ @@ -7457,6 +7479,16 @@ proto_register_bthci_evt(void) { "Rx PHY", "bthci_evt.le_rx_phy", FT_UINT8, BASE_HEX|BASE_EXT_STRING, &bthci_cmd_le_phy_vals_ext, 0x0, NULL, HFILL } + }, + { &hf_bthci_evt_max_adv_data_length, + { "Maximum Advertising Data Length", "bthci_evt.max_adv_data_length", + FT_UINT16, BASE_DEC, NULL, 0x0, + NULL, HFILL } + }, + { &hf_bthci_evt_num_supported_adv_sets, + { "Number of Supported Advertising Sets", "bthci_evt.num_supported_adv_sets", + FT_UINT8, BASE_DEC, NULL, 0x0, + NULL, HFILL } } }; |