From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8BF7E36828A; Mon, 9 Feb 2026 14:40:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770648037; cv=none; b=Ee6H3U4yMD4pb1+jGL3fVkTb4NyQ0t4Z4oZRwf40y+H2uscxHMxpvO/of97dtsgVhx/IHPcnJhCvlHP62IeSHC09W9llYEtAsOploJMNpk+Zv5Q793pnwVgrb7o1JuDvzsVu0uM2K3PPEMEx8Ta62jgrYklPg5ifyHK+0Hqr8iA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770648037; c=relaxed/simple; bh=ROvzAGDc4x7NUpYAOZa7V9TkV5UwtCZpHMnNjcbnA80=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Ajhu7pKAsL9RI1dJzJJUsaIhK2xIRr9dxgmzMf80+3vrxDewewoKc0Kde74NIVG7krfMD1OZ4uFvYJsYxJ1SfJD8qOEABXkdrNlL/R+I4csv+Dio0CA4x0Lwbn/hRxgrGNZAIA/oPREfOAWpSsneTg+jAnVK/2hwEH2FSOiQQsk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oKb84hxg; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="oKb84hxg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F11B3C116C6; Mon, 9 Feb 2026 14:40:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770648037; bh=ROvzAGDc4x7NUpYAOZa7V9TkV5UwtCZpHMnNjcbnA80=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oKb84hxgexo0DB4mLu3MajnebXyzwstqdd3Z1mkROqHIopmT74EMvaiFd1UZCpCGU WGLbkZEny8Cg8qSLFP7YSQSf6zYVLu+xbHizYNZPTCi6Q661z1ZYDDvP/dYh9gQEtZ WJW4EngSX9013n8lhb0gTRD+GWxvMTd1QKvWCdBk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Johannes Berg , Miri Korenblit , Sasha Levin Subject: [PATCH 6.12 069/113] wifi: mac80211: correctly check if CSA is active Date: Mon, 9 Feb 2026 15:23:38 +0100 Message-ID: <20260209142312.669235643@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260209142310.204833231@linuxfoundation.org> References: <20260209142310.204833231@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Miri Korenblit [ Upstream commit db1d0b6ab11f612ea8a327663a578c8946efeee9 ] We are not adding an interface if an existing one is doing CSA. But the check won't work for MLO station interfaces, since for those, vif->bss_conf is zeroed out. Fix this by checking if any link of the vif has an active CSA. Reviewed-by: Johannes Berg Signed-off-by: Miri Korenblit Link: https://patch.msgid.link/20260111191912.7ceff62fc561.Ia38d27f42684d1cfd82d930d232bd5dea6ab9282@changeid Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- net/mac80211/iface.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index 50108fdb9361d..7e1b6a9d9f3ad 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c @@ -354,6 +354,8 @@ static int ieee80211_check_concurrent_iface(struct ieee80211_sub_if_data *sdata, /* we hold the RTNL here so can safely walk the list */ list_for_each_entry(nsdata, &local->interfaces, list) { if (nsdata != sdata && ieee80211_sdata_running(nsdata)) { + struct ieee80211_link_data *link; + /* * Only OCB and monitor mode may coexist */ @@ -380,8 +382,10 @@ static int ieee80211_check_concurrent_iface(struct ieee80211_sub_if_data *sdata, * will not add another interface while any channel * switch is active. */ - if (nsdata->vif.bss_conf.csa_active) - return -EBUSY; + for_each_link_data(nsdata, link) { + if (link->conf->csa_active) + return -EBUSY; + } /* * The remaining checks are only performed for interfaces -- 2.51.0