Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4096106rwi; Mon, 17 Oct 2022 01:05:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7GVmfcHUV2RKVcZet48KATmeFXPAeckFms/zTLvJd36wZMq3TFWcgIaYeC6MlBDlfKwVl6 X-Received: by 2002:a17:907:94c3:b0:78e:2866:f89f with SMTP id dn3-20020a17090794c300b0078e2866f89fmr7547746ejc.617.1665993953188; Mon, 17 Oct 2022 01:05:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665993953; cv=none; d=google.com; s=arc-20160816; b=SS1lHARmuaLAJ6VW4L5dqor6NoS5fvGchJSFpnyo6HzaHhC7hcRn8Gu+t+fYUxswOe 0zQWysXvdSUhWRMqY+99NrlRyBTbOzHerMxwcFpqkk+wU+Ip1qnQfWltpKOqiqhQ/+CW 8JGYVsP9xufMJi0Hyq7eyn6scX/o45utn1w4x0y+UlEWbq+cKRH9EBiAN87rencBhV89 33lTgv5ZLkP/C+Vl/mys8d6ZVYK5+7bfkZMGT0H7eu25Z3njq8xuUsz+kkPX1bPv3sh+ O40+X9leU7GUSD7zLuTNAB4izUt8OUKzUybYOPgd1YbmOUrYUF8DdUuExZl/0SLKNQwY bjrA== 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=4/93+lNqyYfJFAeyAUGmmcGLmRKHmLzUqwLyD1FbYAA=; b=0CDHF1iohtHK3+DlJhCVoXJ016BuxriSdZhUqYmQaWA7r3sWkE6QAZZAa9ZvW/H3Ml 1eUvQz/p2Te48+SBfmFiVTjJQ/a5Y59a3vBhwcTqIYR+NXzRp/L0x+VeIgpyj3IoraHy +CnVdAsBeGiFwhFpRQ9HanXrEJle9aU3l0Uq5ueujOosyqmFkp49g5RL3qeaLtnbXPJo cm1aZSbQGg9E8ltsWl2qtghP5WuL997N2FV7PD2r316H1VTPMKqQLJU+A7U0y7tpKrpS GRtMDCzNiH40VeLUK0NBV2U+OrOLCNU/r+7ZPhdB124dNnZWSAygB8DHbVkVQAT+xK5E roRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=nVs3GwIC; 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=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hg5-20020a1709072cc500b00777581091d9si8693031ejc.634.2022.10.17.01.05.37; Mon, 17 Oct 2022 01:05:53 -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=@sipsolutions.net header.s=mail header.b=nVs3GwIC; 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=REJECT dis=NONE) header.from=sipsolutions.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229977AbiJQICu (ORCPT + 63 others); Mon, 17 Oct 2022 04:02:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229894AbiJQICt (ORCPT ); Mon, 17 Oct 2022 04:02:49 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BBDB5B795 for ; Mon, 17 Oct 2022 01:02:48 -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=4/93+lNqyYfJFAeyAUGmmcGLmRKHmLzUqwLyD1FbYAA=; t=1665993768; x=1667203368; b=nVs3GwICYSDaGPDcsC83DudsnTFTYcOiFmc4SP8G9jboLAN j8zOZifVqHJ3rqlagBDpx7+TTwMijQeiG+dE9kzYb4DOrhtnsNzzicfkPA0mV9u6+BqMOSz/Koumc Ap03cBaMdd5MC0leuVS4SCkMq/gGyn6cu+SV3eV6rmk+w7CN048MKLk5VoL9/gv7Ot//He74zrfMW P/jccHzV4O5VHG/3GNbGrcwaeEjIlkG6MfI22kQae3QLEhA2V3n68+YotO9RelZkAIiv7k+noncuA bwrgVLTG3lZ3RgIrS85IQS94Iw3kef9F/KDp0Olic0pgX7KiaodvveFq+36JJP6A==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1okL5C-009BmL-09; Mon, 17 Oct 2022 10:02:46 +0200 Message-ID: Subject: Re: wifi: mac80211: mlo rx nss value 0 of wifi From: Johannes Berg To: Wen Gong , linux-wireless Cc: ath11k@lists.infradead.org Date: Mon, 17 Oct 2022 10:02:45 +0200 In-Reply-To: References: <913ee04f-a16f-f765-96c2-0586282831b4@quicinc.com> <1a440c62-ffd0-9602-9454-f08765beadf0@quicinc.com> <91b975e2116521cfa9f9371a976039a53ed9a85c.camel@sipsolutions.net> <2a2c466fbdcc2c3cc7af81bcd4d370d0119ea865.camel@sipsolutions.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4 (3.44.4-2.fc36) 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 On Mon, 2022-10-17 at 16:00 +0800, Wen Gong wrote: > On 10/17/2022 3:49 PM, Johannes Berg wrote: > > On Mon, 2022-10-17 at 09:48 +0200, Johannes Berg wrote: > > > Hi, > > >=20 > > > > > Currently for MLO test, the others links's rx_nss of struct > > > > > ieee80211_link_sta is still value 0 in ieee80211_set_associated()= , > > > > > becaue they are not pass into ieee80211_sta_set_rx_nss() in > > > > > mac80211 except the deflink which means the primary link in > > > > > rate_control_rate_init(). This lead driver get nss =3D 0 for > > > > > other links. Will you fix it or is it design by default? > > > > >=20 > > > > > Only primary link has valid rx_nss value which is not 0 by below = call > > > > > stack. > > > > > ieee80211_assoc_success() > > > > > =C2=A0=C2=A0=C2=A0 ->rate_control_rate_init(sta); > > > > > =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 ->ieee80211_sta_set_rx_nss= (&sta->deflink); > > > Right, none of the rate scaling related stuff was updated yet. > > >=20 > > Though for this case maybe we can just move ieee80211_sta_set_rx_nss() > > to some better place outside of rate_control_rate_init() and have it > > done with the right link, and also on changes? > >=20 > > johannes >=20 > I did below change in my internal test, and not found the NSS=3D0 issue= =20 > again for 2 link MLO. >=20 > wifi: mac80211: update all links rx nss by ieee80211_sta_set_rx_nss() in= =20 > ieee80211_assoc_success() >=20 I guess valid links wasn't set at that point yet? Anyway should also move out of rate_control_rate_init() and probably into something like ieee80211_assoc_config_link()? That already does some rx_nss calculations which is probably not great ... johannes