Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2183751rwl; Sun, 26 Mar 2023 17:51:53 -0700 (PDT) X-Google-Smtp-Source: AK7set/fNYGj5hN+wKLcG44ZvdzZLtsh+vrIhHLqtFwQHXetT6f+DsRHwZV4IYJeSYf3BMCCXz9/ X-Received: by 2002:a05:6a20:8f0f:b0:cc:70df:ae20 with SMTP id b15-20020a056a208f0f00b000cc70dfae20mr14184494pzk.0.1679878313333; Sun, 26 Mar 2023 17:51:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679878313; cv=none; d=google.com; s=arc-20160816; b=KEUQGynn7JwNayZO85POu9Q33tVL9NqRbIsu0tHn2pMM3WZ6bmjWJogCpOG9bTq233 tF+TVTabcqBvlzb/+ROCCPkk9pt1BOkMgaxky0XClTgofXBAcLbDtaZ362sLDRfLcVzS 5kKh5em4Wt/XdBBKJwinzimEbQ4y4XExjBCiclc9DDQMQ7I2DDBNI3dncbjG8DqMKmUc rPffSX4ZWM1vNlfafiUuGjibI/AeWjkqhC8MFET1o2QGG/AYHTAm2qRoFAUAsi+3Wi/S p7Js3rmQOds7N0tyEWwZ7nVjrg30SNh4rp60R6kAQgaPQKHXhlsWD9riCnyh329cWaBd k81A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:authenticated-by; bh=uCrtneJHEhJt6UJ/S/G2UZKyCi9wENyDgzzjcOqLlN8=; b=GblW81ai05rrZnloSyf+gE2UXePFbQ5z29lugkptHAP7OVnz9MxEHsHVBH/k/XMwcu lxOi+nkiJJUzUqJ2535tlctd8KJjByzEMP2KHTemh0TmHDIadLJ8Df9+o8O0iM7VKP9R hCWz9550JsHG4lJFEMBh61SbumVriNmSBYRVwyVGdhdKqpkdqBOYFZ6O9U5eecvKWFol rHSYZwRn0nFgE/5f+uHV5AnuWliAZnDLV66MB2lgLtPxqynPpkyOmk2L/Dj/t/rfhHFc 652reUjGyxQkd57+v2x6kSAmvaMj9W3R4c/S9jhuvMzkvxhQwE48bBuXAif+C3N5fsYe 38nA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x5-20020a654145000000b0050f767a0265si18172423pgp.531.2023.03.26.17.51.46; Sun, 26 Mar 2023 17:51:53 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231893AbjC0Avg convert rfc822-to-8bit (ORCPT + 59 others); Sun, 26 Mar 2023 20:51:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229808AbjC0Ave (ORCPT ); Sun, 26 Mar 2023 20:51:34 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C185E132 for ; Sun, 26 Mar 2023 17:51:33 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 32R0p6Pj9012019, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 32R0p6Pj9012019 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK); Mon, 27 Mar 2023 08:51:06 +0800 Received: from RTEXDAG01.realtek.com.tw (172.21.6.100) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Mon, 27 Mar 2023 08:51:22 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXDAG01.realtek.com.tw (172.21.6.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Mon, 27 Mar 2023 08:51:22 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::b4a2:2bcc:48d1:8b02]) by RTEXMBS04.realtek.com.tw ([fe80::b4a2:2bcc:48d1:8b02%5]) with mapi id 15.01.2375.007; Mon, 27 Mar 2023 08:51:22 +0800 From: Ping-Ke Shih To: Martin Kaistra , "linux-wireless@vger.kernel.org" CC: Jes Sorensen , Kalle Valo , Bitterblue Smith , Sebastian Andrzej Siewior Subject: RE: [RFC PATCH 02/14] wifi: rtl8xxxu: Select correct queue for beacon frames Thread-Topic: [RFC PATCH 02/14] wifi: rtl8xxxu: Select correct queue for beacon frames Thread-Index: AQHZXOKSGlQwKBGna0qA4ITiwI1tPq8N0Yvw Date: Mon, 27 Mar 2023 00:51:21 +0000 Message-ID: References: <20230322171905.492855-1-martin.kaistra@linutronix.de> <20230322171905.492855-3-martin.kaistra@linutronix.de> In-Reply-To: <20230322171905.492855-3-martin.kaistra@linutronix.de> Accept-Language: en-US, zh-TW Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.69.188] x-kse-serverinfo: RTEXDAG01.realtek.com.tw, 9 x-kse-antispam-interceptor-info: fallback x-kse-antivirus-interceptor-info: fallback Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_NONE,SPF_PASS 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 > -----Original Message----- > From: Martin Kaistra > Sent: Thursday, March 23, 2023 1:19 AM > 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 > > 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. Frames with beacon queue will be put in a special area called reserved page where hardware will treat the frame as beacon frame and send out periodically when net_type is configured as 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 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