Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1048983rdh; Mon, 25 Sep 2023 01:19:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IENjRERw+Yd9Wz+15PonubyiSBNZ92jXgzeCtvKzcoQrvPCUOZjrW4TFLaaUdM9hyUH6b9j X-Received: by 2002:aca:121a:0:b0:3a9:e8e2:57a7 with SMTP id 26-20020aca121a000000b003a9e8e257a7mr6532354ois.53.1695629996371; Mon, 25 Sep 2023 01:19:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695629996; cv=none; d=google.com; s=arc-20160816; b=BTyxHipMjm4/Xpo0xzgrzhRprGqIJk7KSPhTAc47Ts2pTWJclnAOvmajWOKuhn7Vb8 UvN7OPQro5Dzcsbq2noV9IQMg/xScFdQSGyYNdpO7U3U/WmRm/kQRxeu/C3nIuqfEgvE YEKU5tMyUgF94RfFdb6mCFA467iMR7bTXwDJ0WudVG8ccM3jOcosoba/qnfb0kS1yMA2 UkYKLVO1WJHUH7KEWM3h6gdLcVgrkDQd7vNhKjADk9PzGdr2H1kydnRVimO3Zc64TaWv WkMO57JQj99Pu1l7PlyKmAlT1CS56faJQ++oTLzYqbTaMvHdiZkr+kFWEezB1D+6748m egbQ== 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=jfvKoDWHHaTjUVQOjlkbmDRrhnPiXrc3eTC3ox3pn+g=; fh=GN+QlTQ5rx42wBU+twLkTgldcm7jDP2V7OUTPNCd2+k=; b=wk7CDwGe8uxJKhY8fqfg9YEkNYpvA6FNVhl+5ieMrdnT6qF2JlSMfxwfEISKx7X9QD LucWNuh1wQQtzMVUcJ9OyU0fPiJeMkNWWWotrarxn1r28Pnn6azdoYdUvuWojp6fBFvl rLcN83vwv0tiLZmyaCdbfhHOA+xmQ61evRIOW0vMD5m9Mro/x2GTsSAksPV1h4+Sfy77 DsicxqZkgTDuQqNdwixcr+jTfwGt7wXgstiMXEfNSZzKAzw4d2QmfgEOnNBPKmPIEoFQ tUbhAUGxp/iq28t4a8HYp3p8tkrUPaPh+Fbjz86562lXBCB1FUSKes3jgKKbYAZUl5lm seZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id 63-20020a630142000000b005775a4a2961si9610024pgb.657.2023.09.25.01.19.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 01:19:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id E957380CBDD5; Mon, 25 Sep 2023 01:09:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232593AbjIYIJs (ORCPT + 56 others); Mon, 25 Sep 2023 04:09:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232524AbjIYIJs (ORCPT ); Mon, 25 Sep 2023 04:09:48 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4177A9 for ; Mon, 25 Sep 2023 01:09:41 -0700 (PDT) X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 38P89GusC3456775, 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 38P89GusC3456775 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 25 Sep 2023 16:09:16 +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; Mon, 25 Sep 2023 16:09:16 +0800 Received: from [127.0.1.1] (172.21.69.25) 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; Mon, 25 Sep 2023 16:09:15 +0800 From: Ping-Ke Shih To: CC: , , Subject: [PATCH 1/3] wifi: ieee80211: add UL-bandwidth definition of trigger frame Date: Mon, 25 Sep 2023 16:08:59 +0800 Message-ID: <20230925080902.51449-2-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230925080902.51449-1-pkshih@realtek.com> References: <20230925080902.51449-1-pkshih@realtek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [172.21.69.25] 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,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 (howler.vger.email [0.0.0.0]); Mon, 25 Sep 2023 01:09:45 -0700 (PDT) From: Po-Hao Huang Define UL-bandwidth values of trigger frame according to 802.11 std. Signed-off-by: Po-Hao Huang Signed-off-by: Ping-Ke Shih --- include/linux/ieee80211.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index 340d7e0f6bf7..691e387c8056 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h @@ -307,6 +307,13 @@ static inline u16 ieee80211_sn_sub(u16 sn1, u16 sn2) #define IEEE80211_TRIGGER_TYPE_BQRP 0x6 #define IEEE80211_TRIGGER_TYPE_NFRP 0x7 +/* UL-bandwidth within common_info of trigger frame */ +#define IEEE80211_TRIGGER_ULBW_MASK 0xc0000 +#define IEEE80211_TRIGGER_ULBW_20MHZ 0x0 +#define IEEE80211_TRIGGER_ULBW_40MHZ 0x1 +#define IEEE80211_TRIGGER_ULBW_80MHZ 0x2 +#define IEEE80211_TRIGGER_ULBW_160_80P80MHZ 0x3 + struct ieee80211_hdr { __le16 frame_control; __le16 duration_id; -- 2.25.1