qcacld-3.0: Fix pack and unpack EHT-MCS map (BW = 160 MHz) issue

As a part of eht cap pack and unpack, EHT MCS map (BW = 160 MHz)
is present only if B2 of the Supported Channel Width Set field
in the HE PHY capabilities information field is 1.

Change-Id: I24519b27e67219a9d4611636e2c02af4b82b17ec
CRs-Fixed: 3258157
This commit is contained in:
Deeksha Gupta
2022-08-01 18:39:13 +05:30
committed by Madan Koyyalamudi
parent 6c9cb8b5b4
commit cd451c20c6

View File

@@ -8279,10 +8279,7 @@ QDF_STATUS lim_ieee80211_unpack_ehtcap(const uint8_t *eht_cap_ie,
idx++;
}
if ((dot11f_he_cap.chan_width_6 | dot11f_he_cap.chan_width_5 |
dot11f_he_cap.chan_width_4 | dot11f_he_cap.chan_width_3 |
dot11f_he_cap.chan_width_2 | dot11f_he_cap.chan_width_1 |
dot11f_he_cap.chan_width_0) == 1) {
if (dot11f_he_cap.chan_width_2 == 1) {
dot11f_eht_cap->bw_160_rx_max_nss_for_mcs_0_to_9 =
ehtcap_ie_get(ehtcap->mcs_nss_map_bytes[idx],
EHTCAP_RX_MCS_NSS_MAP_IDX,
@@ -8697,10 +8694,7 @@ void lim_ieee80211_pack_ehtcap(uint8_t *ie, tDot11fIEeht_cap dot11f_eht_cap,
idx++;
}
if ((dot11f_he_cap.chan_width_6 | dot11f_he_cap.chan_width_5 |
dot11f_he_cap.chan_width_4 | dot11f_he_cap.chan_width_3 |
dot11f_he_cap.chan_width_2 | dot11f_he_cap.chan_width_1 |
dot11f_he_cap.chan_width_0) == 1) {
if (dot11f_he_cap.chan_width_2 == 1) {
val = dot11f_eht_cap.bw_160_rx_max_nss_for_mcs_0_to_9;
ehtcap_ie_set(&ehtcap->mcs_nss_map_bytes[idx],
EHTCAP_RX_MCS_NSS_MAP_IDX,