Bluetooth: HCI Vendor: Fix for "Enable WBS" command

Codec value for mSBC is 0x02 (not 0x01), also "Codec" field
does not appear when Codec state in Disable.

Change-Id: I4f0b27d0dc8659fdc054eaf18b54a42aad60275b
Reviewed-on: https://code.wireshark.org/review/6899
Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com>
This commit is contained in:
Michal Labedzki 2015-01-17 15:07:47 +01:00
parent 359ff3100b
commit c4f08ec0f9
1 changed files with 6 additions and 3 deletions

View File

@ -223,7 +223,7 @@ static const value_string codec_state_vals[] = {
static const value_string codec_vals[] = {
{ 0x00, "None" },
{ 0x01, "CVSD" },
{ 0x01, "mSBC" },
{ 0x02, "mSBC" },
{ 0, NULL }
};
@ -553,10 +553,13 @@ dissect_bthci_vendor_broadcom(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tre
break;
case 0x007E: /* Enable WBS */
proto_tree_add_item(main_tree, hf_codec_state, tvb, offset, 1, ENC_NA);
status = tvb_get_guint8(tvb, offset);
offset += 1;
proto_tree_add_item(main_tree, hf_codec, tvb, offset, 2, ENC_LITTLE_ENDIAN);
offset += 2;
if (status == 0x01) { /* Enable */
proto_tree_add_item(main_tree, hf_codec, tvb, offset, 2, ENC_LITTLE_ENDIAN);
offset += 2;
}
break;
case 0x0154: /* LE Multi Adveritising */
proto_tree_add_item(main_tree, hf_le_multi_advertising_subcode, tvb, offset, 1, ENC_NA);