Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp356066rwr; Thu, 27 Apr 2023 02:12:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ41fKu9lixXcOcxJs5CDER12tTBM+gyuDWs1SYNY9JF8a6ZmOVCpSNsjMrS5/dNwWm9RfaR X-Received: by 2002:a17:90b:3e8e:b0:247:2152:6391 with SMTP id rj14-20020a17090b3e8e00b0024721526391mr1247858pjb.17.1682586769799; Thu, 27 Apr 2023 02:12:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682586769; cv=none; d=google.com; s=arc-20160816; b=IYU3X+7w87mxjwcPpzPvbSwKRk3cBh48FTdXn+aF1I3Lv3Q7Jn2r/dcdSTAm+eUK8r 7g+0vVgoJu4mRJtjNKZRXUFZzmdGAgrNSCPJrV26FKAkEMbVZFGTjPib+PLUWHe4tRwI jJaE2zw7ff6mVpHPVnYYVR92EATOPC38sFTTTti48Qwxgdloam3UQX5kseqw0n5NIOQP r/6SU2jh7TYMCceeWO/mSU1oVIJmw7G+jie5yjKakJHVvjmbxl2AH63DWJpf7ybuEZNW pi5uFekJBQsOsvv7leUT2SaQRVW7FIB8wLETzq37z4q9pdKcwMSsbVSKkVzWhnJ39QLp DoTQ== 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:dkim-signature :dkim-signature:from; bh=GXP77/jB6VmJNDlbfxw9JSQSR26GQzTLQjn/6Gj4vFc=; b=lQlB2n+0erhDbJZqe2G8Schh8zmg4L0mTPcNlpOJCT6wQe6+/9HbXrlgnO+XjWH/Lb qo/mSPdy9hUJCuREETVGiub2kDzuOgOKDy/WhQk72FROHpnN5p6N0oLiR6Rdj2s+4/xy Quks/bCaJwlqG77bCIw1ghex6hhNRj07fr9CfllXNJgJ+O9FfyArI1bbrj5G3yTj+1+J 9Fl7JE45PG9oE/6MUz11P39GxqamEoEagllWcy0YciREZ3yuypdhCF7Fr7xgFg91/nny KeZw2xXAuybYElsiikgh4E6ci3wVlGnHxaEnuJ9CoCjVIoraJ63KvA+QMgAusrMRsUzB +NEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=v9Fw3SZh; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="0/nh9vHt"; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h16-20020a17090acf1000b0024715c041c3si20645135pju.137.2023.04.27.02.12.40; Thu, 27 Apr 2023 02:12:49 -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=@linutronix.de header.s=2020 header.b=v9Fw3SZh; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="0/nh9vHt"; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243315AbjD0JKN (ORCPT + 62 others); Thu, 27 Apr 2023 05:10:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243384AbjD0JJz (ORCPT ); Thu, 27 Apr 2023 05:09:55 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42DBD19A3 for ; Thu, 27 Apr 2023 02:09:53 -0700 (PDT) From: Martin Kaistra DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1682586587; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GXP77/jB6VmJNDlbfxw9JSQSR26GQzTLQjn/6Gj4vFc=; b=v9Fw3SZhhHmZGTL2gDrupsazjh3knOmRbfA6+HnPlwyILNwXMI0Tw+4KEo8rigl0dc7AU6 fII5JJkgeBBsUnSCsav+SpO78K0jocsmKfn3nqltMYdsG8tL1L/BzNVRLJdrSCmFSk+TzW rcDl3QaKGmGPttE7lGfotbAH4573RydfjgIJjLuqKOgT3y0eGNgOov4Ljof2XnegLfOOEL SIzmF/eg0onOpgWufDWUZ1YqI2VVYoKHA8to3ridCl2kiEfMq/ebBATIdn5bRvkAg+mxe1 c1VOYrGlZ7c+teRK5PtMYtVhhaPFu8ZsyfjL3H6/sLA2vwGOIOsMQzUL2TTC5Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1682586587; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GXP77/jB6VmJNDlbfxw9JSQSR26GQzTLQjn/6Gj4vFc=; b=0/nh9vHtKh3BR3TA+iISOsxx4Jxout2E3JtJFQDrIYziu0cMGve0eFyQ6NLTGKz9tWRM4X 1r+cla1Kx26FCfBA== To: linux-wireless@vger.kernel.org Cc: Jes Sorensen , Kalle Valo , Ping-Ke Shih , Bitterblue Smith , Sebastian Andrzej Siewior Subject: [PATCH v3 13/18] wifi: rtl8xxxu: Enable hw seq for mgmt/non-QoS data frames Date: Thu, 27 Apr 2023 11:09:17 +0200 Message-Id: <20230427090922.165088-14-martin.kaistra@linutronix.de> In-Reply-To: <20230427090922.165088-1-martin.kaistra@linutronix.de> References: <20230427090922.165088-1-martin.kaistra@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Beacon frames are generated by the HW and therefore contain a HW generated seq number. Enable HW sequence number for other frames to match that. mac80211 will tell us via IEEE80211_TX_CTL_ASSIGN_SEQ when that is necessary. Signed-off-by: Martin Kaistra Reviewed-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c index bd01a61a83036..5aecd2b9184b9 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c @@ -5369,6 +5369,9 @@ rtl8xxxu_fill_txdesc_v2(struct ieee80211_hw *hw, struct ieee80211_hdr *hdr, tx_desc40->txdw4 |= cpu_to_le32(TXDESC40_RETRY_LIMIT_ENABLE); } + if (tx_info->flags & IEEE80211_TX_CTL_ASSIGN_SEQ) + tx_desc40->txdw8 |= cpu_to_le32(TXDESC40_HW_SEQ_ENABLE); + if (short_preamble) tx_desc40->txdw5 |= cpu_to_le32(TXDESC40_SHORT_PREAMBLE); -- 2.30.2