You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
2.6 KiB
65 lines
2.6 KiB
From 490affbc4f7ffa0df7827f805be8cd2de63dc7cb Mon Sep 17 00:00:00 2001
|
|
From: Eugene Syromiatnikov <esyr@redhat.com>
|
|
Date: Thu, 5 Sep 2019 16:53:03 +0200
|
|
Subject: [PATCH 04/43] Revert "iwlwifi: rs: consider LDPC capability in case
|
|
of HE"
|
|
|
|
This reverts commit befebbb30af00386bb1579efcdf1bb2d0c574593.
|
|
---
|
|
drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c | 16 +++++-----------
|
|
1 file changed, 5 insertions(+), 11 deletions(-)
|
|
|
|
Index: src/drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c
|
|
===================================================================
|
|
--- src.orig/drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c 2019-09-06 01:25:40.953350009 +0200
|
|
+++ src/drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c 2019-09-06 01:25:41.121347866 +0200
|
|
@@ -116,9 +116,8 @@
|
|
return supp;
|
|
}
|
|
|
|
-static u16 rs_fw_get_config_flags(struct iwl_mvm *mvm,
|
|
- struct ieee80211_sta *sta,
|
|
- struct ieee80211_supported_band *sband)
|
|
+static u16 rs_fw_set_config_flags(struct iwl_mvm *mvm,
|
|
+ struct ieee80211_sta *sta)
|
|
{
|
|
struct ieee80211_sta_ht_cap *ht_cap = &sta->ht_cap;
|
|
struct ieee80211_sta_vht_cap *vht_cap = &sta->vht_cap;
|
|
@@ -148,12 +147,6 @@
|
|
(vht_ena && (vht_cap->cap & IEEE80211_VHT_CAP_RXLDPC))))
|
|
flags |= IWL_TLC_MNG_CFG_FLAGS_LDPC_MSK;
|
|
|
|
- /* consider our LDPC support in case of HE */
|
|
- if (sband->iftype_data && sband->iftype_data->he_cap.has_he &&
|
|
- !(sband->iftype_data->he_cap.he_cap_elem.phy_cap_info[1] &
|
|
- IEEE80211_HE_PHY_CAP1_LDPC_CODING_IN_PAYLOAD))
|
|
- flags &= ~IWL_TLC_MNG_CFG_FLAGS_LDPC_MSK;
|
|
-
|
|
if (he_cap && he_cap->has_he &&
|
|
(he_cap->he_cap_elem.phy_cap_info[3] &
|
|
IEEE80211_HE_PHY_CAP3_DCM_MAX_CONST_RX_MASK))
|
|
@@ -376,13 +369,13 @@
|
|
struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta);
|
|
struct iwl_lq_sta_rs_fw *lq_sta = &mvmsta->lq_sta.rs_fw;
|
|
u32 cmd_id = iwl_cmd_id(TLC_MNG_CONFIG_CMD, DATA_PATH_GROUP, 0);
|
|
- struct ieee80211_supported_band *sband = hw->wiphy->bands[band];
|
|
+ struct ieee80211_supported_band *sband;
|
|
u16 max_amsdu_len = rs_fw_get_max_amsdu_len(sta);
|
|
struct iwl_tlc_config_cmd cfg_cmd = {
|
|
.sta_id = mvmsta->sta_id,
|
|
.max_ch_width = update ?
|
|
rs_fw_bw_from_sta_bw(sta) : RATE_MCS_CHAN_WIDTH_20,
|
|
- .flags = cpu_to_le16(rs_fw_get_config_flags(mvm, sta, sband)),
|
|
+ .flags = cpu_to_le16(rs_fw_set_config_flags(mvm, sta)),
|
|
.chains = rs_fw_set_active_chains(iwl_mvm_get_valid_tx_ant(mvm)),
|
|
.sgi_ch_width_supp = rs_fw_sgi_cw_support(sta),
|
|
.max_mpdu_len = cpu_to_le16(max_amsdu_len),
|
|
@@ -395,6 +388,7 @@
|
|
#ifdef CONFIG_IWLWIFI_DEBUGFS
|
|
iwl_mvm_reset_frame_stats(mvm);
|
|
#endif
|
|
+ sband = hw->wiphy->bands[band];
|
|
rs_fw_set_supp_rates(sta, sband, &cfg_cmd);
|
|
|
|
/*
|