Skip to content

Commit

Permalink
wifi: iwlwifi: mvm: support EMLSR on WH/PE
Browse files Browse the repository at this point in the history
Unlike FM which only supported EMLSR on B-step and later, here
it can be supported starting from A-step.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20241231135726.65a3b822e002.I4d6f10e02686f1cc159121cf702d6b747cab5b8a@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Johannes Berg committed Jan 13, 2025
1 parent 5337d4c commit 2a42868
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -1732,12 +1732,19 @@ 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);

return false;
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,
Expand Down

0 comments on commit 2a42868

Please sign in to comment.