Fix some field type errors.

Don't add FT_BOOLEAN and FT_NONE fields with proto_tree_add_uint().

Change-Id: I3c89aa161775fc639e6a7306282b55649a3c473a
Reviewed-on: https://code.wireshark.org/review/21406
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2017-04-29 03:31:58 -07:00
parent cc9b38a734
commit e3f49280de
1 changed files with 3 additions and 3 deletions

View File

@ -1007,8 +1007,8 @@ dissect_ixveriwave(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* da
if (tree) {
rfid = tvb_get_guint8(tvb, offset);
vwrft = proto_tree_add_uint(common_tree, hf_radiotap_rf_info,
tvb, offset, 76, rfid);
vwrft = proto_tree_add_item(common_tree, hf_radiotap_rf_info,
tvb, offset, 76, ENC_NA);
proto_item_append_text(vwrft, " (RFID = %u)",rfid);
vw_rfinfo_tree = proto_item_add_subtree(vwrft, ett_radiotap_rf);
@ -2068,7 +2068,7 @@ wlantap_dissect(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, proto_tree
if (plcp_type)
proto_tree_add_uint(vw_l1info_tree, hf_radiotap_nss, tvb, offset, 1, nss);
proto_tree_add_uint(vw_l1info_tree, hf_radiotap_vwf_txf, tvb, offset, 1, direction);
proto_tree_add_boolean(vw_l1info_tree, hf_radiotap_vwf_txf, tvb, offset, 1, direction);
offset++;
/* New pieces of lines for