Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1038602rdb; Mon, 19 Feb 2024 02:06:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUb1uhHlljt/VoIbbKqe87Tu1KRiVHrkCLg6MF7r8NY8r9DD9k5xKsceiCv09iQLJDGspJKf1/sUd4Vyg55E7vrPjTuQq8oTRYus7h5DA== X-Google-Smtp-Source: AGHT+IGpL4TSj0xVhbh9GZYhPYdrkuXzkC8ALfFULwhM4Q+WVH+HQoI9hXtW3ET0C5AuVMinZVuR X-Received: by 2002:a17:906:6886:b0:a3e:9f91:7127 with SMTP id n6-20020a170906688600b00a3e9f917127mr1209708ejr.21.1708337177735; Mon, 19 Feb 2024 02:06:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708337177; cv=pass; d=google.com; s=arc-20160816; b=et/6DwB+PyqEP4uprLr4JQ6kj9DiyVF1Xex6GLk5BK5egjMC1QUUbvom04gZ2nOd06 hPBcppgPLkYt/aCVi8EFIaZaZmoxkc8GxeMUby/HWknaCpjlTCCs8D6XHYS5cQNK+DT3 ctshc9yPF0C94HzaIQrWcti8h/UiA137ege3XIRG0eECAsnJA8batyzynICsQgHVW3uQ tPlnyBY5daWR5JXCQuux5CEAd3MS2vLmPmvqVQiUFSZD+eHvH9AJGilJZdQeBRyyNBGz sLldSz03vzljYQPJhE7V76aB+lzqk9OpQkB7du5HK3FyT+wMzuKWm1rTh1jgPFzLDZ3S DkEw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=HO2qG5bxXyBnRnELqPKXj8gGN33xRt+6fa/vSUPQR44=; fh=5srrNW9LvMuk71SZ2sZzLIKLqK+GXla83v9FtJnr2mY=; b=JvTlJV9SxVB2mgsepA5N5IfojK5DQahhd1WiAmb8U4VraKzKwSSa7YHr+r7omj+qBV I0Vo4n4EkEYdziJ2YqsvRfErPC354Yus3c5UN/ZMcQjMl5JPcdMTYQrnIkg0V0QQQLEo 8Juerg4jhFuwfeuuTNnrS7e7LAn0S9IQg7Jrx1ZKHLY9YEEwPaKQiCZ4f6izPSgwc6wo YFTemaeY13yiQGfMnocZi1UWBaNNQh8QP1kEcvh4UnNHZZ24CsiFP7e28503c7qW+5m8 bd6ZcRhc4H6UIyWkLWKkHgHUzEN6eyheQFCGA8aaXakqa1MWlOQgoJfrgF3H7mnUi7EM x0pg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b="izgw1X/k"; 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-3772-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3772-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id s22-20020a170906169600b00a3e73c98825si1134752ejd.966.2024.02.19.02.06.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 02:06:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3772-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="izgw1X/k"; 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-3772-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3772-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 6D6411F24726 for ; Mon, 19 Feb 2024 10:06:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BC114210FA; Mon, 19 Feb 2024 10:06:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="izgw1X/k" 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 C6F1C2556D for ; Mon, 19 Feb 2024 10:06:11 +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=1708337173; cv=none; b=TiXfNMUJLXAe95IZ9Oqtkpi7PGskt3CGADvRuDERkCdH755uiFjS/PxMnyZURiAGXHbrlZWBEzgyZLtjqzEgIAFqRKdrpnyyZ15yRP6jXHFFvErxd1cutIM5y5rQoHS970fxpBR5ttaMSQUf1l2gmJd6TczNoCD6NBcJQHrDJJU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708337173; c=relaxed/simple; bh=HO2qG5bxXyBnRnELqPKXj8gGN33xRt+6fa/vSUPQR44=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=XKZCwZXxzcZ1aaeybAbepM2PdDBrMiSa19zwmgwF49MjflP7K+PlCpYBas66fud38uxRneVNsHmQ9ty2+UCvP/0Mm3K278307ohk4eVSjS+p1i6+1r8gFqFZc4R7OoY2FWx0MB7yvZSUJ1NoHFisqLK5NMvFMqFe4JuZD1VxNnw= 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=izgw1X/k; 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=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=HO2qG5bxXyBnRnELqPKXj8gGN33xRt+6fa/vSUPQR44=; t=1708337171; x=1709546771; b=izgw1X/kzRjnscTj8gQP4/JzjHsBZpczLKukNuqxEN/mmKx GHmXCMuh0z3o4njS187x6MNqFXKWa5unGSgS6KacJMBnUsjwF7qxHbG0/opT5RvhbLEnOjGDWW1wS Q/ODX5Awein8KT/RCbTTN1zX04o2VYS3pSNlIV7i3Ctj22EKb2Zx8BieQJ26Ocb7bbZKxoFxyxOb1 gZkv7oCjxKsesu643FLI15fjOoFOVpoyvg1+DHEmgk+Ul54TqVoLFP44/sltDw5qsA3w3KLawNJ37 IKr/r5Usc67c+pimlOb+QnwtfjuE3FnUstxdVIK6SwJiiZJ92qfhcpaYiVGuFIug==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1rc0XH-0000000H1u2-2Kmi; Mon, 19 Feb 2024 11:06:07 +0100 Message-ID: <3a6f90ceb86013782329ba0054995aef225a53b1.camel@sipsolutions.net> Subject: Re: [v4,2/2] wifi: mac80211: refactor STA CSA parsing flows From: Johannes Berg To: Michael-cy Lee =?UTF-8?Q?=28=E6=9D=8E=E5=B3=BB=E5=AE=87=29?= , "linux-wireless@vger.kernel.org" Cc: "linux-mediatek@lists.infradead.org" , "nbd@nbd.name" , Evelyn Tsai =?UTF-8?Q?=28=E8=94=A1=E7=8F=8A=E9=88=BA=29?= , "lorenzo@kernel.org" , Money Wang =?UTF-8?Q?=28=E7=8E=8B=E4=BF=A1=E5=AE=89=29?= Date: Mon, 19 Feb 2024 11:06:06 +0100 In-Reply-To: <765fb43a372825f6063894809f204150d87d4d18.camel@mediatek.com> References: <20231222010914.6521-1-michael-cy.lee@mediatek.com> <20231222010914.6521-3-michael-cy.lee@mediatek.com> <765fb43a372825f6063894809f204150d87d4d18.camel@mediatek.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.3 (3.50.3-1.fc39) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-malware-bazaar: not-scanned Hi, > The rebase seems good. We will conduct a full channel-switch test, > including hwsim tests in hostap. If there are any problems, we will > send another patch to fix them. OK, thanks for checking. The tests from hostap are passing, I make sure of that anyway, but ... who knows what they miss :) > > Shouldn't that have (had!) an 80 MHz handling case? Or maybe a loop a > > la > > the one in ieee80211_config_bw(): > >=20 > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0/* > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0* Downgrade the n= ew channel if we associated with restricted > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0* bandwidth capab= ilities. For example, if we associated as a > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0* 20 MHz STA to a= 40 MHz AP (due to regulatory, capabilities > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0* or config reaso= ns) then switching to a 40 MHz channel now > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0* won't do us any= good -- we couldn't use it with the AP. > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0*/ > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0while (link->u.mgd.conn= .bw_limit < > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= ieee80211_min_bw_limit_from_chandef(&chanreq. > > oper)) > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0ieee80211_chandef_downgrade(&chanreq.oper, NULL)= ; > >=20 > >=20 > > Feels like this should be the same here. >=20 > Yes, a loop to validate the operating bandwidth is necessary. We'll > send another patch that makes this change. Sounds good, thanks! > > Also note how this uses ieee80211_chandef_downgrade() - we really > > need > > to track the "chanreq.oper" vs. "chanreq.ap" in this code as well for > > puncturing - can I ask you to take a brief look at that? I'll anyway > > probably have to look at that soon though. >=20 > Of course. > In fact, we have plans to study and implement puncturing on our MT76 > driver. We're currently working on the AP side, and we expect to start > the STA side maybe three months later. OK, let's see. I probably have plans earlier than 3 months from now for this, but not sure yet. Let me know when/if you start working on it so we can sync up again then? johannes