Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp571833rdb; Mon, 29 Jan 2024 10:48:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IEQZayGw/u2jBLUpYNYmfDxQr47JiG66arHB1ptcR9rbIL5R7T+Z5OmCZqL7JLzpvRHWalC X-Received: by 2002:a17:907:c705:b0:a34:d009:26c3 with SMTP id ty5-20020a170907c70500b00a34d00926c3mr11077927ejc.31.1706554137975; Mon, 29 Jan 2024 10:48:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706554137; cv=pass; d=google.com; s=arc-20160816; b=KufbKnU7yCLMuok4hnSOVkDzdDAJ7CUR4uPTp0hgdcLULjD/ns9AMqNKbt/IjDnagN 5NF/8dysRX5O+HNHIctfooDSNMaP+59vC/eV2a4QWhlo0boCQ/IByy98lGdF9iODpfWh NWAJYZALVzMvUYTa9bFMEf8EVO1jd7S+88JCtA1GO2kLbkP04c9JqRahJPeOcIqZic3Y MkfqeE4VsH2aEWgqrn7AMKQY+Zk4HZFlRHY3K+2ZmJwyxn/oU52lFMF+QHgPogO4KvOM NyWtTW3I0lOur5imW/J6WbGEFKsj2DSbNEl1IbqjjMaGYD4rWHav7jRwgPuBlkvXApzR Iljg== 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=u4ffRVSQ/tECDMM6HAy2EvC4aYN/RaDEUEEyESi6y2s=; fh=RDjaxWicWoN59LXu34p6Xm0RNjE5KPw3Nh3Gvf28coM=; b=fArg3a8XZ4CZD6oXikUBFSWlE6lb5gvD/LmoKSUFDMpWd/OmQLVWucsY7A8WhdU+sw +wFmjZ54Jzl1Vm3R8jN7JSesHGfIoqj7o9sMrAHseidHAijVYS7Ry/Esy4otzIHJvw72 AWCrpu70AVFWFeTRp2239OttEn5n1TV6g8TSxr3FQ2unny9cGW7AMGMrVZVCmlZqlLHu /8xQxrQsuBiFmHdnl7nBwX/e7ufjjxMGiqaa/RNIBdxgFiEL/xbo8oLmNXMu/B9VEOa9 Qxa//CEf5K4XTx2TqnYVrZ7/+yFUEtSpKuI7hJ7/49kUxhlVOdL7ccs37MqhjniPMlgT pnBg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=VaOvqFiF; 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-2677-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2677-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net X-Forwarded-Encrypted: i=1; AJvYcCUB/VrgFwkSumqRuCBA/rez9v7AeMz2S0O+tqmKBASm9Q3y2c+vJYa5/g6FUBDbZ8fJk+pgyHj4Tqv7PSY2albvLPjS/nCfGCqrcH7Uzg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id kq8-20020a170906abc800b00a35b2e36aa9si1268091ejb.560.2024.01.29.10.48.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 10:48:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-2677-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=VaOvqFiF; 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-2677-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2677-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 78E081F273A5 for ; Mon, 29 Jan 2024 18:48:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DBFC676055; Mon, 29 Jan 2024 18:41:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="VaOvqFiF" 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 AB9937604D for ; Mon, 29 Jan 2024 18:41:14 +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=1706553677; cv=none; b=ilhNmo+ALusIA0ZA4WPJ0DYw2ukZ/A2uAYJBUl7C91qYKr40tiahV1Q237y+hcOZxKqM6XZ6lUB/jfN8ForOs06pkanMa76sDZPzLFoW976xNdiS4THzjjtMXZy/rC3/tukRId6X6w0CKeNUleY0IzL9o0k/UZAEtwReVIkZpY0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706553677; c=relaxed/simple; bh=FvuSfGGmYERZEj+9+F5cF8xO9eAJQmPOHg1dURcqzeA=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=Q4Vz++htDE42tiDV8Ju8TpgBE5Ci8axWYhNFoUzr5hBLRc6P2YZg18OGKwpiHKrpyaO2VVEQqqij61LLWcVDTEiSv+JoXREP5KSZ4gtEQ4GwiaurQOajH1lrB6jrl5JBJzXzM39y3PZ9c1kFqtnfBDCyNt1lkp+1U7YRXd03xs8= 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=VaOvqFiF; 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=u4ffRVSQ/tECDMM6HAy2EvC4aYN/RaDEUEEyESi6y2s=; t=1706553674; x=1707763274; b=VaOvqFiFzY/jJdfNdZ54ocyoUqP0zudiaw+k38IqtKQyFVaXp7hIzG6WIWJdG/1eHfx7Qn2UqqR 0sNxMO9trTJx0VnyJD4PjR50QC3g6o8KHYvcz5kKghka6U+5DE4hYkE3WgFPieQGDv1YSe7UTWafT b3+kXlcLQ4xUDfk+o9o4DPkcSRQPqPOLEutVJs/LWlsck1Yww2E2ZtY2dNOPiQgEPK7ON8vJejzNh Jc0rlvlI+canQYMO3+DgxDemAwJpe2ey8KmvW3yauCH03bX0ZGR7s7UwGb9cWhAtEqlwg1/0qN2U1 b2L0gTQ3OB2kMLfvv6U3sUyMw1w4X5oBJPwA==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1rUWZD-00000004z9N-1S2M for linux-wireless@vger.kernel.org; Mon, 29 Jan 2024 19:41:11 +0100 From: Johannes Berg To: linux-wireless@vger.kernel.org Subject: [PATCH 00/15] wifi: support wider-BW OFDMA and fix puncturing Date: Mon, 29 Jan 2024 19:34:34 +0100 Message-ID: <20240129184108.49639-17-johannes@sipsolutions.net> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit EHT/802.11be introduced both wider-bandwidth OFDMA and puncturing, and we forgot completely about the former, and misimplemented the latter due to my wrong arguments. As mentioned earlier, puncturing really should have been in the chandef, which this moves it to. Earlier, the series implements wider bandwidth OFDMA support in mac80211, which requires tracking the AP channel as part of the channel context, and then declaring them to be incompatible if EHT is used on two interfaces (and thus there might be OFDMA) if the AP bandwidth differs. As part of the refactoring to more clearly determine both local and AP mode (HT/VHT/HE/EHT) and channel configuration, this makes mac80211 a bit more strict: - no longer accept channel switch when the mode changes - no longer use e.g. VHT if the HT channel inside of it occupies the wrong spot (e.g. center 40 MHz inside 80 MHz) - don't use EHT with bad puncturing (punctured subchannels cover subchannels that are used by HE) Hopefully these things won't really break anything outside of a handful of hostapd tests seem misconfigured (e.g johannes