From Vladimir Koutny:
authorjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 16 Sep 2008 05:43:36 +0000 (05:43 +0000)
committerjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 16 Sep 2008 05:43:36 +0000 (05:43 +0000)
The size of selected_registrar fiels in WPS IE should be 1b, not 2b
(it is defined as BOOL in WPS specs).

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26214 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-wps.c

index ce6bbc0d537c9afb9e982c5f007c013265c9835f..5bcfb930e83eb621d64b548f897c62104e310dcd 100644 (file)
@@ -1090,7 +1090,7 @@ dissect_wps_tlvs(proto_tree *eap_tree, tvbuff_t *tvb, int offset,
       break;
 
     case WPS_TLV_TYPE_SELECTED_REGISTRAR:
-      tmp_item = proto_tree_add_item(tlv_root, hf_eapwps_tlv_selected_registrar, tvb, offset+4, 2, FALSE);
+      tmp_item = proto_tree_add_item(tlv_root, hf_eapwps_tlv_selected_registrar, tvb, offset+4, 1, FALSE);
       hfindex = hf_eapwps_tlv_selected_registrar;
 
       break;
@@ -1715,7 +1715,7 @@ proto_register_wps(void)
 
     { &hf_eapwps_tlv_selected_registrar, 
       { "Selected Registrar", "wps.selected_registrar", 
-       FT_UINT16, BASE_HEX, NULL, 0x0, "Selected Registrar", HFILL }},
+       FT_UINT8, BASE_HEX, NULL, 0x0, "Selected Registrar", HFILL }},
 
     { &hf_eapwps_tlv_serial_number, 
       { "Serial Number", "wps.serial_number",