wifi: iwlwifi: mvm: remove EHT code from mac80211.c
authorJohannes Berg <johannes.berg@intel.com>
Sun, 4 Feb 2024 22:06:10 +0000 (00:06 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 8 Feb 2024 14:00:46 +0000 (15:00 +0100)
The code here is the pre-MLD API, but of course older FW
that doesn't support MLD APIs cannot support EHT. Remove
some code that shouldn't be there.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240204235836.bde5a9d87759.I4c69dd94416f92b0f1f53dd57dafecbec643600d@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c

index 65293b45a98fabda597ccbe64b33a63cbe9d6328..7b57ae9f8ad337d8b49bc22377f04bf3bc8991d7 100644 (file)
@@ -2611,9 +2611,7 @@ static void iwl_mvm_bss_info_changed_station(struct iwl_mvm *mvm,
         */
        if (changes & BSS_CHANGED_ASSOC && vif->cfg.assoc) {
                if ((vif->bss_conf.he_support &&
-                    !iwlwifi_mod_params.disable_11ax) ||
-                   (vif->bss_conf.eht_support &&
-                    !iwlwifi_mod_params.disable_11be))
+                    !iwlwifi_mod_params.disable_11ax))
                        iwl_mvm_cfg_he_sta(mvm, vif, mvmvif->deflink.ap_sta_id);
 
                iwl_mvm_mac_ctxt_recalc_tsf_id(mvm, vif);
@@ -2622,10 +2620,7 @@ static void iwl_mvm_bss_info_changed_station(struct iwl_mvm *mvm,
        /* Update MU EDCA params */
        if (changes & BSS_CHANGED_QOS && mvmvif->associated &&
            vif->cfg.assoc &&
-           ((vif->bss_conf.he_support &&
-             !iwlwifi_mod_params.disable_11ax) ||
-            (vif->bss_conf.eht_support &&
-             !iwlwifi_mod_params.disable_11be)))
+           (vif->bss_conf.he_support && !iwlwifi_mod_params.disable_11ax))
                iwl_mvm_cfg_he_sta(mvm, vif, mvmvif->deflink.ap_sta_id);
 
        /*
@@ -3737,10 +3732,8 @@ iwl_mvm_sta_state_auth_to_assoc(struct ieee80211_hw *hw,
                 * the default bss_conf
                 */
                if (!mvm->mld_api_is_used &&
-                   ((vif->bss_conf.he_support &&
-                     !iwlwifi_mod_params.disable_11ax) ||
-                   (vif->bss_conf.eht_support &&
-                    !iwlwifi_mod_params.disable_11be)))
+                   (vif->bss_conf.he_support &&
+                    !iwlwifi_mod_params.disable_11ax))
                        iwl_mvm_cfg_he_sta(mvm, vif, mvm_sta->deflink.sta_id);
        } else if (vif->type == NL80211_IFTYPE_STATION) {
                iwl_mvm_vif_set_he_support(hw, vif, sta, true);