Skip to content

Commit cb377df

Browse files
gomordlucacoelho
authored andcommitted
iwlwifi: consider HE capability when setting LDPC
The AP may set the LDPC capability only in HE (IEEE80211_HE_PHY_CAP1), but we were checking it only in the HT capabilities. If we don't use this capability when required, the DSP gets the wrong configuration in HE and doesn't work properly. Signed-off-by: Mordechay Goodstein <[email protected]> Fixes: befebbb ("iwlwifi: rs: consider LDPC capability in case of HE") Signed-off-by: Luca Coelho <[email protected]> Link: https://lore.kernel.org/r/iwlwifi.20200306151128.492d167c1a25.I1ad1353dbbf6c99ae57814be750f41a1c9f7f4ac@changeid
1 parent 089e501 commit cb377df

File tree

1 file changed

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

1 file changed

+5
-1
lines changed

drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,11 @@ static u16 rs_fw_get_config_flags(struct iwl_mvm *mvm,
147147
(vht_ena && (vht_cap->cap & IEEE80211_VHT_CAP_RXLDPC))))
148148
flags |= IWL_TLC_MNG_CFG_FLAGS_LDPC_MSK;
149149

150-
/* consider our LDPC support in case of HE */
150+
/* consider LDPC support in case of HE */
151+
if (he_cap->has_he && (he_cap->he_cap_elem.phy_cap_info[1] &
152+
IEEE80211_HE_PHY_CAP1_LDPC_CODING_IN_PAYLOAD))
153+
flags |= IWL_TLC_MNG_CFG_FLAGS_LDPC_MSK;
154+
151155
if (sband->iftype_data && sband->iftype_data->he_cap.has_he &&
152156
!(sband->iftype_data->he_cap.he_cap_elem.phy_cap_info[1] &
153157
IEEE80211_HE_PHY_CAP1_LDPC_CODING_IN_PAYLOAD))

0 commit comments

Comments
 (0)