]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
wifi: iwlwifi: mld: set fast-balance scan for active EMLSR
authorPagadala Yesu Anjaneyulu <pagadala.yesu.anjaneyulu@intel.com>
Wed, 27 May 2026 20:05:07 +0000 (23:05 +0300)
committerMiri Korenblit <miriam.rachel.korenblit@intel.com>
Wed, 3 Jun 2026 14:02:54 +0000 (17:02 +0300)
While associated to MLD AP with active EMLSR, set all scan
operations as fast-balance scans. The only exception is when a
fragmented scan is planned (high traffic or low latency), in
which case the fragmented scan is preserved.

Signed-off-by: Pagadala Yesu Anjaneyulu <pagadala.yesu.anjaneyulu@intel.com>
Link: https://patch.msgid.link/20260527230313.32d278842b0e.Ia3d73e4085eefc4d3921e93de4107b2d6a6f922e@changeid
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
drivers/net/wireless/intel/iwlwifi/mld/scan.c

index b3836423e53ee216e23d2cf9c8b00773850b663a..d80a1cfc2ed55e72074339e4d2f11c7b7d922e74 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
 /*
- * Copyright (C) 2024-2025 Intel Corporation
+ * Copyright (C) 2024-2026 Intel Corporation
  */
 #include <linux/crc32.h>
 
@@ -237,6 +237,12 @@ iwl_mld_scan_type iwl_mld_get_scan_type(struct iwl_mld *mld,
            vif->type != NL80211_IFTYPE_P2P_DEVICE)
                return IWL_SCAN_TYPE_FRAGMENTED;
 
+       /* While associated to MLD AP with active EMLSR, set all scan
+        * operations as fast-balance scans.
+        */
+       if (iwl_mld_emlsr_active(vif))
+               return IWL_SCAN_TYPE_FAST_BALANCE;
+
        /* In case of DCM with P2P GO set all scan requests as
         * fast-balance scan
         */