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 C17A61F462D; Mon, 18 Aug 2025 13:02:39 +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=1755522159; cv=none; b=n1UY6Ko81aEdtMHgLZpzQdVZRzMhT5OQfgMctGOKhYsobZcvyF2pAzQ49Z7/qBxlPoV6dqVaeOiQ8c42asK3sBbj8kZbCVsMs/v4XdNyOHmCpwfMPjyu7j9r69p/J6kL4reKzO5sTGESf4A3Hi8LPUzBdmDAqyhLIgoRqxwUFCU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755522159; c=relaxed/simple; bh=o4QWapWgNj6Bk43uYtRWWdsCWyA4LH/cDfy7jFyhCVk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XTiwDByvkBXS28r/txf5XdiyynOemlxiDij/9ozAZqm0c5VwfywpXrizXexg2uUZRWgujTrFWaHJ9i5CLDkhFx7RPY/cHr/wf5aoYGuKQpk0hxJbwbjC3ezesm8fON1qx2fhYJiAyFSNNJMuJ1dd+pFv08urDH16eFJczwJ+T+U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Rh7A2IBH; 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="Rh7A2IBH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E915EC4CEEB; Mon, 18 Aug 2025 13:02:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755522159; bh=o4QWapWgNj6Bk43uYtRWWdsCWyA4LH/cDfy7jFyhCVk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Rh7A2IBHUQq5ewOBmFQiEfmP3m8UUVWf52f0OsWjtpsCRRcsI7USajMepeXuaxesx ZK7VpC/UgzoNJSuWQEEEmnNEF3ChZjmfIGJIrzEf0QW4ptDmcTqdsf51mdOMiRuJpM gziIrc04/QD++9IZOz7OZO2nKzM8VCZC+VOLpBg8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Ramya Gnanasekar , Ramasamy Kaliappan , Johannes Berg , Sasha Levin Subject: [PATCH 6.12 234/444] wifi: mac80211: update radar_required in channel context after channel switch Date: Mon, 18 Aug 2025 14:44:20 +0200 Message-ID: <20250818124457.609418899@linuxfoundation.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250818124448.879659024@linuxfoundation.org> References: <20250818124448.879659024@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev 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: Ramya Gnanasekar [ Upstream commit 140c6a61d83cbd85adba769b5ef8d61acfa5b392 ] Currently, when a non-DFS channel is brought up and the bandwidth is expanded from 80 MHz to 160 MHz, where the primary 80 MHz is non-DFS and the secondary 80 MHz consists of DFS channels, radar detection fails if radar occurs in the secondary 80 MHz. When the channel is switched from 80 MHz to 160 MHz, with the primary 80 MHz being non-DFS and the secondary 80 MHz consisting of DFS channels, the radar required flag in the channel switch parameters is set to true. However, when using a reserved channel context, it is not updated in sdata, which disables radar detection in the secondary 80 MHz DFS channels. Update the radar required flag in sdata to fix this issue when using a reserved channel context. Signed-off-by: Ramya Gnanasekar Signed-off-by: Ramasamy Kaliappan Link: https://patch.msgid.link/20250608140324.1687117-1-ramasamy.kaliappan@oss.qualcomm.com Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- net/mac80211/chan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/mac80211/chan.c b/net/mac80211/chan.c index 282e8c13e2bf..e3b46df95b71 100644 --- a/net/mac80211/chan.c +++ b/net/mac80211/chan.c @@ -1349,6 +1349,7 @@ ieee80211_link_use_reserved_reassign(struct ieee80211_link_data *link) goto out; } + link->radar_required = link->reserved_radar_required; list_move(&link->assigned_chanctx_list, &new_ctx->assigned_links); rcu_assign_pointer(link_conf->chanctx_conf, &new_ctx->conf); -- 2.39.5