Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2849918rwl; Mon, 27 Mar 2023 06:13:30 -0700 (PDT) X-Google-Smtp-Source: AKy350ZEsQPCYcGDE+8Aps19orjd3bAZ1AWF7uo0XG6GeBVT9JrIqxDum5iNMzhcQ320t0gx7g3X X-Received: by 2002:a17:902:f34c:b0:19c:fbdb:43cb with SMTP id q12-20020a170902f34c00b0019cfbdb43cbmr9299673ple.51.1679922809849; Mon, 27 Mar 2023 06:13:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679922809; cv=none; d=google.com; s=arc-20160816; b=XpRfxgHANI7kwEdpPl6nyYx3NH7iCbNqV7g3RrapBTJ6/TGLakOmUrlj/t5keOqPP5 lHo0kN8pEArdYTppriOaCPjd3Jv5ANZT+lqSKHjYst3vF93PlYi6AMz9mMbyqD1xgk3D 0qRBQvOAZANjW74KIFlxAAZXDZCH7msA66D+lkEwRy9KvEuwBnX+LpV5so+p2REMZYo9 juzTUaXesW/CYFl0alzJMhiZ1HHvEDz9TLb5cyVYL8WbaEikYRCLgBe+cTpGdKiKTmQl cwCk31TMJJgoe28e2Lvqfqa7b3Xusnl8ELC/MjHvzTePeQqGYDBQmXDBaIePQMJPPN+N /1rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :content-language:references:cc:to:subject:from:user-agent :mime-version:date:message-id:dkim-signature; bh=478A+bT4URn1+P2mr5nDXfmuV9rKOJHIHLabsxsmktg=; b=GMGRDj/3VmERZN0CJB3bHQ8xS0NGz9G36N3/MTtsCNTEahK8lNQYCJhhz8yQKthh6g BKEYj4FtX3ZH1BGv9LfTtTBo4dYtkGMU7SRreX1xwJDVTmBq9sgIrZrdvit/yTJoyXN/ s03ekJ0ZnF/65zCfivV2Of0SzZto7EYrBB6UBRr1jZSRN8YnVudSvh6sttxrAlb5rZHF CVHxw8uvhl7/0LWBrVx0qj1HQfUpIQ7zB5Rywrb7bUF50KsO5XumNm72ffqRt8SVmBXM BmEVHTwN4KTkT0xIrDGpiKXRqkwF8TN30qjnivq0gTTPLUYKhGhQ6PPKo3M2JAetC+Cy bJCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=q5lgr2QC; 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=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m18-20020a170902db1200b001a1e867f287si15130968plx.460.2023.03.27.06.13.22; Mon, 27 Mar 2023 06:13:29 -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=@gmail.com header.s=20210112 header.b=q5lgr2QC; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232282AbjC0NMc (ORCPT + 60 others); Mon, 27 Mar 2023 09:12:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229950AbjC0NMb (ORCPT ); Mon, 27 Mar 2023 09:12:31 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6D11171D for ; Mon, 27 Mar 2023 06:12:29 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id m6-20020a05600c3b0600b003ee6e324b19so5272147wms.1 for ; Mon, 27 Mar 2023 06:12:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679922748; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=478A+bT4URn1+P2mr5nDXfmuV9rKOJHIHLabsxsmktg=; b=q5lgr2QCloeG5FgUW54nhvwaLnuSQfZSL+KcS28YAgjMCz0KM046tA5uWXMzVBgqIy BY2ys90MT3or8y9FQfUsFqu+6Tb1oBAqB9MTyrWCd/XNf5JAGPVGEWIMj8qJNuaw8OzK v0ILU/sB5PWZ0nc0Owogeh/XTt5+RkwuEvPgVx/0gxW2Hmdzp/tuLvPxe3SyBYaPThsH DRJYBQGdt/rY8we0pIw5Ok7HxCPdAmPj5piV0S1TtHDLbmH12tMvJETJUgcN9Fqma45b kylRnqpjyPUygWqU70EFm+h2zaBsKmzqRH7ZIuazJUvKlL1tl2iExV6OKE5NBdMeqIb5 KS1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679922748; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=478A+bT4URn1+P2mr5nDXfmuV9rKOJHIHLabsxsmktg=; b=G+Iw/tuA5xbtNBB8BpY1OxeFMsO4BjLUWp2i6ZZWaossGRu1OvjfUZsTNlIxmRBxDn 7FpC17lXz/SVg3abOfNxRJtALEsuz5GoXTsA5cPuNWglXU4DCFXyZcwkz2icxSdbXlmT YZvsG9ju1FRGyb44nxWxcvsbw77yfg96T97zPKnekkpxV6NWcJsX/QCNBjBFiwIP+e2N ZyB6TAjW0j8Gjt+oBBsQ9yFNgY29dYlcdZ1waZjtM6kbsFsJxLXhx+vTki4fXDNzdbuw mFTibt/GiFwKL/VxVjJLHX1Rp7+XZqaU1xri98997XgDaJef1oqe0MxrX+YivOx5g1Jf ryng== X-Gm-Message-State: AO0yUKV3hJUOr7Nf4+ZhwisWteflOc1l62Qt+OzeoR/Hjfl0vjR7fAxI QoH/GUkO281kP2gbBOJrL+8pa+RAPps= X-Received: by 2002:a7b:ca4a:0:b0:3ea:e582:48dd with SMTP id m10-20020a7bca4a000000b003eae58248ddmr9461426wml.34.1679922748286; Mon, 27 Mar 2023 06:12:28 -0700 (PDT) Received: from [192.168.1.50] ([81.196.40.55]) by smtp.gmail.com with ESMTPSA id k22-20020a05600c1c9600b003eda46d6792sm8780933wms.32.2023.03.27.06.12.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Mar 2023 06:12:27 -0700 (PDT) Message-ID: <27e83382-4c84-1841-c428-d1e5143ea20c@gmail.com> Date: Mon, 27 Mar 2023 16:12:26 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 From: Bitterblue Smith Subject: Re: [RFC PATCH 07/14] wifi: rtl8xxxu: Add parameter macid to update_rate_mask To: Ping-Ke Shih , Kalle Valo Cc: Martin Kaistra , "linux-wireless@vger.kernel.org" , Jes Sorensen , Sebastian Andrzej Siewior References: <20230322171905.492855-1-martin.kaistra@linutronix.de> <20230322171905.492855-8-martin.kaistra@linutronix.de> <87lejitwlf.fsf@kernel.org> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,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 On 27/03/2023 12:19, Ping-Ke Shih wrote: > > >> -----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 > > Indeed, the RTL8188FU driver has hal_spec->macid_num = 16. I think that's the maximum for this chip. RTL8710BU: 16 RTL8188EU: 64 RTL8192EU: 128 RTL8723BU: 128