Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1847145rdh; Tue, 26 Sep 2023 05:33:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG1my4AghtdkZcw5ptTCO8SdyJu5/KYUTuAieMsY2zxfFrQ6Q6JEquYMg+r1w0DhjSYC8G+ X-Received: by 2002:a05:6a00:a04:b0:690:d718:8c6d with SMTP id p4-20020a056a000a0400b00690d7188c6dmr8555735pfh.15.1695731589086; Tue, 26 Sep 2023 05:33:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695731589; cv=none; d=google.com; s=arc-20160816; b=CViAGZaqrw5xICSvGAjhrteSQTJ5gifc8wg0AgCpNfldcX3/9bAK+pAr6Tcu/+oHgK D8xZJfKfnRT6B5MjzVQoTtCN3SeI7SA1g7p0KnKuQwNMvKRjDWuF4MiuCL7jw1C5yq9j bH9AOxorFJmoh0aHor7TRKsfvMR6diIfUL+s0nUOTA8kjC90cLPGLUMx0rWCFVHLBjAp MPLai/XuXP9OttG3Dy+iT9TkEXusILa8W4cJpfotjefTYtUOfeyEkZO5WT9ZoWwEjGtq 5/1pF332WijLeY/BMyp77dL6YnZ8rBQYkK3Apr7hqQ/dGQ02yW/j1FxEHsqUVuhuRRTD eN8A== 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=J07PKgzvHv9pru8vLLpOFovCpNHRFFMR8SOnLLFgFZk=; fh=Fd1rX1JQq/WeA4BN1MPyGpzynjJFUxqfBCuIwAdMLqU=; b=Bu/OcwDMQ33Y27xcw26+fUKpD3IFHsqtnXRmw3KKp7/msA3WAmq9n9pvjD7t7OJz5g JAGVbIlapsw9uTfJcgvY3Ck1kaxsSpCJGuu1aCiRbwMEnADbK7mLT4loboEJG20oAZYr jDeVpsNxWfSjyi6z60Rf+WYh4OjXr+Nwi/D237v2wCIQ4tCC06afkfY/7gnWU+KQoSaN ylVkpylw0W9AnuWXxhFVF75swIyxQpJW7GG1wcDCOTptqVewsga+h/XJAu9WVcPmMKKV rooVtFGa4Zagp5rF5J7ouwUKviiWPO7O1w8aYK6qJFf10VeFjU84feHKKJWyvTyGKMRn LqJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=n2V2LflF; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id q22-20020a056a00151600b00690f49d9e44si12882840pfu.400.2023.09.26.05.33.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 05:33:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=n2V2LflF; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 1CA4E809C650; Tue, 26 Sep 2023 02:42:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234282AbjIZJm7 (ORCPT + 56 others); Tue, 26 Sep 2023 05:42:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234240AbjIZJm6 (ORCPT ); Tue, 26 Sep 2023 05:42:58 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:242:246e::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24F98B3 for ; Tue, 26 Sep 2023 02:42:52 -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=J07PKgzvHv9pru8vLLpOFovCpNHRFFMR8SOnLLFgFZk=; t=1695721372; x=1696930972; b=n2V2LflF5itWd0702t/uwW75vlJq2ZrUTpWPQBliRz5bksu ua1mFtLuv7mA6Bxg4+6t3QqHDmexNowDg81KsW22Dr/dZl1waEKGgZvi+RAkpJSGsOei5VMC4aQQM rUytRoqmEAjjPmHrsFeMB/dv3ataYiCGGjAY2oxDqunykPEHZ/fwqWJgiGnoKpPLuWC8pkb52pug2 3NrkQZ/jdqPXucfL1FxYwIP50LdwLR6nSuF7QpCYUxZ8heZ4FT+HNMO7TaHHHp8YT9NtCEOWwMhgj u60TIZEFN0xovg+5LuP+eLBaoKNje3yythIWyMzTAbhXdTEbwehE73eUJfXTynrA==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1ql4ac-005RdD-1M; Tue, 26 Sep 2023 11:42:46 +0200 Message-ID: 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:42:45 +0200 In-Reply-To: <7e350410-0e45-910d-68db-ea1d85df958a@quicinc.com> References: <20230906103458.24092-1-quic_wgong@quicinc.com> <20230906103458.24092-4-quic_wgong@quicinc.com> <7e350410-0e45-910d-68db-ea1d85df958a@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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 26 Sep 2023 02:42:55 -0700 (PDT) On Fri, 2023-09-15 at 15:53 +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). > >=20 > > Thus, I'm not even sure we should be calling rate_control_rate_init(). > > Clearly we do today, but it's also obviously wrong for everything excep= t > > the call to ieee80211_sta_set_rx_nss(). > >=20 > > So while I agree that there's a problem with the RX NSS, I disagree tha= t > > this patch is the right way to fix it. Yes, it also fairly obviously > > fixes the problem, but it just makes an existing design problem worse. > >=20 > > Please change change the overall design here so that > > ieee80211_sta_set_rx_nss() isn't related to rate control at all. > >=20 > > johannes > So should I delete ieee80211_sta_set_rx_nss() in rate_control_rate_init()= , > and add it into ieee80211_assoc_config_link() as you said before here? > https://lore.kernel.org/linux-wireless/ca0f6ea2d78538ffb6640f2e56d65c89c8= 6f5221.camel@sipsolutions.net/ I think that would make sense. After all, rate_control_rate_init() is related to the software rate control which isn't really supported with MLD, and the NSS init is unrelated, it's just updating a piece of per (link) station data. > I checked the git log, ieee80211_sta_set_rx_nss() is added into > rate_control_rate_init() here for VHT, so is it correct to delete > ieee80211_sta_set_rx_nss() in rate_control_rate_init()? > https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/commit/?id= =3D8921d04e8df7475d733d853564bdb001e83bf33f > >=20 Well we'll have to call it appropriately when rate_control_rate_init() is called today, and then the new places in your patch, I guess. But I per the above that makes more sense semantically, since we don't support software rate control on link stations. johannes