Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2109818rdb; Mon, 20 Nov 2023 02:07:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IHaG064ezJUBhXbvgFiCskGnWZ9BWz+Qpz2bfBBGXEDSkd4QjK4YUPaKVteKBRWEt4p+L4J X-Received: by 2002:a05:6808:3985:b0:3b6:8608:72c7 with SMTP id gq5-20020a056808398500b003b6860872c7mr11071846oib.50.1700474872593; Mon, 20 Nov 2023 02:07:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700474872; cv=none; d=google.com; s=arc-20160816; b=nl3KwT0k9npwNUgD0MBh2ZVgkafmkSpIMDk2VhihbwcJ0c/XK2h9c9qXXbKZ+kG5nW EEufCbm/YYsnWR0hdKOvl/ka94EPxioLAPyuoAlvCgkPKKOps9+r5AdE28P3G+JvdmYP q7w2W+q5RP4AIC3CKL9nc39Mo4rrS+YaVAgpkdyZk5U99Wxt88i5D3NKbdgOY3G/5+M/ ABj7sxh6ZO++1dpo/KRdgTosJyURrVclo4gYPiXskFDMZlnf32PT8+FplxWB8d+gff4o UJLpwd6rdtx8QFSU9YgUgKeUu5p6TzbZ5xcp879n1+ktfhicqM61MzJYQGy2XCjnTXjx xMAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=ACBikKPIRqzr9payxhpI5XM4jMhbiP2iolHg18i3IrE=; fh=5srrNW9LvMuk71SZ2sZzLIKLqK+GXla83v9FtJnr2mY=; b=my4Zwvjfe+63DqOYS3WIi65wIKKUWp+L44p0GVPNWAgpLXhiCsS1zDfoC2OEBa0T7I O+kcDeAmv7pH9rl4aPdIhDiER+t0J8mlEueCd+fjSC9RcOMRGZZs5tD34rF7jcTmlaJk vx1Mr9CNbY10sO4DeJ7TSGUKY9QbO4qlhjvAOwDuMpR3g5jussksUEZ6HuXe/ZUgm8Oz ck/J+KAIGS3EsXYRZcH4ZfnLalsKDugQd4e/pgr2C4BomzEYf6DuVstk6otNwTKphHZ8 jQLKY7o6GCFBDGO+GAmU0YR7/7Yv5Qd2/B46jHNwcMOXI/QvG2ljFLSFvUtzXE8xBYQ7 daMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=IuS+7nmA; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id t30-20020a63535e000000b0058986c61bb6si7808077pgl.706.2023.11.20.02.07.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 02:07:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=IuS+7nmA; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 1814A80B1831; Mon, 20 Nov 2023 02:07:50 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232954AbjKTKHp (ORCPT + 54 others); Mon, 20 Nov 2023 05:07:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233011AbjKTKHf (ORCPT ); Mon, 20 Nov 2023 05:07:35 -0500 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:242:246e::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C8EEF2 for ; Mon, 20 Nov 2023 02:07:31 -0800 (PST) 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=ACBikKPIRqzr9payxhpI5XM4jMhbiP2iolHg18i3IrE=; t=1700474851; x=1701684451; b=IuS+7nmA+l2gANpc9/2dO9gdATaCsGryH/0IWSJviJcFh9t hCbx1fr5JHjcZu1teORbuDsa/RZkdZ625bblBHyzwnE/UXq14sIWztCXzOc6peeBISE8bfx2K9rG3 vY5/Hss/BKoBy4hlZfvaqU9u2AJNwzefymUWlsd8Q1NrWJ8E5O95s6Gkqwt0fjff90eRFGWhvkdlH GfP1nayk4Z1Kk6wMcrZtpHs+1juGqzx14L+K3U3Is7X6rHoZpgXCAQgDaa2h1B0it5NHEfDujQZ+T A1a7bgn6NtKGYbGrJT1B0IJ0rSMcH+aONQD7a3NJtBPgOhUSG2NI0Mi2mZ3YjiNg==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1r51Be-0000000F5C6-06Ta; Mon, 20 Nov 2023 11:07:26 +0100 Message-ID: Subject: Re: [PATCH v2,2/2] wifi: mac80211: Refactor STA CSA parsing flow 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, 20 Nov 2023 11:07:25 +0100 In-Reply-To: References: <20231113021107.13110-1-michael-cy.lee@mediatek.com> <20231113021107.13110-2-michael-cy.lee@mediatek.com> <2eaa04080702230b8dbe3b3541d6d831484c4f1f.camel@sipsolutions.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-malware-bazaar: not-scanned X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 20 Nov 2023 02:07:50 -0800 (PST) Hi Michael, > I will fix the typos and change all the =E2=80=9CIE =E2=80=9D to =E2=80= =9CElement=E2=80=9D. The TODO > for 320 MHz bandwidth is used for internal tests, I=E2=80=99ll remove it,= too. Sounds good. > We had checked the D4.1, and unfortunately, the additional description > for WBCS Element in D3.2 9.4.2.159 is removed. In other words, D4.1 > does not change the definitions of WBCS Element and WBCS Element should > be parsed as VHT operating information regardless of the BSS being VHT, > HE, or EHT. Right, I thought there were going to be some changes here. > After parsing the WBCS Element, the STA needs to check whether the new > channel fits its capabilities according to the operating mode > (VHT/HE/EHT). > However, the existing flow only checks the VHT capability after the > WBCS Element parsing, which is incorrect when the BSS is HE/EHT or the > band is 6 GHz. > =20 > In summary, I will refactor the WBCS Element parsing part of this > patch, along with other fixes. Sounds good. We'll have to figure this out separately, but I'm also working on something else that will certainly affect this code. I noticed very recently that the whole STA_DISABLE_* flags are very messy, and am working on some improvements along these lines. The current version looks like this, but it doesn't even compile yet: https://p.sipsolutions.net/ccb552810b020745.txt No idea if this would help/hinder you in any way, but I figured since it has some overlap I'd let you know. I don't think you need to worry about it for now, it'll take me some more time to work on it. johannes