From patchwork Wed Mar 22 17:19:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaistra X-Patchwork-Id: 666522 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 63858C6FD1F for ; Wed, 22 Mar 2023 17:20:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231181AbjCVRUj (ORCPT ); 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 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);