Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6423258rwl; Wed, 22 Mar 2023 10:22:37 -0700 (PDT) X-Google-Smtp-Source: AK7set8Y7BpbYJTWY589es6e6xG42YcLZEoGtIbrMZDTncBZDxdKSVoM0h70EFXnRepivPtehVEz X-Received: by 2002:a17:907:101d:b0:924:d90a:6f97 with SMTP id ox29-20020a170907101d00b00924d90a6f97mr8063900ejb.13.1679505757128; Wed, 22 Mar 2023 10:22:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679505757; cv=none; d=google.com; s=arc-20160816; b=p+a5qWXa5b90iyLGTjt2x5puVmkOwR0/k+0Z7bKQVDptAIzqlJRX+4SsZEl80Pw8UP cisV9UN8hHXQocBck8E/yCc77NKOtJIJtjOoZTxiT13atr1oaRjDTZiTYGiJpfjq+w4d FvnVzUUG2oybFKQojRgtgvk+pqKOcXfQf10yu6NWotFYMi+/bTRCMU6FUTL2S/8BFrQF bcgaCS2DEzSjn5YBaWzzjLgibfEurrvNd/ObR4EimmvllPq61x86+9CCAYjab4y4K3GI k0LpHjGL9NRYnZ6xIZ5EP9OqRFOlaIcWUaga9tzIltPZcr7Nxtip3XRAQE7QVyzUH+8r 6eSw== 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=0awDbNe7WfoBmz83PWLYWgodgMNnR2l1+km1lsMkXbQ=; b=SScOVpXO3q0+zqoQIBDPYA75uGh2mWvFwiqOXfxxs7ZIObk3r18PTkiTPP+ytOH3z3 WVkBWRiuBcxUBvPF2sAR4/6IubczLdL1YdIuSmxOcFIH6E34KTye+POjzS18zcbswIPI /xe8E56Coud3xrFG1FLuywKy9AzJR+YMAFMgtsuPBK87XVUucj4dZ2DjmGUUW//oRLE4 z9olD5rVmsybHq0t5uKWiH4tJaeVbFX5+hyg7SkwwLhQVQlsea6zFipNogDv/DPxvtmA 80yZSPAPL9seqw0IUL8deFP6IhevPx1j0ysAIXGYEbWhQkSAolr97z84cUA/yG9kHUBh JGeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=tVMKmG4N; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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 t6-20020a17090616c600b008e0363188c7si15226068ejd.890.2023.03.22.10.22.22; Wed, 22 Mar 2023 10:22:37 -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=tVMKmG4N; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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 S231145AbjCVRUL (ORCPT + 60 others); Wed, 22 Mar 2023 13:20:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230463AbjCVRTy (ORCPT ); Wed, 22 Mar 2023 13:19:54 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB49667707 for ; Wed, 22 Mar 2023 10:19:35 -0700 (PDT) From: Martin Kaistra DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1679505551; 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=0awDbNe7WfoBmz83PWLYWgodgMNnR2l1+km1lsMkXbQ=; b=tVMKmG4N+tlgYrwDUQ9ejRZC9Hf0XDMKizvnBFbY3IZkqVga9SOW8XdT/2zGzAThFLUmlW a5+hBMRhWTcSgTCgr7do1nkIP+LvQifoStP8dQhGiT+O2fYxQWSV4rFWWx8uQgEe2CNUc+ 92be5rxGyAF2fyHx65055nt3ZPiMO6uEuiV7stKnNUPNvtmQI+OWuROqaxU1c2AkFSqMbW 7aTRmy6XzHWPZRvhIpT/Pur6yHxt51F+EpNhukCl64w7GNYWJRpuF2YYKXhQg//9lfOiGx 6uCkXgHSxnvb0dXBNzJYY97D7JbRD3uoRdvcwnc7bUCpb+aUYm4zvHzGWskqxA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1679505551; 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=0awDbNe7WfoBmz83PWLYWgodgMNnR2l1+km1lsMkXbQ=; b=ISq2LVuyknD0QnVMoJ4MkQgi9aoQdKvTmUKVVHDsc75EwUXktfnnp6MhSl8tzY7MnsAyoh 5pQ0L5EgfUSW9LCA== To: linux-wireless@vger.kernel.org Cc: Jes Sorensen , Kalle Valo , Ping-Ke Shih , Bitterblue Smith , Sebastian Andrzej Siewior Subject: [RFC PATCH 02/14] wifi: rtl8xxxu: Select correct queue for beacon frames Date: Wed, 22 Mar 2023 18:18:53 +0100 Message-Id: <20230322171905.492855-3-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 Use the special beacon queue for beacon frames instead of the management frame queue, so that the HW sends them periodically instead of only once. Signed-off-by: Martin Kaistra --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c index 90b98b9dcbd9d..daeaa7d6864f9 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c @@ -4941,7 +4941,9 @@ static u32 rtl8xxxu_queue_select(struct ieee80211_hdr *hdr, struct sk_buff *skb) { u32 queue; - if (ieee80211_is_mgmt(hdr->frame_control)) + if (unlikely(ieee80211_is_beacon(hdr->frame_control))) + queue = TXDESC_QUEUE_BEACON; + else if (ieee80211_is_mgmt(hdr->frame_control)) queue = TXDESC_QUEUE_MGNT; else queue = rtl8xxxu_80211_to_rtl_queue(skb_get_queue_mapping(skb)); -- 2.30.2