Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp356813rwr; Thu, 27 Apr 2023 02:13:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7/v1Nz/QKoWS/4EcQwePI2BLxbRlsIr7tIrC1mFHSeF5x3lskpDN8dBh+qzrD++fK2FNxg X-Received: by 2002:a17:90b:1d81:b0:246:f9f1:ad17 with SMTP id pf1-20020a17090b1d8100b00246f9f1ad17mr1039840pjb.40.1682586816017; Thu, 27 Apr 2023 02:13:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682586816; cv=none; d=google.com; s=arc-20160816; b=TWVYhYffC3owbFLL+HrySjXW5sR/cH3hm+9eCLnmLGXWqdgsq4Z0q26Xx8kpHWRIO4 BmwFX6JYfxtkKieFAkXgmZGmllCCASvnZtyxeB9WRI9INRU3kGGX64IY9wuXSNtaHq2S B0Lpw1ajNE4ztDy1VUihaluEh79QP/lBWP4n+PhHB5iYJVSOOYR8vavIRGF1onlhZt9h TMokZvB1xc7AneCGxuNr3yLNN2B+1Qf27u1kEaVA210pfej0bh8elL0Y0J5iq0FCLzwA 264r/Oq8bUybrcLG4LM+M3gPjBrh/CWJnBWYqi5y5s3ADZRjgiSMeVe8FPlBrHroj0of e9Yw== 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=503AmHFJCUNZ9ebANqBvvtynjVKTNuo7BsluOwvOddA=; b=ZNVZCEpbjXYW+FN1hOp4E9KViNpOmup2KRb6+wglQsDgxvud9tnKXtdnKT41Sbz0N/ LN319pRY6IkSG+o/IEG5ANoT+bDq14HIUAlEkbY0XUnS4doqPiyjgpHmL4mbtGe4nw9y Zxz3D+0GH1uVWUPbXQy1Lpmhjos/IWmzPc9KATWqX8gM7RPAaqsrd2FbKlxLTWsa4KfS U0EQ4Pr18mMle3lY2hettYeUh8qXmwUcGQdfJcsvBKcHTZUDOhPpBS2ctbpJBJwQJhE0 LLLzy/IxBR+X0z9vIH8mE0+/jLxLkNNch+KC2jlSRtr6mdB5EgOGVCT7r0+6LQdotUSP NiAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Z1LrZENT; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=QHKRwA2C; 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 kb8-20020a17090ae7c800b00233d10c93b9si20636584pjb.179.2023.04.27.02.13.26; Thu, 27 Apr 2023 02:13:36 -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=Z1LrZENT; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=QHKRwA2C; 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 S243284AbjD0JKI (ORCPT + 62 others); Thu, 27 Apr 2023 05:10:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243343AbjD0JJv (ORCPT ); Thu, 27 Apr 2023 05:09:51 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28ED32120 for ; Thu, 27 Apr 2023 02:09:46 -0700 (PDT) From: Martin Kaistra DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1682586584; 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=503AmHFJCUNZ9ebANqBvvtynjVKTNuo7BsluOwvOddA=; b=Z1LrZENTfYO31Ezgm7/7Ev4t8HUQ8SfaGOq95lYCKj2N5jyqQxVTnwHmjrYj0ssuBoL2gi SM7SeI+I1C4VY4qk2qV81uEUYhldvFEDhvaNyYg5uX7UnweJPV0xlGgfCIgMThakT/Rl74 nFyL5wY2mY6U12NHf3/2/a/quuCF9nYwTKv/FIb/J6/6aksE7uZW1PagOEvCEZUY4nKNtc 4/m0XcvED3d4U8K4f8nSGyTQ8cPKXXIYwQK/pXmz/lmjA96IoOG74iekNwKN1Hsx3e4mIp eCul9h00fk1Y18JxjAo4blfwJdcGGjl1iWbPcWjdAvEul1sc9nXOFvC9ZHndlg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1682586584; 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=503AmHFJCUNZ9ebANqBvvtynjVKTNuo7BsluOwvOddA=; b=QHKRwA2CksRnZdI4B3WYH7ImZKKZ43nIrFEbRzzsMpf+GNM6upfxKvLeM71qnbN0eC1ira hSCGsOm6Li7lpTBA== To: linux-wireless@vger.kernel.org Cc: Jes Sorensen , Kalle Valo , Ping-Ke Shih , Bitterblue Smith , Sebastian Andrzej Siewior Subject: [PATCH v3 02/18] wifi: rtl8xxxu: Select correct queue for beacon frames Date: Thu, 27 Apr 2023 11:09:06 +0200 Message-Id: <20230427090922.165088-3-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 Use the special beacon queue for beacon frames instead of the management frame queue. They will be put in a special area called reserved page and send out periodically when in AP mode. Signed-off-by: Martin Kaistra Reviewed-by: Ping-Ke Shih --- 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 b8fcf911c072e..9dc6f3ec7a305 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c @@ -5010,7 +5010,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