Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2601420rwl; Mon, 27 Mar 2023 02:32:22 -0700 (PDT) X-Google-Smtp-Source: AKy350biCWcSZytlF+Qb7x9zKVbg/Rl+qtclagZO5+Ox7NDZCrGldXtJQrfoyx5TR56lyq4Dm2Qn X-Received: by 2002:aa7:9508:0:b0:629:fae0:d96a with SMTP id b8-20020aa79508000000b00629fae0d96amr11287579pfp.16.1679909541920; Mon, 27 Mar 2023 02:32:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679909541; cv=none; d=google.com; s=arc-20160816; b=btjGmM/3aNEQQ7bBy2kubHfXt7URYpoYifLwvaMEBW7gYsLU+r5rhG2UgtFOA0nxvG njNqPpX5iIyg0cN9pRGYYBiL/bvosudiNG+eP63v2lAje6+jovl4eoXqBAWBZaE8Oqeh S2v9z4m4Rw+aOHNnaIVHnpfFkexwJiKDRnQOYErpjeDgNkUq1phnaf/i54X9OFsQQK+5 Y/JIT5dLGS5yo4c3ECKXaAdfOBs+I3O2YR9YUnja44gRSlk8j4lq8xJNF0on0kQp9TMi NgnYtlzO149tNODhsJHnX1MkToLolrjReai21GamXWo9obKn06ZThlaCSujJIAuLcrq6 upzw== 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=+Z7q+xcNWHX9pGtwfGa7QHid+IOPNAreQUDrh/PJqhM=; b=xmnTrUwNyBZXNRP+Ehkn7Vk/W6MowRluENaFbsirodP/Fu/h2pTYTxBUj8d9SYiRkm XuqJZbYE7UH/WyBGf/e2R8MXsJEuZY8OyJwh+cJH9xK0t7UPjSCQyHULd/KhB2lPd5U3 9GpqgKPXrkvUAju41xHBaUTMNvt7GfZeiDDpccJ3A+B2v8lN6TDKUHgXjwYydGTuiwTs lPYlMOts8GcyppuD7k9ABnzcYwDiEiV92MFGqCQk1OGeKDR1sQQfxzDtWrDfbDnMntMT vSH+nAVEATCOl+RtKssK1pAljOr0Qrg6iwPF4qhSq+bgPXRzKQ7JdBAyQFh48htADZFM 5rgw== 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 j11-20020a65428b000000b00508c9686f50si26033894pgp.225.2023.03.27.02.32.12; Mon, 27 Mar 2023 02:32:21 -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 S232707AbjC0JUA convert rfc822-to-8bit (ORCPT + 60 others); Mon, 27 Mar 2023 05:20:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232670AbjC0JT7 (ORCPT ); Mon, 27 Mar 2023 05:19:59 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE4DD3AA9 for ; Mon, 27 Mar 2023 02:19:57 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 32R9JQWu8013636, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 32R9JQWu8013636 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK); Mon, 27 Mar 2023 17:19:26 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.32; Mon, 27 Mar 2023 17:19:42 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS04.realtek.com.tw (172.21.6.97) 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 17:19:42 +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 17:19:42 +0800 From: Ping-Ke Shih To: Kalle Valo CC: Martin Kaistra , "linux-wireless@vger.kernel.org" , "Jes Sorensen" , Bitterblue Smith , Sebastian Andrzej Siewior Subject: RE: [RFC PATCH 07/14] wifi: rtl8xxxu: Add parameter macid to update_rate_mask Thread-Topic: [RFC PATCH 07/14] wifi: rtl8xxxu: Add parameter macid to update_rate_mask Thread-Index: AQHZXOKii0d8HuoRPkCJFbimooDKPK8N4b3ggAB0avWAAAkb4A== Date: Mon, 27 Mar 2023 09:19:41 +0000 Message-ID: References: <20230322171905.492855-1-martin.kaistra@linutronix.de> <20230322171905.492855-8-martin.kaistra@linutronix.de> <87lejitwlf.fsf@kernel.org> In-Reply-To: <87lejitwlf.fsf@kernel.org> 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: RTEXMBS04.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-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback 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: Kalle Valo > Sent: Monday, March 27, 2023 4:42 PM > To: Ping-Ke Shih > Cc: Martin Kaistra ; linux-wireless@vger.kernel.org; Jes Sorensen > ; Bitterblue Smith ; Sebastian Andrzej Siewior > > Subject: Re: [RFC PATCH 07/14] wifi: rtl8xxxu: Add parameter macid to update_rate_mask > > Ping-Ke Shih writes: > > >> -----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 07/14] wifi: rtl8xxxu: Add parameter macid to update_rate_mask > >> > >> The HW maintains a rate_mask for each connection, referenced by the > >> macid. Add a parameter to update_rate_mask and add the macid to the > >> h2c call in the gen2 implementation. > >> > >> Also extend refresh_rate_mask to generate the macid in AP mode from > >> sta->aid. > > > > Firmware can support 32 mac_id (station instance) at most, so it will be a > > problem if hostapd assigns aid more than 32. Though I'm not clear how > > hostpad assigns the aid, it would be always safe that rtl8xxxu maintains > > mac_id by a bitmap in driver. > > Does rtlw8xxxu set struct wiphy::max_ap_assoc_sta? It would be good to > advertise the user space the maximum number of stations. > Thanks for this information, Kalle. Martin, please add this. I think we can preserve at least one mac_id for broadcast/multicast frames. In fact, I'm not absolutely sure we can support up to 32 mac_id, so set wiphy::max_ap_assoc_sta = 16 -1 or -2 would be safer. Ping-Ke