]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: iwlwifi: allow fast resume on ax200
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 28 Oct 2024 11:54:53 +0000 (13:54 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 7 Nov 2024 13:42:29 +0000 (14:42 +0100)
This feature can be used on ax200 as well. It'll avoid to restart the
firmware upon suspend / resume flow. Doing so also avoids releasing and
re-allocating all the device related memory which makes the memory's
subsystem task easier.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20241028135215.514efe0ce4c7.I60061277526302a75cadbba10452e94c54763f13@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c

index 7c60519905690d67219a4c34a8652a276776963e..4616a5b394c0ecc8f7bfc37491d7533d9611f7bd 100644 (file)
@@ -1371,7 +1371,7 @@ void __iwl_mvm_mac_stop(struct iwl_mvm *mvm, bool suspend)
                iwl_mvm_rm_aux_sta(mvm);
 
        if (suspend &&
-           mvm->trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_AX210)
+           mvm->trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22000)
                iwl_mvm_fast_suspend(mvm);
        else
                iwl_mvm_stop_device(mvm);