Skip to content

Commit a03e208

Browse files
egrumbachjmberg-intel
authored andcommitted
wifi: iwlwifi: mvm: use the right version of the rate API
The firmware uses the newer version of the API in recent devices. For older devices, we translate the rate to the new format. Don't parse the rate with old parsing macros. Signed-off-by: Emmanuel Grumbach <[email protected]> Reviewed-by: Johannes Berg <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250209143303.13d70cdcbb4e.Ic92193bce4013b70a823cfef250ee79c16cf7c17@changeid Signed-off-by: Johannes Berg <[email protected]>
1 parent d73d2c6 commit a03e208

File tree

1 file changed

+4
-4
lines changed
  • drivers/net/wireless/intel/iwlwifi/mvm

1 file changed

+4
-4
lines changed

drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,7 @@ iwl_mvm_decode_he_phy_ru_alloc(struct iwl_mvm_rx_phy_data *phy_data,
995995
*/
996996
u8 ru = le32_get_bits(phy_data->d1, IWL_RX_PHY_DATA1_HE_RU_ALLOC_MASK);
997997
u32 rate_n_flags = phy_data->rate_n_flags;
998-
u32 he_type = rate_n_flags & RATE_MCS_HE_TYPE_MSK_V1;
998+
u32 he_type = rate_n_flags & RATE_MCS_HE_TYPE_MSK;
999999
u8 offs = 0;
10001000

10011001
rx_status->bw = RATE_INFO_BW_HE_RU;
@@ -1050,13 +1050,13 @@ iwl_mvm_decode_he_phy_ru_alloc(struct iwl_mvm_rx_phy_data *phy_data,
10501050

10511051
if (he_mu)
10521052
he_mu->flags2 |=
1053-
le16_encode_bits(FIELD_GET(RATE_MCS_CHAN_WIDTH_MSK_V1,
1053+
le16_encode_bits(FIELD_GET(RATE_MCS_CHAN_WIDTH_MSK,
10541054
rate_n_flags),
10551055
IEEE80211_RADIOTAP_HE_MU_FLAGS2_BW_FROM_SIG_A_BW);
1056-
else if (he_type == RATE_MCS_HE_TYPE_TRIG_V1)
1056+
else if (he_type == RATE_MCS_HE_TYPE_TRIG)
10571057
he->data6 |=
10581058
cpu_to_le16(IEEE80211_RADIOTAP_HE_DATA6_TB_PPDU_BW_KNOWN) |
1059-
le16_encode_bits(FIELD_GET(RATE_MCS_CHAN_WIDTH_MSK_V1,
1059+
le16_encode_bits(FIELD_GET(RATE_MCS_CHAN_WIDTH_MSK,
10601060
rate_n_flags),
10611061
IEEE80211_RADIOTAP_HE_DATA6_TB_PPDU_BW);
10621062
}

0 commit comments

Comments
 (0)