diff options
author | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-11-04 12:25:01 +0000 |
---|---|---|
committer | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-11-04 12:25:01 +0000 |
commit | 167a30a6ef3113fa4c96b074eaf968ec225d1d63 (patch) | |
tree | fcf9eb7c76f08994fb9b031337a90decb3d5551c /epan/dissectors/packet-bthci_evt.c | |
parent | b5d8e71e1f45929e3e968efa1e97832e2993021a (diff) |
Append the opcode (that lead us to the command status) to the info column
svn path=/trunk/; revision=30817
Diffstat (limited to 'epan/dissectors/packet-bthci_evt.c')
-rw-r--r-- | epan/dissectors/packet-bthci_evt.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/epan/dissectors/packet-bthci_evt.c b/epan/dissectors/packet-bthci_evt.c index d816de445b..42bfc0eed3 100644 --- a/epan/dissectors/packet-bthci_evt.c +++ b/epan/dissectors/packet-bthci_evt.c @@ -1124,9 +1124,10 @@ dissect_bthci_evt_conn_packet_type_changed(tvbuff_t *tvb, int offset, packet_inf } static int -dissect_bthci_evt_command_status(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree) +dissect_bthci_evt_command_status(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree) { guint8 status_code; + guint16 opcode; status_code = tvb_get_guint8(tvb, offset); @@ -1141,9 +1142,13 @@ dissect_bthci_evt_command_status(tvbuff_t *tvb, int offset, packet_info *pinfo _ proto_tree_add_item(tree, hf_bthci_evt_num_command_packets, tvb, offset, 1, TRUE); offset++; + opcode = tvb_get_letohs(tvb, offset); proto_tree_add_item(tree, hf_bthci_evt_com_opcode, tvb, offset, 2, TRUE); offset+=2; + col_append_fstr(pinfo->cinfo, COL_INFO, " (%s)", + val_to_str(opcode, bthci_cmd_opcode_vals, "Unknown 0x%08x")); + return offset; } |