Fix some field type errors.
authorGuy Harris <guy@alum.mit.edu>
Sat, 29 Apr 2017 10:31:58 +0000 (03:31 -0700)
committerGuy Harris <guy@alum.mit.edu>
Sat, 29 Apr 2017 10:33:01 +0000 (10:33 +0000)
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>
epan/dissectors/packet-ixveriwave.c

index cde3724ea31b3dbf0235d6e9fe8ac650eef84cc8..489b6240a35efa482c61612956baadf1bb2cae2e 100644 (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