Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1422507pxb; Fri, 20 Aug 2021 05:23:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNVX9zDf3qRc7X1jgl1zvVdSf2dW3cwPFxZCI5nKFgYAHMlo9XUyK3FjHwrDTcf4IfUX2p X-Received: by 2002:a02:93c1:: with SMTP id z59mr17572875jah.2.1629462197806; Fri, 20 Aug 2021 05:23:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629462197; cv=none; d=google.com; s=arc-20160816; b=z9w3bGYZy3UDKxCOLrlu1mCng0ETqQ+Yko4UwATZ/ZkUp5ZnXrFxAwLslYm62njUmn sFFdJQC32oIU7dTDrJQtT3e5y6wsQ/qTHL6j0532uAgW3UXgbcaOfxTKLXQTisGq9LOh TEpQVH0KmzspASBVXzUOwaH3DMsdXhcR1OtcBA8X99IMQ0ESXD3Gnjs+i7PeOdswSAA3 dziUewMNVOpq+/g+5FLdZ7Lvz60ylWI+yq0czgBPc/GANZMRonW5ehIeay5E04QuZGZz cndvlXWO3V9c73zmlGZktIg3QGkjdr8bg7bcK80jDknpPEStbJbY46/lvOCS7A7HdxuI maOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dmarc-filter:sender:dkim-signature; bh=zvEJtpbingpsiN3/ToulAmxrC6ZipGNFY5kyMai1SfE=; b=yrUMOq51JRqVfOYBqaJW6H0hWb2VwT7zksKsThACOc0djwAExyBN+uAkriYfaY4m8o MfZrGe5sP2CnxqNOsGYkJur/PmtsYhoHAgjTWj1oobNMSQmFeC1Gukve7XjPfLh8xayP 7iM5vfT2uEeC4NQW2b7iiqnfDcZs6/W0bbT4LJhczRIrjiSDJ3SJWXS2dYvo09kVm/Ix sSr3gAV+b5hf/HHAPxouaLaeozUg30iqKY+2uAAB/euBbK7kqQ7GsLViOhV5Pt4zK0wQ REvGJt0ys4c9s1Pgfu0aLqHmhz7/3/uq/aQfXta64NsBA+WDeTv9hCoKnQRphbkTzwMw FThQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=ET2HrGA+; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g3si8151471ile.29.2021.08.20.05.23.05; Fri, 20 Aug 2021 05:23:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=ET2HrGA+; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240458AbhHTMVp (ORCPT + 99 others); Fri, 20 Aug 2021 08:21:45 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:52794 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240340AbhHTMVm (ORCPT ); Fri, 20 Aug 2021 08:21:42 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1629462064; h=Content-Transfer-Encoding: Content-Type: MIME-Version: References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=zvEJtpbingpsiN3/ToulAmxrC6ZipGNFY5kyMai1SfE=; b=ET2HrGA+AfsAzQwTwE6bam2LSrwWgFYq/sEjAPKb7qr5G6jzcXM6cKzMAjc5vOlPDq8t5LED 1E95tLomfZe8TA68J02PgXIxdx1jUDPnkIH8A3o7i4OvnKE0/45g//Dd7O0ZfJvGfu/fx0WO 4aYBt2GyjdRGn5J96mCBmYZy0ds= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n03.prod.us-west-2.postgun.com with SMTP id 611f9e241d4eeff4c395e158 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 20 Aug 2021 12:20:52 GMT Sender: wgong=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id E5774C4360D; Fri, 20 Aug 2021 12:20:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from wgong-HP3-Z230-SFF-Workstation.qca.qualcomm.com (unknown [180.166.53.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: wgong) by smtp.codeaurora.org (Postfix) with ESMTPSA id 44FEAC4360C; Fri, 20 Aug 2021 12:20:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org 44FEAC4360C Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=codeaurora.org From: Wen Gong To: johannes@sipsolutions.net, ath11k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, wgong@codeaurora.org Subject: [PATCH v2 2/8] mac80211: add definition of regulatory info in 6 GHz operation information Date: Fri, 20 Aug 2021 08:20:35 -0400 Message-Id: <20210820122041.12157-3-wgong@codeaurora.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210820122041.12157-1-wgong@codeaurora.org> References: <20210820122041.12157-1-wgong@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org IEEE Std 802.11ax™-2021 added regulatory info subfield in HE operation element, this patch is to add it in mac80211 definition. Signed-off-by: Wen Gong --- include/linux/ieee80211.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index 68d8b9cdd3b8..deb2f536d104 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h @@ -2264,6 +2264,9 @@ ieee80211_he_ppe_size(u8 ppe_thres_hdr, const u8 *phy_cap_info) #define IEEE80211_HE_OPERATION_PARTIAL_BSS_COLOR 0x40000000 #define IEEE80211_HE_OPERATION_BSS_COLOR_DISABLED 0x80000000 +#define IEEE80211_6GHZ_CTRL_REG_LPI_AP 0 +#define IEEE80211_6GHZ_CTRL_REG_SP_AP 1 + /** * ieee80211_he_6ghz_oper - HE 6 GHz operation Information field * @primary: primary channel @@ -2280,6 +2283,7 @@ struct ieee80211_he_6ghz_oper { #define IEEE80211_HE_6GHZ_OPER_CTRL_CHANWIDTH_80MHZ 2 #define IEEE80211_HE_6GHZ_OPER_CTRL_CHANWIDTH_160MHZ 3 #define IEEE80211_HE_6GHZ_OPER_CTRL_DUP_BEACON 0x4 +#define IEEE80211_HE_6GHZ_OPER_CTRL_REG_INFO 0x38 u8 control; u8 ccfs0; u8 ccfs1; -- 2.31.1