Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795040931; b=2jCRy6hzQ1RRYwxxFkdl6aIpCjPWe3K809Jy10vog1hTEUIRVYdJPlUAgz8BJcBEBi8B PvoUOgS/kn9tMF4DfJakbEnFsBkz4H9BdyDeQDm7qvpZOSXAEyfZjuynMGD+vGz3q5l6i Ye3yeAeNkv5NfZYLXFqcIcxrDheIJ/JO5zBQQyuxRMqGqpO+lyfYfj7Q8p1XuBjqOEgsh QSgcRf6j+/cxYN8r+M3DFPtLtQ9sH99/ARF6IYS7/PX9OztlOoqpUU8rE7zX15VEHj3Y1 td0Za5sLTCAQqOl/BF52zLZpVBDB9dOByhGXcRN5jb3vV0FgwZov0Ezbghxl791TvJw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795040931; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=YATRnv+oV4/uCtm+9YIent314SGINh2WQxbAORGchVo=; b=04AWuAJyKDswGH0MrKZPlepaqDToKIKnQgr84PVSN2IpTkYUU3hifB6cCw5HEMHJkDlG AxxUX8EvRLNljMqv1NhyNIWG+Vw58+73RT3YVdd51xH3YWe9IQrOrQArDOFJ8ErdcV07L u08YJnwBjAdw22l1qVz2AHiB68BrVcLg6uovlXnk3UKuVSVSOEEqSV9tgx7Mdh9bnBdem 8Tm1Vn5JKUe5CZmi3edoSzpDG7j26oxb9w3DqDX4B8cPBYCb8auVR6uK1p1tym37u3/nk nIr2L5GjB02GgxP/Xqn6KBcfFfrwxfRrWlDbrnM1qQEFFJQSw0oWOT/d+kJjLJBjX0w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=w6zlBbVs; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4A859606A320; Wed, 18 Nov 2026 22:28:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=w6zlBbVs Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60F881F000C4; Wed, 18 Nov 2026 22:28:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795040930; bh=YATRnv+oV4/uCtm+9YIent314SGINh2WQxbAORGchVo=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=w6zlBbVs97XDYKUP1MxYsQyt0PXNuXR48W4GaDFM7osaIYwel3e5j3qDKAFpH4goq 34k0UJAh0LkaWt6dW506xNFJyzMIzIRtP00vcp1xClVypBa5MG/lLhQAjzOwIf2NCx rRiGVe9EA1RpcgYyuuPgtrkYQL84eKB3jRFna6q0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Aloka Dixit , Johannes Berg , Sasha Levin Subject: [PATCH 6.6 2590/3318] Revert "wifi: mac80211: do not use old MBSSID elements" Date: Wed, 18 Nov 2026 15:53:32 +0100 Message-ID: <20261118150438.876628687@linuxfoundation.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261118150313.527275416@linuxfoundation.org> References: <20261118150313.527275416@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Aloka Dixit [ Upstream commit 56fb2334c86cef0b6d44099a6b21de4c8d80a7cb ] Commit a519be2f5d95 ("wifi: mac80211: do not use old MBSSID elements") fixed the incorrect inclusion of stopped/removed non-transmitted profiles from the Beacon frames, but it caused a regression for channel switch (CSA) and BSS color change (CCA) operations initiated from hostapd. Hostapd passes two Beacon templates to kernel for CSA and CCA - (1) beacon_csa/beacon_color_change used during the countdown. (2) beacon_after/beacon_next used after the countdown completes. Hostapd relies on the kernel to include the old MBSSID elements while sending beacon_csa/beacon_color_change templates to the driver. This path is now broken and results in CSA/CCA failure. Including existing MBSSID elements explicitly makes the netlink buffer larger than default 4 KB depending on the number of APs which would need unnecessary complication to pre-calculate the buffer length. Revert the commit to fix the regression. Regarding the original issue fixed by the reverted commit - Hostapd now has a new commit which always includes at least one MBSSID element when the feature is enabled, hence when all non-transmitted profiles are removed, this empty element ensures that stopped profiles are not advertised. Fixes: a519be2f5d95 ("wifi: mac80211: do not use old MBSSID elements") Signed-off-by: Aloka Dixit Link: https://patch.msgid.link/20261002-csa_cca_fix-v1-1-b83a998aeb44@oss.qualcomm.com Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- net/mac80211/cfg.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 12b57df5d9f50..c3a8f0faf0ee6 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -1151,6 +1151,7 @@ ieee80211_assign_beacon(struct ieee80211_sub_if_data *sdata, size = sizeof(*new) + new_head_len + new_tail_len; + /* new or old multiple BSSID elements? */ if (params->mbssid_ies) { mbssid = params->mbssid_ies; size += struct_size(new->mbssid_ies, elem, mbssid->cnt); @@ -1160,6 +1161,15 @@ ieee80211_assign_beacon(struct ieee80211_sub_if_data *sdata, } size += ieee80211_get_mbssid_beacon_len(mbssid, rnr, mbssid->cnt); + } else if (old && old->mbssid_ies) { + mbssid = old->mbssid_ies; + size += struct_size(new->mbssid_ies, elem, mbssid->cnt); + if (old && old->rnr_ies) { + rnr = old->rnr_ies; + size += struct_size(new->rnr_ies, elem, rnr->cnt); + } + size += ieee80211_get_mbssid_beacon_len(mbssid, rnr, + mbssid->cnt); } new = kzalloc(size, GFP_KERNEL); -- 2.53.0