Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp408218lqp; Wed, 12 Jun 2024 05:34:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXmgwUOa85x6npc79Sq8HmYq1YhHr+iH9eG8Xz2e90c+uY0M/H0WKtdF5G28dAeZPL4TEfbYVQXQF+WGn9ojh94K8tesMAV1n/ytzCw6Q== X-Google-Smtp-Source: AGHT+IFwCIV3wiGVrNLHZndojyQbwKBSrfFiQysZWSYl26Odxmn5MboNTgyEicNeiggd2YFXlXd7 X-Received: by 2002:a05:6a20:7485:b0:1a9:d27c:3151 with SMTP id adf61e73a8af0-1b86d259fb9mr8436360637.23.1718195666767; Wed, 12 Jun 2024 05:34:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718195666; cv=pass; d=google.com; s=arc-20160816; b=gE6tfAinF1kXnLrcCSI3G+nlil0SAuNvBNJ2Kxs2tabqLqgEN3ubFQayH9/GuOgLzz 3AG5uq4owfjSe2PaXi9FflEfDHUHaZIwBX3Z1mzA5DHPN1wiA1gwQGkp9gNXV9dB3Pxb kg4re3s0lpxQ6DtA5ENhj4L24ns6EfMX6zZKXjuV/k+Crfp4AgYTRPiSPnWfVHV4Dwhr Pz+TUCN0XqhMc9IpwlVLFph2kz3/vO2pdnjsg9SeoT3nkIaI+oLuvT5/wc44Ef2QR5aR Wwj5yjNUnhNtssNEVdpxu/GqWzJydO/zS9Cny7WeFX/mNaOHGbRXVy/E/dhN2HefqtWH zuFg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:to:from :dkim-signature; bh=8a+WycdP7rS5/qIlNCR4VoyQQnipPlrqIBCKgpb4BR0=; fh=qW0phhq3fb3oiohK/Mu9j1KY1zyRNiiioKFc5anvatM=; b=u6a51Srnl5kf99Kz/+IwS9QChbwWOvyMetC7nIkeKVjNLkM8aufzaqE+nFGKR8GtZE 7XsfE8J5qdKcd90AAdVMRXaztoX/R9PZMcKoW7TfjYQ2L32OZ528rJ9uGS8su/nPR332 i+wkE5XytXRC4+gixmzY4/M8o3VMF4JT+hThR4WN3K0z64WEGmUseuqMSlsDvHRQKA7H kImX0vzmKZHYdcG1F+txWNVFymUlnqfeo14L7dMxa4dJdhmkHQ7JgikLucLHlWhvLmWi /rqtLeQcRrz8KgqOgo4VMJjdSLnsge/yo4S6mhZd1oPkB1oIT9lukP30TYuPif3It/z2 4L2A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=fguRxMcU; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-8868-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8868-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6f688644147si3201895a12.319.2024.06.12.05.34.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 05:34:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8868-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=fguRxMcU; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-8868-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8868-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 508F8281DE5 for ; Wed, 12 Jun 2024 12:34:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 521A316FF2B; Wed, 12 Jun 2024 12:34:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="fguRxMcU" X-Original-To: linux-wireless@vger.kernel.org Received: from sipsolutions.net (s3.sipsolutions.net [168.119.38.16]) (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 F024F16D4F6 for ; Wed, 12 Jun 2024 12:34:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=168.119.38.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718195664; cv=none; b=Rc+YsRdCu2vEF+SndArWiuEfYyQ6FCBIX+n0EfuomAcEWvzLQicBjDEUBHpH0m4GtrXbCCXLOS9ek8RkyOSbiDaY5DvAXZTlQCaSnIcG18Vp17cOpggEl+kZ+g1TIoqBDb+hIJEC5BJFGJr61N8MPx1WZZ5cNfLzBDUp9jOdMow= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718195664; c=relaxed/simple; bh=8a+WycdP7rS5/qIlNCR4VoyQQnipPlrqIBCKgpb4BR0=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=NELQ3jYYeJDVmvCwJs7toOwIr3DA54VH6eCfWoJIqFBI5uP80AtyKluJvrb4khF4IoEp+1nrmhCTa9mp888Hd07Rz6Zn2fGzykRzTlU3R5Xp4Fsj33nnadBzTLxD7RY0GbLnqv4li7gj4MUlR1yKAlysHoYofl+Cv5S0eEkBl+I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net; spf=pass smtp.mailfrom=sipsolutions.net; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b=fguRxMcU; arc=none smtp.client-ip=168.119.38.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sipsolutions.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: Message-ID:Date:Subject:To:From:Content-Type:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-To:Resent-Cc: Resent-Message-ID:In-Reply-To:References; bh=8a+WycdP7rS5/qIlNCR4VoyQQnipPlrqIBCKgpb4BR0=; t=1718195663; x=1719405263; b=fguRxMcU2fiCfVOxy827ZYf+EAy+LPPSN23e3gG23Mxj+gBEsHN4JFMaPYopIBVXD0wmA9hddex WaL34XafteyRJdY3uVS345t3qGW8F1s+N9WIseG0MVVy5cdl1Px31bLzRyNS7dX5X8sVesSRqOXwG V0vYLUR7STCuNcnukE3rWak2anpX0iMaIjgWxF37Tv+qK0nH0Orjag3ICnbRFR79Hk7yjhvDrjTtM zXWo4qzYl9xhG6maRoraqTGA8EJzcADxuVSTIdeQhoOa4x6qZoAwlh0NLWskz8jRhJYlkUZg2H5gc o+YWyEsBO9R3AYv3HeLcgzS2ohJ0F4Rw9ubA==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1sHNBE-0000000AGkC-2l8z for linux-wireless@vger.kernel.org; Wed, 12 Jun 2024 14:34:20 +0200 From: Johannes Berg To: linux-wireless@vger.kernel.org Subject: [PATCH 0/4] wifi: mac80211: fix CSA in single chanctx case Date: Wed, 12 Jun 2024 14:32:02 +0200 Message-ID: <20240612123418.37295-6-johannes@sipsolutions.net> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit If there's no free chanctx, we get into the whole reassign dance, but in that case we don't handle the sta BW changes correctly, so the sta might be configured with a wider BW than the chanctx, which makes no sense. This fixes it. I'm not totally happy with all the extra complexity, and am vaguely planning to clean it up by taking into account the reservations at all times, even if not active yet, that has very little downside (might use a wider channel while a CSA is pending) but will clean it up - just haven't gotten around to that. johannes