wifi: iwlwifi: mvm: skip MEI update for MLO
authorJohannes Berg <johannes.berg@intel.com>
Wed, 29 Mar 2023 07:05:09 +0000 (10:05 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 30 Mar 2023 10:08:36 +0000 (12:08 +0200)
For now, if using MLO, skip the MEI update. It probably
needs new API for multiple channels.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230329100039.aeaa746b14e7.I42b084f3cdc20bb52cf867700a3c2e1f5e7b4ecb@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c

index 9eb95ed..294e1c1 100644 (file)
@@ -3464,7 +3464,6 @@ static void iwl_mvm_mei_host_associated(struct iwl_mvm *mvm,
        struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
        struct iwl_mei_conn_info conn_info = {
                .ssid_len = vif->cfg.ssid_len,
-               .channel = vif->bss_conf.chandef.chan->hw_value,
        };
 
        if (test_bit(IWL_MVM_STATUS_IN_HW_RESTART, &mvm->status))
@@ -3473,6 +3472,12 @@ static void iwl_mvm_mei_host_associated(struct iwl_mvm *mvm,
        if (!mvm->mei_registered)
                return;
 
+       /* FIXME: MEI needs to be updated for MLO */
+       if (!vif->bss_conf.chandef.chan)
+               return;
+
+       conn_info.channel = vif->bss_conf.chandef.chan->hw_value;
+
        switch (mvm_sta->pairwise_cipher) {
        case WLAN_CIPHER_SUITE_TKIP:
                conn_info.pairwise_cipher = IWL_MEI_CIPHER_TKIP;