aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-bthci_evt.c
diff options
context:
space:
mode:
authorJakub Pawlowski <jpawlowski@google.com>2016-12-12 19:27:58 -0800
committerAnders Broman <a.broman58@gmail.com>2016-12-13 08:56:32 +0000
commit8d59678483bc90d0fad356338e3dc413e4655585 (patch)
tree8845cbef0a6c022d6ded8da59b3f7527bdcc52e0 /epan/dissectors/packet-bthci_evt.c
parent693dcd276e556033b1176d16f4ea257ae3e68ea5 (diff)
Bluetooth: BTLE: Add new commands parsing
Add "LE Set Extended Advertising Parameters" and "LE Set Extended Advertising Parameters" commands parsing. Change-Id: Ibcc9f145694e54710da3a11ade237f7132674366 Reviewed-on: https://code.wireshark.org/review/19234 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> 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.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/epan/dissectors/packet-bthci_evt.c b/epan/dissectors/packet-bthci_evt.c
index a3cd700e3e..da92fc4118 100644
--- a/epan/dissectors/packet-bthci_evt.c
+++ b/epan/dissectors/packet-bthci_evt.c
@@ -389,6 +389,7 @@ static int hf_bthci_evt_mws_to_mws_baud_rate = -1;
static int hf_bthci_evt_mws_from_mws_baud_rates = -1;
static int hf_bthci_evt_mws_from_mws_baud_rates_tranport_item = -1;
static int hf_bthci_evt_mws_from_mws_baud_rate = -1;
+static int hf_bthci_evt_selected_tx_power = -1;
static const int *hfx_bthci_evt_le_features[] = {
&hf_bthci_evt_le_features_encryption,
@@ -4001,6 +4002,16 @@ dissect_bthci_evt_command_complete(tvbuff_t *tvb, int offset,
break;
}
+ case 0x2036: /* LE Set Extended Advertising Parameters */
+ {
+ 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_selected_tx_power, tvb, offset, 1, ENC_LITTLE_ENDIAN);
+ offset += 1;
+ break;
+ }
+
case 0x140C: /* Get MWS Transport Layer Configuration */ {
guint8 transports;
guint8 i_transport;
@@ -6992,6 +7003,11 @@ proto_register_bthci_evt(void)
{ "From MWS Baud Rate", "bthci_evt.mws.from_mws_baud_rates.item.baud_rate",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }
+ },
+ { &hf_bthci_evt_selected_tx_power,
+ { "Selected TX Power (dBm)", "bthci_evt.transmit_power_level",
+ FT_INT8, BASE_DEC, NULL, 0x0,
+ NULL, HFILL }
}
};