Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp372711rdb; Fri, 6 Oct 2023 06:14:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHvpRVsBPkb/Bk8ih8mSZHVqX24L2C89MPxAfkVe0gWmpMgPbXofglg5DhrCzVlVE3gAMJ4 X-Received: by 2002:a17:902:bc4b:b0:1c6:f56:9315 with SMTP id t11-20020a170902bc4b00b001c60f569315mr7019009plz.68.1696598056608; Fri, 06 Oct 2023 06:14:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696598056; cv=none; d=google.com; s=arc-20160816; b=dnFZEpVJ4uiOor/XQmVHQfyzUctNByCk2xn4ckmOnOoRVGfwFYVbPgGW76IEPhB435 f0/hgrwX8G8zkr0Vc03K8JcunyCsz+KaP1PF5MaqvNq7GNI5MYt+A+7ERzQMS5chSKKp bzvKRWtU1RX5LFZnnB3UZs0zBcrDR3zptyj1akVSnMetlGaL3Onuobp2smHY6JQ9ATxa vTTHsOn4z7tH4bIyQBds4Lyfz8qbQxtxeqT75KH8OF5FAqkSGtKkDn1K2GHTwF6fye/L SO1UfZDcGv5DRMmRd62eMiNP7n+SKQ2BXfujEAVvmPYTIiR9Pk7lEYfQKEKHni5KSL+v rwPg== 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; bh=pKMrvT6CZYHTU44nQRAsM3Myruhho7RLdaPiR+BJ8bg=; fh=HazNXdIX0AV/SunPhS44scAMfyv5oAksttxwN9EpOFc=; b=mOGLS9+49ITqSm9KXR8JCE1RueEOAmWKoJ/DwyBLf6b3k6WEk0nEpKS3gb6w40MOcE Qt5wG9ktp1hOiwEkthpV0AV2B07nesX8YQyF+QwV8uKRoKXEbqUhMkep7lnRDzfmRizw U75gH8MpIbsrqiKIeorJxUB5HkeHi0Zy3bL2bhLe6XO0KCR+4akuSzp9vvO42RZzRWh8 FTII6l2qw+qg/c1/EyJONzsPIIUek4eJ9Q1VvQDSoI8uIMYiFUdFqGdILD7wjkv+IacY c5AuYsy3wRbeaEn/WaJfaprcUYimYhLjjwVJjWixccUTGeRa8Xy5NL+HWo2OaadFsi/b JWaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id l10-20020a170902f68a00b001c60ee79b6esi3809866plg.0.2023.10.06.06.14.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 06:14:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id A49A78027334; Fri, 6 Oct 2023 06:14:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232302AbjJFNOL (ORCPT + 52 others); Fri, 6 Oct 2023 09:14:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232311AbjJFNOL (ORCPT ); Fri, 6 Oct 2023 09:14:11 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9D93A6 for ; Fri, 6 Oct 2023 06:14:08 -0700 (PDT) X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 396DDuIbA1891477, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.92/5.92) with ESMTPS id 396DDuIbA1891477 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 6 Oct 2023 21:13:56 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.32; Fri, 6 Oct 2023 21:13:57 +0800 Received: from [127.0.1.1] (172.16.16.139) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Fri, 6 Oct 2023 21:13:56 +0800 From: Ping-Ke Shih To: CC: , Subject: [PATCH 5/6] wifi: radiotap: add bandwidth definition of EHT U-SIG Date: Fri, 6 Oct 2023 21:13:26 +0800 Message-ID: <20231006131327.16806-6-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231006131327.16806-1-pkshih@realtek.com> References: <20231006131327.16806-1-pkshih@realtek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [172.16.16.139] X-ClientProxiedBy: RTEXMBS02.realtek.com.tw (172.21.6.95) To RTEXMBS04.realtek.com.tw (172.21.6.97) X-KSE-ServerInfo: RTEXMBS04.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 06 Oct 2023 06:14:15 -0700 (PDT) https://www.radiotap.org/fields/U-SIG.html defines bandwidth field but no enumerators there, so reference to the values defined by wireshark [1]. [1] https://github.com/wireshark/wireshark/blob/master/epan/dissectors/packet-ieee80211-radiotap.c#L2466 Signed-off-by: Ping-Ke Shih --- include/net/ieee80211_radiotap.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/net/ieee80211_radiotap.h b/include/net/ieee80211_radiotap.h index 2338f8d2a8b3..925bac726a92 100644 --- a/include/net/ieee80211_radiotap.h +++ b/include/net/ieee80211_radiotap.h @@ -539,6 +539,12 @@ enum ieee80211_radiotap_eht_usig_common { IEEE80211_RADIOTAP_EHT_USIG_COMMON_VALIDATE_BITS_OK = 0x00000080, IEEE80211_RADIOTAP_EHT_USIG_COMMON_PHY_VER = 0x00007000, IEEE80211_RADIOTAP_EHT_USIG_COMMON_BW = 0x00038000, + IEEE80211_RADIOTAP_EHT_USIG_COMMON_BW_20MHZ = 0, + IEEE80211_RADIOTAP_EHT_USIG_COMMON_BW_40MHZ = 1, + IEEE80211_RADIOTAP_EHT_USIG_COMMON_BW_80MHZ = 2, + IEEE80211_RADIOTAP_EHT_USIG_COMMON_BW_160MHZ = 3, + IEEE80211_RADIOTAP_EHT_USIG_COMMON_BW_320MHZ_1 = 4, + IEEE80211_RADIOTAP_EHT_USIG_COMMON_BW_320MHZ_2 = 5, IEEE80211_RADIOTAP_EHT_USIG_COMMON_UL_DL = 0x00040000, IEEE80211_RADIOTAP_EHT_USIG_COMMON_BSS_COLOR = 0x01f80000, IEEE80211_RADIOTAP_EHT_USIG_COMMON_TXOP = 0xfe000000, -- 2.25.1