From 94fc66cce94c553a38ea8ca1b20795dd33546c6d Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 4 May 2026 07:49:37 +0000 Subject: [PATCH] hostapd: avoid spurious interface reload on empty MLD config mld_set_config() treated any call with empty prev_mld as a fresh configuration and triggered a full Reload all interfaces, even when the new config was also empty (the typical path on non-MLD devices). Reloading every BSS on each netifd reconf disrupted associated stations including PMF-protected backhaul STAs, which would self-deauth after the SA Query timeout. Only treat the call as a new configuration when the new config is actually non-empty. Signed-off-by: Felix Fietkau --- package/network/services/hostapd/files/hostapd.uc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/network/services/hostapd/files/hostapd.uc b/package/network/services/hostapd/files/hostapd.uc index 6558b55b0a..d7d0ff8ff2 100644 --- a/package/network/services/hostapd/files/hostapd.uc +++ b/package/network/services/hostapd/files/hostapd.uc @@ -1070,7 +1070,7 @@ function mld_set_config(config) let prev_mld = { ...hostapd.data.mld }; let new_mld = {}; let phy_list = {}; - let new_config = !length(prev_mld); + let new_config = !length(prev_mld) && length(new_mld); hostapd.printf(`Set MLD config: ${keys(config)}`);