Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp409311pxb; Fri, 3 Sep 2021 05:07:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0vb4kfEJPiiqaRiskrHuXLLZNQTQZdoMwNqV74f8KKImxoI1tTMfKbzipYwCDwpUI/PyV X-Received: by 2002:a5d:40c9:: with SMTP id b9mr3691331wrq.212.1630670847748; Fri, 03 Sep 2021 05:07:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630670847; cv=none; d=google.com; s=arc-20160816; b=aq0CuAV84RCQwsRK9aWbhAU4r3N5ODn1WRDlGvshLZN7en674xZYposSYEN+6sCX+n Dq6vApP/ElV4Ywd2Ph6ky6XfSrPtaRzoFzTHGF4X86GAkyyA9Q+SeUgxZ1ccu5SdwTxy Ml1tQtOKc2bHB0L96ON7BXDIZEj9PnJKtvXrKJw/ocEZ+X8pZ8lPIXO+UwsU0b8cbNWG igof5w0Ci/O2fPdNqbwBRHIAwNBmokZFWsYbo96IZk4/WkYMmB27qEts1qXWEDHW/2jC 4E3PwLuzyIbc26md1HFt3fakO7RInqj1Bv8MbKUwyn2xrZ1tJB7kXxM8S1H84SVQEFIn JG0A== 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=hoWXgGGISPMiY2lHMuQSz3w8l1gdOH1IMqS4cmZCt80=; b=EaB1ZAjl/Icmy7Q+w1z+gKqOndbqF1crdqduS2L40XYlJbHGel6yFBb6vZ2htijXtV DelEoRNPCj4g1koKwIpycJtQuVTceDeruR1Ny/pmpEjJXFdVyeyjtC0w38WJt5zVJfVW Sb5svliYRzQMeu0SMnCsdimL9cyKp9kh1SHcY6vi97OsdKz/kUw1p2CdePAdJtEXWoxX jgaNlEMt4Iw+pQs95M+TNwygScFRKiuur+77l6zUbrTwG79aVPFolLS/st+BZ8LjaXFH suUGH5VTCehPwyG8q7bOXvhhTdVylo/HUDYxEJaK7/75KWIXjvsFu8T9P+cM4e+Bj+65 mlQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=C62C5wrX; 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 l7si5224875eds.281.2021.09.03.05.06.47; Fri, 03 Sep 2021 05:07:27 -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=C62C5wrX; 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 S235195AbhICLte (ORCPT + 99 others); Fri, 3 Sep 2021 07:49:34 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:45250 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235143AbhICLtd (ORCPT ); Fri, 3 Sep 2021 07:49:33 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1630669714; h=Content-Transfer-Encoding: Content-Type: MIME-Version: References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=hoWXgGGISPMiY2lHMuQSz3w8l1gdOH1IMqS4cmZCt80=; b=C62C5wrXCBKGDX+M7tbqFvHeZLRsbVtkibQCa+0OAkNIpz5Bnbkm+MguWu6gJaYkKEt2k+G+ bAIaMYuK4dzhk1N9w88gyUkVyYr9ElaN3Xixm7X7ERyHUq5AsrXJ2FDk7wnRBMYbfeWVZiNr JtTvzV64QJUZ4jezmeN0B6+goCA= 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-n05.prod.us-west-2.postgun.com with SMTP id 61320b8f89cdb62061a53c49 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 03 Sep 2021 11:48:31 GMT Sender: wgong=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 7CB36C43460; Fri, 3 Sep 2021 11:48:31 +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 1B200C4360C; Fri, 3 Sep 2021 11:48:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org 1B200C4360C 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 v3 2/9] ieee80211: add definition of regulatory info in 6 GHz operation information Date: Fri, 3 Sep 2021 07:48:14 -0400 Message-Id: <20210903114821.23346-3-wgong@codeaurora.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210903114821.23346-1-wgong@codeaurora.org> References: <20210903114821.23346-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 2bab84297407..bed510b7bb6b 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h @@ -2298,6 +2298,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 @@ -2314,6 +2317,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