Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp34803rwr; Wed, 19 Apr 2023 03:03:26 -0700 (PDT) X-Google-Smtp-Source: AKy350ZQPPhaOTOFGmUzFnKjJLByw1JUpZRRgUUGsoQOCk6V6qwiI1EAoxf8aYN/zSmtO+qaP/2S X-Received: by 2002:a05:6a20:3d8c:b0:ef:1b1e:a024 with SMTP id s12-20020a056a203d8c00b000ef1b1ea024mr3248667pzi.59.1681898606168; Wed, 19 Apr 2023 03:03:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681898606; cv=none; d=google.com; s=arc-20160816; b=OJKTC6/cWoqVIKCqMWDWdW8QSnwTo/6g5aGxEqPuXDrMcUJdRVwOKcZwpSJjZTtw+C RuELiL7suWMvw4JmKixYhUoYMhoEqFmn4vCItHZchthypZc37O0NxXYtLrWCvGHYAbSO wV2N+XJxXfJJUh2PT20vUzWT3XV+CFAsW+iAeG60w03XXhQlORS42T9ynPCHSn4K4xZP CnTqG3xUe08ncRKG4iHZbYPPlNSXfunSQ8xi9Mv+I6Vj5TTEemFoMzfCM1JkyaoKEoMD Gt0fn879zPGfIVDhMZVWPk+hZQBUwB2L4VWUlZKlIqam2RG3uk8XOY/f/cY3KWk89y0p +S7w== 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=exuMm+bddySeIvoR2hVGEeArp9snx7hybGttDvRfkqE=; b=00jN0bf4xgAoubCsz8x4zsOydMjuFvfZ1soz2KN7b/lgkArX8kea+5Wn04puFC+NX5 4rmhOaBTyHNugjvilxZxsWIwEmEdod5/a9X6SwswpxjoogeAcLZHsqczqvBd9XJu8Omg nbnSTg+wRmDETC6gSh3HdOgnNwStdkQXC8RC2o9AvbxU0rkXRhI03oHIei42ive4QCCd uKAiTsHqQk9rGArPPM+7w+taYJFuhmc0Jxr6bJrFllfPpNv2m2k5Vm5mg3oTQE90ZS/L 9U9d9vzozjOLUJ0OIFwRrL0FBU4MlPt9mhQTO+AUsxjWCfKVCUeqcPuXVpM5cHSCC/m8 194A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=NOAMDIyA; 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 s23-20020a634517000000b0051460989406si16131514pga.605.2023.04.19.03.03.13; Wed, 19 Apr 2023 03:03:26 -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=NOAMDIyA; 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 S232779AbjDSKC0 (ORCPT + 64 others); Wed, 19 Apr 2023 06:02:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232897AbjDSKCP (ORCPT ); Wed, 19 Apr 2023 06:02:15 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A349E19B9 for ; Wed, 19 Apr 2023 03:02:12 -0700 (PDT) From: Martin Kaistra DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1681898531; 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=exuMm+bddySeIvoR2hVGEeArp9snx7hybGttDvRfkqE=; b=NOAMDIyAzgj4bhm7FtidSE4piFH5XdEFTtMO28DtWWek8yB2Z/qovXNPESrGyLqJyPt/GP 5A04C1vz35ahekCKZgAQdyfPpjJ9lSbuoWBf5/G82ImzhvJ2kwGFxYIW6km0pmyK+m6fw/ yeV8Lv9ItU3Mhx65oz2ZeP9Of30DEummCcOXSdxhLD1ZldzNPV702AIuLtxUODln7Re+EA QVcvDZd37GqXN3YTUdhParB5ryrZZjfhxvCkKx7h1UmAxbk7bvQPZ3+rw7RQKQHyUs64gw oXgo6xGKVTpkzWW6rzPfn/SF0QXUc2X1mEJGBsNnXoWussuxIpXhzW309NcEGw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1681898531; 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=exuMm+bddySeIvoR2hVGEeArp9snx7hybGttDvRfkqE=; b=PBnN3akVEArHESvo7UCP1KvsV289n6GdeF01xGuBM76yqj7JGfINwh5SvsuIbzhZovbazm TeXmMTlheq1F3NBA== To: linux-wireless@vger.kernel.org Cc: Jes Sorensen , Kalle Valo , Ping-Ke Shih , Bitterblue Smith , Sebastian Andrzej Siewior Subject: [PATCH v2 02/18] wifi: rtl8xxxu: Select correct queue for beacon frames Date: Wed, 19 Apr 2023 12:01:29 +0200 Message-Id: <20230419100145.159191-3-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 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 b2be89c35d914..2c2513cee3a63 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c @@ -4931,7 +4931,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