Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3185431rdb; Wed, 13 Sep 2023 05:02:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEybOdkgX+Fux2d5s1wG6kRg8u6LKckBUB5piItAFWWqrYYHr7OEmb5IbiYcYiSc6JOIBf8 X-Received: by 2002:a05:6a00:c90:b0:68f:c078:b0c9 with SMTP id a16-20020a056a000c9000b0068fc078b0c9mr3590159pfv.11.1694606526370; Wed, 13 Sep 2023 05:02:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694606526; cv=none; d=google.com; s=arc-20160816; b=uMK20FL4TY3LLUIYCPuhbQdno9r5BFuSokPskHzfrpZ7AQA6eH7Lc4gicamWSwIlCW GOS8g9lvhk3w+dXgyl8HAZzBE5YBr52VGfa7XJEBoD1LBytblcF+ks7kjZdVLuxcV0wc AzRUdmCGqhvYrga6J1U+HRUoZx1kRybIuQ659dd6oAqXEwfSqQGY/c2tRSMVFQ6trgTN JRjqYJZgW8fJ/Oubn0M3pDevnAXrn8szmWsQB/hNSDHMygcq3bKRp0UBxz162k0nT/0s L8o6MKNQYbcfouiE8RGqO7IqvibYPJ25/6bg26Q8Ym4+TQ92O6Jok/0fHOLXkvcCVNCW hP/Q== 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=+2hcaoJP5aajGwDX7qpJONypAVfCQ/NTzjrYDO0mpow=; fh=Fd1rX1JQq/WeA4BN1MPyGpzynjJFUxqfBCuIwAdMLqU=; b=vCJ+MJOK2huIItPYrQgAsc+0vaBDoxSgJ5NXJ4ZHlnoC6UgJNQk2AANpg01OpW52az UZEQhHI/NxX5ToR7pO4L3f+n+Pl5VAxmgqEHs6wwNUXI/vwFyvxDpjulTCdGfgJs8ntp IBQS5DRITmEhPDAdeeILdbvGD8FyCdjMZow2mP7Y/eVv9FGhLAaXD8EnrGpGYloZ81dh DwKU1jj9Ybuaq6rtB4uMhhJxMb0/vic5njBCx98O1VN6O0ADjwNyNDuYSfQEs3ssSp5u EJLd+fN8VrSFqHtfArBKchIaQ7kKTRUQqO6d8DKAzQI7iqqyEe6FBPYk15kPJZtJ7nTY MuXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b="n/GsNjmR"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.33 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. [23.128.96.33]) by mx.google.com with ESMTPS id t184-20020a6381c1000000b0057760853711si6432633pgd.273.2023.09.13.05.01.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 05:02:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b="n/GsNjmR"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.33 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 4052981C5251; Wed, 13 Sep 2023 02:04:42 -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 S239242AbjIMJEk (ORCPT + 56 others); Wed, 13 Sep 2023 05:04:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239244AbjIMJEi (ORCPT ); Wed, 13 Sep 2023 05:04:38 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:242:246e::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E960719A6 for ; Wed, 13 Sep 2023 02:04:33 -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=+2hcaoJP5aajGwDX7qpJONypAVfCQ/NTzjrYDO0mpow=; t=1694595874; x=1695805474; b=n/GsNjmR8eJz5APKtt2Sv7PQoXXqdfW58MjgIb4pS2hsBXW UAXSh4x6xaoqVzSS/OC/nS65KrqwZSNDi1b1MLJ/+fM8V6NHgaWVY+NaSiMTMKaLrIEUqtUxomfzM trdFQqyOzJtl2nqvZxVOH+/dtpJ/fy2FOO2X9PEQX+ESyZMa7rln+itzbO4v/Di1nQcdm6PKb50bp SGVhFXkZ8LgwmDGCd1bCK+9CZSNKj/f56aeD/xy+m8tdwGarltJgfS/vbHNcX7LBed9iuxmu69fSw gcyL+Xr84RwgnIOfpMeK7Dkrn1dQboL1oTZZw+5k+U94DqtTHtkf9EPrTVmglnjQ==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1qgLnP-00EiA6-2u; Wed, 13 Sep 2023 11:04:28 +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: Wed, 13 Sep 2023 11:04:26 +0200 In-Reply-To: <20230906103458.24092-4-quic_wgong@quicinc.com> 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 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]); Wed, 13 Sep 2023 02:04:42 -0700 (PDT) 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 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 links= . > 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). 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 except the call to ieee80211_sta_set_rx_nss(). So while I agree that there's a problem with the RX NSS, I disagree that 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. Please change change the overall design here so that ieee80211_sta_set_rx_nss() isn't related to rate control at all. johannes