Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2152611rdh; Tue, 26 Sep 2023 14:20:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE3h52NIwlw2NyT069C9iNtU5FRDwHXSRRSYrKQECFxOu02eJqqdhV9viBVK0+/gkUm5vaf X-Received: by 2002:a17:903:2684:b0:1c4:56a7:b632 with SMTP id jf4-20020a170903268400b001c456a7b632mr10279206plb.52.1695763234875; Tue, 26 Sep 2023 14:20:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695763234; cv=none; d=google.com; s=arc-20160816; b=G2TjthV/uegpBBpHMLxhGHMAq3aIAiy5XeZSYq46pDOO57Kc+eSn1I5VsAD6g7WQsx oZTZWTQEpNqRImCjF7f8aLpYsoZSOohgbksdpoRaiFMySFF69VlZPj8JGShnLjjauHCl Llbh3Q7caQsJ4wQKUI0mz+Y5dyJhxgsClxdVe8GNhNdKwzivB9wrq95O++7fVxFSlMtc RGndghLJL2q687ek3s5VGIOZwKXqEBP/wPbCknCiolc1U+JToWtmTdEqRjQmw11AZhVT 05bfRf7sZwuf86OSGkT1tvIWk3C7IgzHQJ/BHXfUFiVCEM4d6q1paibS7olkuj/9s/cl ClGQ== 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 :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=HmkCa+CDajndIlz08jjKz46l6h4i8QXpU+sUtr7YgfM=; fh=Fd1rX1JQq/WeA4BN1MPyGpzynjJFUxqfBCuIwAdMLqU=; b=0mbdKxw48Qjogbnx1siIgwYN3Iyf+JxKaDpwYPDY7MYaBlT3YlPrUjJJTRJjAriRFL xN7xg/GK5NwIjjWX4kVFQPrriGPYhJqS7gFqgSUZLi8kLm4V3LSpNXK11L/S69rxwpG3 wdOjji2OUS6wdZCsrN+ewnQMOf8lrgmG9CL77XezVRO2GLfue7Mu/bVik4Vitv3oCU7G 32Jb1p7gr+uEaH+U0xvdAC1K8SWcTdmQQBL8HldzYGZ4FyI1UOVFXarl/YPZx39GLpKy SA1sbG70SiuCQKo7DKP6PE2Dby2OIdCl3MZG4t3vTbZ4dXN5wKzemu2J0UoZDUlAR/vZ 6L4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b="qHSoX/eX"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id l19-20020a170902f69300b001c5de4a5b4esi14092115plg.597.2023.09.26.14.20.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 14:20:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b="qHSoX/eX"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 752308289534; Tue, 26 Sep 2023 02:44:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234206AbjIZJoR (ORCPT + 56 others); Tue, 26 Sep 2023 05:44:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234175AbjIZJoP (ORCPT ); Tue, 26 Sep 2023 05:44:15 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:242:246e::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F13F811F for ; Tue, 26 Sep 2023 02:44:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=HmkCa+CDajndIlz08jjKz46l6h4i8QXpU+sUtr7YgfM=; t=1695721449; x=1696931049; b=qHSoX/eXRJSk8C4PetB6fCPtSMXwCDaMNqcLjAeEqJUifYN 6AZxGh4hCLk8kZQSRD1G03XAutBduSiBKKLY777ogY3xy5N43zwx2qmQUkoDOl+01YXHdW1kL17TX hlAQzuZU8KWt/5GXI7L9sAXnWHcSKY+9ebeyLl4Asfhe7JyEo4tR+rYAkKSH/g98EwQ0Gdh5UEC/6 Udhj0lXB/jCLaUH8U0iXMQcfivGxIoHaU8fLN3u4aNSU9olqX4s0s7yB9xBO2pqG7UmjbO7oN/5zV SE67xUnP8lq+oRniyn2Yp5SJAUiYrBfENW2ETFIEYHuwpHCITicKfGVZ1ink8Mmw==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1ql4br-005RiW-1I; Tue, 26 Sep 2023 11:44:03 +0200 Message-ID: <18228b58173d9f33b1c3ddda9df5b3c4b49fb075.camel@sipsolutions.net> Subject: Re: [PATCH 3/3] wifi: mac80211: update link RX NSS by ieee80211_sta_set_rx_nss() in ieee80211_assoc_config_link() From: Johannes Berg To: Wen Gong , ath12k@lists.infradead.org Cc: linux-wireless@vger.kernel.org Date: Tue, 26 Sep 2023 11:44:02 +0200 In-Reply-To: References: <20230906103458.24092-1-quic_wgong@quicinc.com> <20230906103458.24092-4-quic_wgong@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-malware-bazaar: not-scanned X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 26 Sep 2023 02:44:13 -0700 (PDT) On Fri, 2023-09-15 at 16:43 +0800, Wen Gong wrote: > On 9/13/2023 5:04 PM, Johannes Berg wrote: > > On Wed, 2023-09-06 at 06:34 -0400, Wen Gong wrote: > > > Currently for MLO connection, only deflink's rx_nss is set to correct > > > value. The others links' rx_nss of struct ieee80211_link_sta is > > > value 0 in ieee80211_set_associated(), because they are not pass into > > > ieee80211_sta_set_rx_nss() in mac80211 except the deflink in > > > rate_control_rate_init(). This leads driver get NSS =3D 0 for other l= inks. > > > Add the ieee80211_sta_set_rx_nss() in ieee80211_assoc_config_link(), > > > then the other links' rx_nss will be set to the correct value. > > This is pretty much true, but I also think it's problematic the way you > > phrase it. Software rate control is pretty much, at least currently, > > _not_ supported for MLO (and I don't really see how to support it, if > > firmware picks the link to transmit on, as it probably should). > I searched all the folder wireless, I only found 5 places have the=20 > handler of rate_init below, > and the functions are all empty. Is it means no driver support rate_init= =20 > currently? > drivers/net/wireless/realtek/rtlwifi/rc.c:304:=C2=A0=C2=A0=C2=A0=C2=A0 .r= ate_init =3D=20 > rtl_rate_init, > drivers/net/wireless/intel/iwlwifi/mvm/rs.c:4098:=C2=A0 .rate_init =3D= =20 > rs_rate_init_ops, > drivers/net/wireless/intel/iwlwifi/dvm/rs.c:3276:=C2=A0 .rate_init =3D= =20 > rs_rate_init_stub, > drivers/net/wireless/intel/iwlegacy/4965-rs.c:2779: .rate_init =3D=20 > il4965_rs_rate_init_stub, > drivers/net/wireless/intel/iwlegacy/3945-rs.c:867: .rate_init =3D=20 > il3945_rs_rate_init_stub, > [...] >=20 Well, many other drivers use minstrel, and the _stub ones in intel are atually not doing anything. So most drivers would use=20 net/mac80211/rc80211_minstrel_ht.c: .rate_init =3D minstrel_ht_rate_init, here. johannes