wifi: iwlwifi: mvm: enable support for MLO APIs
authorGregory Greenman <gregory.greenman@intel.com>
Tue, 18 Apr 2023 09:28:10 +0000 (12:28 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 20 Apr 2023 09:45:55 +0000 (11:45 +0200)
Enable driver's support for MLO APIs to unlock this functionality.

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

index 51399284e097a6709ccf4e533bf50e309e049704..0f01b62357c6fded37ad07cfcacbd7eec8cf8118 100644 (file)
@@ -305,6 +305,11 @@ int iwl_mvm_mac_setup_register(struct iwl_mvm *mvm)
        ieee80211_hw_set(hw, BUFF_MMPDU_TXQ);
        ieee80211_hw_set(hw, STA_MMPDU_TXQ);
 
+       /* Set this early since we need to have it for the check below */
+       if (mvm->mld_api_is_used &&
+           mvm->trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_BZ)
+               hw->wiphy->flags |= WIPHY_FLAG_SUPPORTS_MLO;
+
        /* With MLD FW API, it tracks timing by itself,
         * no need for any timing from the host
         */