diff options
author | Richard Sharpe <realrichardsharpe@gmail.com> | 2022-10-13 18:31:13 -0700 |
---|---|---|
committer | Richard Sharpe <realrichardsharpe@gmail.com> | 2022-10-14 17:44:33 +0000 |
commit | b02fc552534e11139b4a158b6e5bbf78e4c1e77e (patch) | |
tree | ef7b7b6d5193130857639f348facbc6582b66b23 /epan/dissectors/packet-ieee80211.c | |
parent | d0ce6e5f81a4d2692e170d7241b3aae5af4b5eca (diff) |
ieee80211: Correct the number of bits for phi & psi in beamforming matrices
I noticed while implementing the equivalent for 802.11be that the number
of bits for phi and psi angles was reversed. Also, fixed the spelling of
AvgSNR.
Diffstat (limited to 'epan/dissectors/packet-ieee80211.c')
-rw-r--r-- | epan/dissectors/packet-ieee80211.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/dissectors/packet-ieee80211.c b/epan/dissectors/packet-ieee80211.c index 4eacf12a45..a43f208d98 100644 --- a/epan/dissectors/packet-ieee80211.c +++ b/epan/dissectors/packet-ieee80211.c @@ -15281,18 +15281,18 @@ dissect_compressed_beamforming_and_cqi(proto_tree *tree, tvbuff_t *tvb, packet_i */ if (feedback == 0) { /* SU */ if (codebook == 0) { - phi_bits = 2; psi_bits = 4; + psi_bits = 2; phi_bits = 4; } else { - phi_bits = 4; psi_bits = 6; + psi_bits = 4; phi_bits = 6; } } else if (feedback == 1) { /* MU */ if (grouping == 1) { - phi_bits = 9; psi_bits = 7; + psi_bits = 9; phi_bits = 7; } else { if (codebook == 0) { - phi_bits = 5; psi_bits = 7; + psi_bits = 5; phi_bits = 7; } else { - phi_bits = 7; psi_bits = 9; + psi_bits = 7; phi_bits = 9; } } } /* DO something about CQI etc. */ @@ -38836,7 +38836,7 @@ proto_register_ieee80211(void) FT_UINT40, BASE_HEX, NULL, 0x0, NULL, HFILL }}, {&hf_ieee80211_he_compressed_beamforming_report_snr, - {"AgvSNR", "wlan.he.mimo.beamforming_report.avgsnr", + {"AvgSNR", "wlan.he.mimo.beamforming_report.avgsnr", FT_INT8, BASE_DEC, NULL, 0x0, NULL, HFILL }}, {&hf_ieee80211_he_compressed_beamform_scidx, |