ieee80211: Fix Short SSID encodings

Change ENC_NA to ENC_LITTLE_ENDIAN for following Short SSID items:

- hf_ieee80211_ff_fils_discovery_short_ssid
- hf_ieee80211_short_ssid
This commit is contained in:
Josh Schmelzle 2023-01-17 21:19:38 -05:00 committed by Alexis La Goutte
parent f4e9b9d4a8
commit d31521e67e
1 changed files with 2 additions and 2 deletions

View File

@ -12135,7 +12135,7 @@ add_ff_fils_discovery(proto_tree *tree, tvbuff_t *tvb,
if(fc & PA_FILS_FC_SHORT_SSID) {
/* Always 4 bytes for Short SSID */
/* TODO add check of SSID Length */
proto_tree_add_item(tree, hf_ieee80211_ff_fils_discovery_short_ssid, tvb, offset, 4, ENC_NA);
proto_tree_add_item(tree, hf_ieee80211_ff_fils_discovery_short_ssid, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
} else {
ssid_length = (fc & PA_FILS_FC_SSID_LENGTH) + 1;
@ -29177,7 +29177,7 @@ dissect_short_ssid(tvbuff_t *tvb, packet_info *pinfo _U_,
while(len > 0){
proto_tree_add_item(tree, hf_ieee80211_short_ssid, tvb, offset, 4, ENC_NA);
proto_tree_add_item(tree, hf_ieee80211_short_ssid, tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
len -=4;
}