Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2559316rwl; Mon, 27 Mar 2023 01:47:29 -0700 (PDT) X-Google-Smtp-Source: AKy350aVLQr96xwrVxdD7NlZT445fGgMmGX+1zHJ8bY2yQgTPlILy9YzWNg5kfjXdY1qnOiNOqnR X-Received: by 2002:aa7:c516:0:b0:502:2395:c3c5 with SMTP id o22-20020aa7c516000000b005022395c3c5mr9643288edq.37.1679906849246; Mon, 27 Mar 2023 01:47:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679906849; cv=none; d=google.com; s=arc-20160816; b=sTFi5AJVBRIbEmhu38za76Wjo+Omwwi7+YlCSWuxBeyBL4b1yoBoS4Y2h28pl/omvL CYF21wQGTTkg1zMOilfALMzS/zHXDzWect+E5maLcGKgSoeegAlYh6+MYyj5w9CXmwod bhmhHBECy8y0sw5X1q1J3yAXYehqSAJSDrupyEhn+Kd3vFvWYOPg1IG6HVe5jy91S1E7 AoOW+m5BK3Gy1JcHC0xYl4RRfcNgHwBQx13l1d1XQe/nwBVHCjtEC+QAA4eBGrqSwaQX Xvp4LJXFbIcGrcgGVLgVy3K9ZPBhLPJySL/ocHQFFYmvmvKVbux60V8KwkUGI2awxfun drNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=IOLhZ1/fNj6oAKvWHdnhAvrvT5ndheB4NRHQpyduRwg=; b=m4Jg3ZwgcrKActBkPeTp0AAXliFtbGHoa3FbXUvQLtiM6TQkgDrJqTFkzuxU69grtG xCACnGoXBJ2drNmOSKBaWixSFxtQBnb9tJiJ0JaHO3Nb5vgDb1I3kdghbMsoq4RaxUhk U55iMOOllWOyfwewDEX09iVmD5txdLRorssVegT0XqhbjURQLR50QOXfqAf/mNHpk8+j Dr3jnjVuEujrOlVAEq5ruYFf7bp6zxsTR9ZRyNF24p1wqpBdHxoBSXbafCKhtrr8Zjwh LBCDcXhywGBC7Y5dqNwu3mlD3uG8paP0aSz1ei7FFIn8+zwy1cZeY4/Nbly02ollIWVx XukA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vEQ4kiAj; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f17-20020a50ee91000000b004c0b7e61b21si6106554edr.365.2023.03.27.01.47.10; Mon, 27 Mar 2023 01:47: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=@kernel.org header.s=k20201202 header.b=vEQ4kiAj; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233360AbjC0Iqq (ORCPT + 60 others); Mon, 27 Mar 2023 04:46:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232868AbjC0Iqb (ORCPT ); Mon, 27 Mar 2023 04:46:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2F8C6EB6 for ; Mon, 27 Mar 2023 01:43:00 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 52EAD61034 for ; Mon, 27 Mar 2023 08:41:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 53B38C4339B; Mon, 27 Mar 2023 08:41:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679906498; bh=ksMyoZX9ZAfocIBGDql+YmadNq4hqmo5Mrq/Xa+w6uc=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=vEQ4kiAjAGM9AIg5Z5VE9BIp3m43tcuBggGtZVADmKUhzK3gwaRJejqtBomXJXeI4 NmFa6KEmnzCt2aXM+uyKUA7KzzTf4MmjYr0uo5VwNG3Q1PmC45vLReuom5t/RcHffn xEbpOWhBcjIPuS2eHCrVwghpqCwFylblanAM9elaOkUt5VUh3f2ceFEEcLZW4qxeeX wSG3vMP0CoUfaH8nQEKobd+DcsVO5omyDKyiPD5jcaV7Di5mQgsJVOy9TY7ybI+rZi pie8JN6/d9J+2mqNk/7qMiICrXmMgLHYCKxtQUNHyThX/wXe3T50Yct8Vv2As5NdCb zfszRTBW2di+w== From: Kalle Valo 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 References: <20230322171905.492855-1-martin.kaistra@linutronix.de> <20230322171905.492855-8-martin.kaistra@linutronix.de> Date: Mon, 27 Mar 2023 11:41:32 +0300 In-Reply-To: (Ping-Ke Shih's message of "Mon, 27 Mar 2023 01:48:06 +0000") Message-ID: <87lejitwlf.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 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. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches