Commit 2a42868d authored by Johannes Berg's avatar Johannes Berg
Browse files

wifi: iwlwifi: mvm: support EMLSR on WH/PE



Unlike FM which only supported EMLSR on B-step and later, here
it can be supported starting from A-step.

Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarMiri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20241231135726.65a3b822e002.I4d6f10e02686f1cc159121cf702d6b747cab5b8a@changeid


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 5337d4c4
Loading
Loading
Loading
Loading
+11 −4
Original line number Diff line number Diff line
@@ -1732,13 +1732,20 @@ static inline bool iwl_mvm_is_ctdp_supported(struct iwl_mvm *mvm)

static inline bool iwl_mvm_is_esr_supported(struct iwl_trans *trans)
{
	if ((CSR_HW_RFID_TYPE(trans->hw_rf_id) == IWL_CFG_RF_TYPE_FM) &&
	    !CSR_HW_RFID_IS_CDB(trans->hw_rf_id))
	if (CSR_HW_RFID_IS_CDB(trans->hw_rf_id))
		return false;

	switch (CSR_HW_RFID_TYPE(trans->hw_rf_id)) {
	case IWL_CFG_RF_TYPE_FM:
		/* Step A doesn't support eSR */
		return CSR_HW_RFID_STEP(trans->hw_rf_id);

	case IWL_CFG_RF_TYPE_WH:
	case IWL_CFG_RF_TYPE_PE:
		return true;
	default:
		return false;
	}
}

static inline int iwl_mvm_max_active_links(struct iwl_mvm *mvm,
					   struct ieee80211_vif *vif)