forked from osmocom/wireshark
802.11: use switch for Aruba type
Change-Id: I7f0f10ca695fedab613156811fac60e5fa015bee Reviewed-on: https://code.wireshark.org/review/8000 Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
bc457cb02c
commit
db92f393d8
|
@ -16500,15 +16500,13 @@ dissect_ieee80211_mgt (guint16 fcf, tvbuff_t *tvb, packet_info *pinfo, proto_tre
|
|||
|
||||
proto_tree_add_item(aruba_tree, hf_ieee80211_aruba, tvb, offset, 2, ENC_BIG_ENDIAN);
|
||||
offset += 2;
|
||||
/* HeartBeat Sequence */
|
||||
if (type == 0x0005)
|
||||
{
|
||||
proto_tree_add_item(aruba_tree, hf_ieee80211_aruba_hb_seq, tvb, offset, 8, ENC_BIG_ENDIAN);
|
||||
}
|
||||
/* MTU Size */
|
||||
if (type == 0x0003)
|
||||
{
|
||||
proto_tree_add_item(aruba_tree, hf_ieee80211_aruba_mtu, tvb, offset, 2, ENC_BIG_ENDIAN);
|
||||
switch(type){
|
||||
case 0x0003: /* MTU Size */
|
||||
proto_tree_add_item(aruba_tree, hf_ieee80211_aruba_mtu, tvb, offset, 2, ENC_BIG_ENDIAN);
|
||||
break;
|
||||
case 0x0005: /* HeartBeat Sequence */
|
||||
proto_tree_add_item(aruba_tree, hf_ieee80211_aruba_hb_seq, tvb, offset, 8, ENC_BIG_ENDIAN);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue