diff options
author | Michal Labedzki <michal.labedzki@tieto.com> | 2016-01-15 15:37:35 +0100 |
---|---|---|
committer | Michal Labedzki <michal.labedzki@tieto.com> | 2016-02-06 11:33:55 +0000 |
commit | 26e6275bad81412a137318b04a0d2798fbb6056e (patch) | |
tree | 196172de196cf0d453bad8bb424338a0868eaea1 /epan/dissectors/packet-btle.c | |
parent | caf594bb3c8729dfe45a406c755f3f914393b675 (diff) |
Bluetooth: BTLE: Fix Random Rx/Tx BdAddr bit presentation
Random Rx/Tx bit are properly decoded but incorrect present
in parent tree.
Change-Id: I4c31d8e77b1adb5f821da6074bde5dff400d6c04
Reviewed-on: https://code.wireshark.org/review/13738
Petri-Dish: Michal Labedzki <michal.labedzki@tieto.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com>
Diffstat (limited to 'epan/dissectors/packet-btle.c')
-rw-r--r-- | epan/dissectors/packet-btle.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-btle.c b/epan/dissectors/packet-btle.c index f79749a015..9a405ec7ee 100644 --- a/epan/dissectors/packet-btle.c +++ b/epan/dissectors/packet-btle.c @@ -427,10 +427,10 @@ dissect_btle(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) proto_tree_add_item(advertising_header_tree, hf_advertising_header_randomized_rx, tvb, offset, 1, ENC_LITTLE_ENDIAN); } proto_tree_add_item(advertising_header_tree, hf_advertising_header_pdu_type, tvb, offset, 1, ENC_LITTLE_ENDIAN); - proto_item_append_text(advertising_header_item, " (PDU Type: %s, TxAdd=%s, RxAdd=%s)", + proto_item_append_text(advertising_header_item, " (PDU Type: %s, RandomRxBdAddr=%s, RandomTxBdAddr=%s)", val_to_str_ext_const(pdu_type, &pdu_type_vals_ext, "Unknown"), - (tvb_get_guint8(tvb, offset) & 0x20) ? "true" : "false", - (tvb_get_guint8(tvb, offset) & 0x10) ? "true" : "false"); + (tvb_get_guint8(tvb, offset) & 0x80) ? "true" : "false", + (tvb_get_guint8(tvb, offset) & 0x40) ? "true" : "false"); offset += 1; col_set_str(pinfo->cinfo, COL_INFO, val_to_str_ext_const(pdu_type, &pdu_type_vals_ext, "Unknown")); |