]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
wifi: iwlwifi: mld: disconnect only after 6 beacons without Rx
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Fri, 15 May 2026 12:15:00 +0000 (15:15 +0300)
committerMiri Korenblit <miriam.rachel.korenblit@intel.com>
Sat, 16 May 2026 20:31:25 +0000 (23:31 +0300)
After 4 missed beacons since last Rx, the firmware will send an NDP to the
AP. If the NDP is ACK'ed, it'll reset the missed_beacons_since_last_rx
counter.
Disconnecting after 4 beacons doesn't give enough time to the firmware
to send the NDP.

Wait until we get 6 missed beacons since last Rx before disconnecting.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Link: https://patch.msgid.link/20260515151352.c4ed0d849f98.Iefa2e8be9edfc74683997eea60bb53c2002f31f0@changeid
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
drivers/net/wireless/intel/iwlwifi/mld/constants.h

index e2a5eecc18c343d73cd2ea4e2a4570c04dc69924..890abcab3837410ea18f68b12d2b8de8605fc952 100644 (file)
@@ -1,11 +1,11 @@
 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
 /*
- * Copyright (C) 2024-2025 Intel Corporation
+ * Copyright (C) 2024-2026 Intel Corporation
  */
 #ifndef __iwl_mld_constants_h__
 #define __iwl_mld_constants_h__
 
-#define IWL_MLD_MISSED_BEACONS_SINCE_RX_THOLD                  4
+#define IWL_MLD_MISSED_BEACONS_SINCE_RX_THOLD                  6
 #define IWL_MLD_MISSED_BEACONS_THRESHOLD                       8
 #define IWL_MLD_MISSED_BEACONS_THRESHOLD_LONG                  19
 #define IWL_MLD_BCN_LOSS_EXIT_ESR_THRESH_2_LINKS               5