Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6421606rwl; Wed, 22 Mar 2023 10:21:18 -0700 (PDT) X-Google-Smtp-Source: AK7set9ceQOnhvESDmC+g82TUUUVxsJ8Wet+gU2TxJjb49m/+qzudwQ5GmXLdp9aOck6T2wOXHs/ X-Received: by 2002:aa7:c7c9:0:b0:4fb:b0ce:3f63 with SMTP id o9-20020aa7c7c9000000b004fbb0ce3f63mr7465294eds.28.1679505678528; Wed, 22 Mar 2023 10:21:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679505678; cv=none; d=google.com; s=arc-20160816; b=oeVgc0vFsAcym0r0ZSoqf8cqyO0fp39HK5ssqq3oVgjgxJqyUZomhEkkanUfV5xY9G /J2ELH/pfmB6mXj7zKL1mo6FKHVjR1JzaGZsYsVIy83bgWAChNI3BEcM5As+GC9JPFA3 NTodyJ6dTBJQ086luRtoFSfLXl+pCMIZMWX9QHGlO8tpsbTTiE/26tG8GXUov+KfypTl eAQTCTFLc+cZZt9yECnwEDYggAw5dRzBjYue0SWtzeu9tvbvOat/RFxkdLuYMcDGkL7t Dab9k4zY+NIUFmloegA6T3PvJFK6rloMsEmYYjsVfH+zeY/TICcSGx9c0qm4bHXgCAhr gYEA== 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=GSC4XBq1LN0OITnco18H/DpZifJ9qAtmVRwqncwbESA=; b=PRavxB+QJbub6Ch6vFmwfFV66GqEv0eAXhG+bvqqjz23dkqmoD0Ktfbc+ngzCMwMCA riz143uaccTwajzvaPDOdkXdn3+VSatrJPcCm0fdWooMeQiImNN7ORMySQ4+5tha7Kbq U6zXOktDqzl28k1XLY/zJN67vfPB8F0oTBYOSGM2vEmb5fkcV5Kh/3XnN9cPMkdIElS+ 5rP1i7HwV3DX8j8d8nl5GKWDzIu3Kl74VDO0NXmYBM/yielX7MLsLj+seca+Ppgmj5B1 FmEJNIDoEUxVkoq9VMi22GBG6vwdlnpGMDu2gldpF+wPCVMjpod68GVAYl+UQeD531T/ aaFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=BIiiyxUe; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="9cMfc/pr"; 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 m18-20020aa7c2d2000000b004ad7c7c307bsi9723657edp.567.2023.03.22.10.21.03; Wed, 22 Mar 2023 10:21:18 -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=BIiiyxUe; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="9cMfc/pr"; 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 S231181AbjCVRUj (ORCPT + 60 others); Wed, 22 Mar 2023 13:20:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229939AbjCVRU3 (ORCPT ); Wed, 22 Mar 2023 13:20:29 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C303C6420C for ; Wed, 22 Mar 2023 10:20:05 -0700 (PDT) From: Martin Kaistra DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1679505553; 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=GSC4XBq1LN0OITnco18H/DpZifJ9qAtmVRwqncwbESA=; b=BIiiyxUe23a44Ke4tYJ2B1L13z6WezjQAvxXtgru02riXiqWXyCKCyOBCc3by/+9LbxD90 TG13acd2e7ri2oSsMElNLUESh/YreVnPcgEOb6x1v8aUW7XRfr4NhADF6GTTKgDPodYZ9+ wI5rcwfNPfoaOJAD0TkVsgjgR+bFn5yGKe3h1O8Ww5FitovGBYas0nXUzxSLzzhEdAy0KD K7f/42w0YFDuxw3mkoSgtCRNx47qofeYPgnI2PjqSYwR/ID6FozM2RqK4+Wtz1VVEoOAl5 UW0+tGOtJyUv1EJSSh9nNKTzIj6kPrr8Lv4xzCI+o0kYhW9/a0PfFywj8vRE8w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1679505553; 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=GSC4XBq1LN0OITnco18H/DpZifJ9qAtmVRwqncwbESA=; b=9cMfc/prMYeaBB/SMMxl8vghGvBfWfEGJ8Hex4nvoHdK4CSDJk87Tgb9Vl6pXhcdd5RopF oTBEjUXVf/IXHLBA== To: linux-wireless@vger.kernel.org Cc: Jes Sorensen , Kalle Valo , Ping-Ke Shih , Bitterblue Smith , Sebastian Andrzej Siewior Subject: [RFC PATCH 12/14] wifi: rtl8xxxu: Enable hw seq for all non-qos frames Date: Wed, 22 Mar 2023 18:19:03 +0100 Message-Id: <20230322171905.492855-13-martin.kaistra@linutronix.de> In-Reply-To: <20230322171905.492855-1-martin.kaistra@linutronix.de> References: <20230322171905.492855-1-martin.kaistra@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=unavailable 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. Signed-off-by: Martin Kaistra --- 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 c232de1d47173..82fbe778fc5ec 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c @@ -5275,6 +5275,9 @@ rtl8xxxu_fill_txdesc_v2(struct ieee80211_hw *hw, struct ieee80211_hdr *hdr, tx_desc40->txdw4 |= cpu_to_le32(TXDESC40_RETRY_LIMIT_ENABLE); } + if (!ieee80211_is_data_qos(hdr->frame_control)) + 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