Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp37322rwr; Wed, 19 Apr 2023 03:05:23 -0700 (PDT) X-Google-Smtp-Source: AKy350bEhKJJzkGcWRce4LTHZlYzEQgrCXzd1pBjEXiu7lBLyyWxvNd5uKeebl/5IsMFm65mgw+s X-Received: by 2002:a05:6a20:430e:b0:ee:f5a4:c06d with SMTP id h14-20020a056a20430e00b000eef5a4c06dmr2950681pzk.62.1681898723547; Wed, 19 Apr 2023 03:05:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681898723; cv=none; d=google.com; s=arc-20160816; b=x46pUKyyOArO/PDm3tnq7tmUroxx0TxLiATAXrV+ynX5tnwSDMXhvUbs2d1+Po2Qip kXm/+Ox63DrQ3LdrwZUvwI2bQlMKfM1YdTb3Xxybz9U3CqoLABnyyFdWNvJ37oNlaX53 plwCm60YdZ8hn5KVnaQUFtu51KtrsoreLRomt7XMpFWCYTZw/LOCLxpw2oLK3b5wn5fF 7cUxDk3KXlYnBn0ADPazAzWsTnt+F7uE40Y2Fy7GJv6TRwZ00Vb36snrNf2Kmv6hs96C Ub0S7AZFj/iqQ0ZwPFK4L5kHZNuJidne0PoeMQ1y5J2cgzOCH3ExDlNYpzWctrWdhiV5 ldBA== 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=OenvJIVjMKz7J9UXyVI0Wdvm1s2jXrWTibJxP/BRpC0=; b=q1q+fJ+42ZDEVrT+R6+jhNjyl8Ik8CmqrmysXbOYVYn6MrxRC29EF2cKkmASopwhKL 7X/vEl4mFsMaZlDeoXkoC1MNeoWf76UF2wFU4NZ6sPu82NhSXedZx1NeAkAQhMWQum0R Adie692hx/uRvMudoQ/Mmu8cebG9VU1JhxEnSBrDhRgmgvqULjD6YeBgckRTwghEhtrJ VHrYbrqLaenEsI2bde0OODY3yvlPCiT3Dd4pT1r7cDvUbXdv2FOqL+VS9FdTgJaC9xBn c8/4uaKqgMeutN9ROnffNIueaS6Ay+8Mz0LV9//ufL4GSEeXvTYtU27Uc4vJI4Wxfx3T E3zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=EFwvI0ZP; dkim=neutral (no key) header.i=@linutronix.de; 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 s8-20020a655848000000b00513579041bfsi16320715pgr.636.2023.04.19.03.05.14; Wed, 19 Apr 2023 03:05:23 -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=EFwvI0ZP; dkim=neutral (no key) header.i=@linutronix.de; 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 S232926AbjDSKCl (ORCPT + 64 others); Wed, 19 Apr 2023 06:02:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232930AbjDSKCT (ORCPT ); Wed, 19 Apr 2023 06:02:19 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4794CB746 for ; Wed, 19 Apr 2023 03:02:17 -0700 (PDT) From: Martin Kaistra DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1681898533; 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=OenvJIVjMKz7J9UXyVI0Wdvm1s2jXrWTibJxP/BRpC0=; b=EFwvI0ZPUKE7bo6jArlwMMYGQfO8Vw8MR/7alOJZnNu0HmxG4C3nkao6qAT3Ihg+RtJfPS ySspUHK4IWRi+1xlxLipbSiRLH+ntBRrzpYIuN/bkzkt6gL+577/GrrCI7KflEyMgAEu09 TQQM2OHtoRn64w7qvbxHQ02AP8YdkBdpGfGgNOW2YUcfu8HO/ww56ZB7CM17kDv//h34eF lMwU4hhf59i3HSbmGrqqIeZs+1VdL0dzH/bFYhpEf7doN+4GFaww8iTT+y2nHIq0rCDkj4 oif8GeFEGPG5e5oEYpytvDX0aGSD1m8bodLPwP5FOkjHcT/Yq1a5V9dQZ7UYZA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1681898533; 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=OenvJIVjMKz7J9UXyVI0Wdvm1s2jXrWTibJxP/BRpC0=; b=/l2PB2gm9laK0PGExerAX96CiioeFSyFq+CmJVVbk2g0IyCaQwKr9J4wSEmaU/EdGeliSc owtRLjSgpjn3rMDA== To: linux-wireless@vger.kernel.org Cc: Jes Sorensen , Kalle Valo , Ping-Ke Shih , Bitterblue Smith , Sebastian Andrzej Siewior Subject: [PATCH v2 13/18] wifi: rtl8xxxu: Enable hw seq for mgmt/non-QoS data frames Date: Wed, 19 Apr 2023 12:01:40 +0200 Message-Id: <20230419100145.159191-14-martin.kaistra@linutronix.de> In-Reply-To: <20230419100145.159191-1-martin.kaistra@linutronix.de> References: <20230419100145.159191-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,URIBL_BLOCKED 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 --- 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 2e02812a4a85a..cff465c7cda30 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c @@ -5300,6 +5300,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