Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp1452679imk; Mon, 4 Jul 2022 03:26:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uTnWRCLuyUD5OeoYHfWDYRAQuIMNyeT23SxU6+2EWrUGmXubeKcrTHIa4fT9ZAwIg1vbit X-Received: by 2002:a17:907:1612:b0:722:e1b9:45d0 with SMTP id hb18-20020a170907161200b00722e1b945d0mr28317369ejc.439.1656930378828; Mon, 04 Jul 2022 03:26:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656930378; cv=none; d=google.com; s=arc-20160816; b=O44zeygdQJJ+19avqnnPZoRff/31xaYVahM/Oliy4BEqYn1X2QZRU7SVgkpt4kdP4x JjovWP6PtMoWCd+xGR4ytO+t8WEeuOrWaGJ+YRnGJC/vIncCI1yUvYZfGHiB9M2BeB7M Yo/xj4f2BriJUk/uaAsQImR4buAmBB/YUb5GTmzhgXSaloiUokDPFe6pyZFU1LcKu1vx 2m6AM5mfn4znBs9EUMjDAscBel9naQZEBowbU9xnMDSbRQjhIGEXDiWDp273PGJfTUOX 7VHXkr++GwCgttxg+nrdXah8w+igBMrKwfojYhEsTOBF8iWM0h+xAzzOnGoTPZ3CbgVS ZmgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=2yMseNHhxDs2jFVL9E+gbcgyMuDTtJ/0jLAdYNnY4fE=; b=0sNA2sZBl1qx5Q/l2NSZv/ychgN624+O6egWFhTu+b0xhL8x7OxClnejl6X1B6n1sY fpkDLr3Z89jxT0nQ7VjQfZI5A7AtPvA6vrsJdPF7XcfmZAzavu2LyIjR8DOonzqzwlZ3 HOb0nC5AxcStr/pQX3ed4JS3qtWC2QCOeNQDccTpjnbiMGSWkbey2Oem4iHrfHh0xXw8 wiVAdpgJRLgH4cfIuyrX/conibTxwctbp0H9XjF2/aK+xHKghCt62unJNqcUkcC/5qTd ++gvpEreLu1YilMhEUXysZSAHKJ1gcStbRDuMlIU1BrdSfyieLB/xIyWFdwS8gzHL7/R 7oiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=QBa92XBW; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz37-20020a1709077da500b006f3a306a1e7si11223624ejc.555.2022.07.04.03.25.57; Mon, 04 Jul 2022 03:26:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=QBa92XBW; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234428AbiGDKZl (ORCPT + 66 others); Mon, 4 Jul 2022 06:25:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234449AbiGDKZU (ORCPT ); Mon, 4 Jul 2022 06:25:20 -0400 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05A315F60 for ; Mon, 4 Jul 2022 03:23:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1656930239; x=1688466239; h=from:to:cc:subject:date:message-id:mime-version; bh=2yMseNHhxDs2jFVL9E+gbcgyMuDTtJ/0jLAdYNnY4fE=; b=QBa92XBW6ypsBqln6aH6Qgz/gRulqXUkd/DJDQfAp+f0pQ17GCVw8O+C 4u0fxDrGAJa5CIaEmRGPppJlKCLIlc/Rc9JiFZLbs7HeSySYQBgrDhC9M 0li0Pj7C6mEb3+45Bx8pjuDAWKdmo7PXJPW2qRgNsl1QNAwIPplcBoXu8 M=; Received: from unknown (HELO ironmsg03-sd.qualcomm.com) ([10.53.140.143]) by alexa-out-sd-01.qualcomm.com with ESMTP; 04 Jul 2022 03:23:58 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg03-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2022 03:23:58 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 4 Jul 2022 03:23:58 -0700 Received: from adisi-linux.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 4 Jul 2022 03:23:56 -0700 From: Aditya Kumar Singh To: CC: , Aditya Kumar Singh Subject: [PATCH 0/7] cfg80211/mac80211: extend 6 GHz support for all power modes Date: Mon, 4 Jul 2022 15:53:34 +0530 Message-ID: <20220704102341.5692-1-quic_adisi@quicinc.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 6 GHz introduces various power modes of operation. Currently, based on the power mode, channel's Power Spectral Density (PSD) value as well as channel disabled flag can change. For single interface, current implementation works just fine. But for multi-interfaces, for example AP-STA concurrency, two different channel context needs to be maintained. This is because, STA power mode also depends on the AP's power mode it is going to associate with. Hence, PSD value and channel disabled flag might vary. In this case, same channel context cannot be used for both AP and STA. Therefore, to support multiple channel space for each power mode, the 6 GHz channels needs a separate storage space in data structure ieee80211_supported_band. Because of this, the existing APIs to get the channel/frequency from frequency/channel will not work for 6 GHz band. Add support to store all possible 6 GHz channel pools according to the power mode as well as add API support for getting channel/frequency info from the new struct ieee80211_6ghz_channel. Aditya Kumar Singh (6): mac80211: rework on 6 GHz power type definition mac80211: add combined power type definition for 6 GHz cfg80211: add NL command to set 6 GHz power mode mac80211: add support for 6 GHz channels and regulatory cfg80211: rework nl80211_parse_chandef for 6 GHz cfg80211: save 6 GHz power mode of the regulatory rules Wen Gong (1): cfg80211: save Power Spectral Density (PSD) of the regulatory rule include/linux/ieee80211.h | 10 +-- include/net/cfg80211.h | 68 +++++++++++++++ include/net/regulatory.h | 2 + include/uapi/linux/nl80211.h | 66 +++++++++++++++ net/mac80211/cfg.c | 35 ++++++++ net/mac80211/util.c | 42 ++++++++- net/wireless/ap.c | 4 + net/wireless/nl80211.c | 159 +++++++++++++++++++++++++++++++---- net/wireless/nl80211.h | 3 +- net/wireless/pmsr.c | 8 +- net/wireless/rdev-ops.h | 19 +++++ net/wireless/reg.c | 61 ++++++++++++-- net/wireless/sme.c | 3 + net/wireless/trace.h | 21 +++++ net/wireless/util.c | 87 +++++++++++++++++++ 15 files changed, 552 insertions(+), 36 deletions(-) -- 2.17.1