From patchwork Fri Dec 22 01:09:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael-CY Lee X-Patchwork-Id: 13502834 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4ACC8C46CD2 for ; Fri, 22 Dec 2023 01:09:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=GlqYnIl/pPeOM+Is0rIMjAHas0xJUlaFyJhYmZfymUo=; b=QFI9XoL9oTlzcK80JEUI5ZEl/V 5Apwp8bXAktGQUnDcLMAEH/DcR/zpavTzfwIq3T3x2p4SLq7a5oRL6l/A2WIkBe4olr/vVwS/ECfB 2uEc5axZjliTN9692qQc+YdDFWJImpZXIq/QaPl0XpvoYFO50/i14rnbhlKwMFIYBm4vLbLzrNVrt /zbqcOPtqQ3UMX/Y9JDdyelpj4Orl2dClzklXeOHyWR0AvVmGjpmMLBIWQwjtOpO10OhFXZisFb50 oJE31/QYrxOeae2StbqSArTEuogVetNyr47Qimyrf5hgIPiThz/IPH3RBcRj+GLAcZMd2aDD8rXpd skb4cqLA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rGU2n-004Zv5-2p; Fri, 22 Dec 2023 01:09:41 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rGU2k-004ZuT-2z for linux-mediatek@lists.infradead.org; Fri, 22 Dec 2023 01:09:40 +0000 X-UUID: c42bd4daa06611ee9b09ad09c76753c8-20231221 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=GlqYnIl/pPeOM+Is0rIMjAHas0xJUlaFyJhYmZfymUo=; b=JDikRr89UBgNzSJdwW/NfAEMvfIbWlprmh+EDztqBdfdIOO0Zn4RYnhYGqauAIFzA1YlkQ0yLG+uikyM+LFiP8f08DEIzfnhxB5NzAekE2/fxfz/geXc76h8LtlYoWDGYHo4RK+WPnPk/zTz4ZIhHgTNzqFcxmQo0Qu7+o+H0sM=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.35,REQID:582a7e25-2182-4085-a43e-f458f2c84437,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:5d391d7,CLOUDID:0c5d0a82-8d4f-477b-89d2-1e3bdbef96d1,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR:NO, DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: c42bd4daa06611ee9b09ad09c76753c8-20231221 Received: from mtkmbs11n1.mediatek.inc [(172.21.101.185)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 227916136; Thu, 21 Dec 2023 18:09:33 -0700 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by MTKMBS14N1.mediatek.inc (172.21.101.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Fri, 22 Dec 2023 09:09:30 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Fri, 22 Dec 2023 09:09:30 +0800 From: Michael-CY Lee To: linux-wireless CC: Johannes Berg , Felix Fietkau , Lorenzo Bianconi , Evelyn Tsai , Money Wang , linux-mediatek , Michael-CY Lee Subject: [v4,0/2] wifi: mac80211: refactor STA CSA parsing flows Date: Fri, 22 Dec 2023 09:09:12 +0800 Message-ID: <20231222010914.6521-1-michael-cy.lee@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-TM-AS-Product-Ver: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-AS-Result: No-10--1.297500-8.000000 X-TMASE-MatchedRID: kDnsWQ7qnraLwgJA7qJvFHW+ghheMOWfsf4f4CxxueQ3DLgNZ/WB37Wd 0nDAWA79sRIB98XGTDmkeU7arquyzkkjllSXrjtQFEUknJ/kEl5q8/xv2Um1avoLR4+zsDTtIAm DJ33CtzwMIaxbNW7UOwNfbEZAfUf4zu855L2HSWraiMkgO1bzUOkbqRGVnep1dmtRsRmKkASJZP T2ZDPuzPD2QfzMDLjho65UufHcDvg= X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--1.297500-8.000000 X-TMASE-Version: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-SNTS-SMTP: EB3194B599F3B3DF333E83943D2D0CD327F2576092590A701156CD00C20C17612000:8 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231221_170938_994611_974965FA X-CRM114-Status: UNSURE ( 3.58 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org These patches refactor the STA CSA parsing flows and add an utility to help. Michael-CY Lee (2): wifi: mac80211: Add utility for converting op_class into chandef wifi: mac80211: refactor STA CSA parsing flows include/net/cfg80211.h | 13 ++ net/mac80211/spectmgmt.c | 302 ++++++++++++++++++++++++++++++++------- net/wireless/util.c | 76 ++++++++++ 3 files changed, 338 insertions(+), 53 deletions(-)