Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3577285rdb; Wed, 13 Sep 2023 17:06:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGeJ6xG0jn4TBG6Hc8vijgKsvDAjRIQb+9fAoFnvVCS+3y2BaBvP9nC/1PDW4hKWL8BnsZ6 X-Received: by 2002:a05:6808:219d:b0:3a9:8393:dfaf with SMTP id be29-20020a056808219d00b003a98393dfafmr5219975oib.12.1694649997662; Wed, 13 Sep 2023 17:06:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694649997; cv=none; d=google.com; s=arc-20160816; b=h71HcoWeIKnyI1dDuwq7d2nYOBPgZqaj87WydgP0EAGmIzBF/MO3oe4UllwdtA//tT zS9TSI9ISCxXq9KOA6+kPuU0Tnpz5C1EqfLbuuD8+cJ1KipPm2U+wKImtjrQJf3Af3qO GhwHMwGYN22IHmJGR0ARqERy9HIwnhnXaQw1FoAnvPGPMwSASIfOdNLkrmWPzm67U6gH +MVjKAi1j0fR+SM7cAmEr8BetYKQ0Nx/lcgWKUbCm8ytBZjtEn5yrB1bnkEMXR0SLc7P HBW4/jFnPp1uOqRfVBcmDUkbaFhdPLQqTS8MgVXRGMUENO6OA+3W1O0vKVfckxuKB8Vs F8og== 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=IJmGX4PzqBWbICPZgzgys4nGdzhJ0QEPwQa9yf0ZT1c=; fh=Fd1rX1JQq/WeA4BN1MPyGpzynjJFUxqfBCuIwAdMLqU=; b=hN1tDlJJnxb7AI1tMmScvnEFOIQGxpj8k9u7k8xJpkqfsiOodt/H9bQl+kCrbXpBYM AtrMb57qZskpsDxQLdLsl3kX3sz/lsddivp+e7fUGgEdsdY4ixuDF2/YJnJ3gzQB/d9a sBErSkshW9sQNEc8UUnvnOfk2qBuR91a/aDIYxqJaetbYBzA8B3x1G6sVT6uI720PG2g 5k3oblnZA7h8Yl2gYJIt3zqLBpGumKS4tgik/LosSeaf0sutW+yMhj4d/Ur3NpC0zAQa ZmWSpzHS+kpv4EFjPoi08cHKq7LkZDuaLaoktXv0hxTKYz4HSwuwxvjP3fvmthPDCYSR Nx8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=tf91t3cp; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id m128-20020a632686000000b00563de62f946si253285pgm.520.2023.09.13.17.06.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 17:06:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=tf91t3cp; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 6CEBB80FDDC0; Wed, 13 Sep 2023 01:58:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239168AbjIMI6v (ORCPT + 56 others); Wed, 13 Sep 2023 04:58:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239109AbjIMI6u (ORCPT ); Wed, 13 Sep 2023 04:58:50 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:242:246e::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DED391993 for ; Wed, 13 Sep 2023 01:58:45 -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=IJmGX4PzqBWbICPZgzgys4nGdzhJ0QEPwQa9yf0ZT1c=; t=1694595526; x=1695805126; b=tf91t3cp1wxXPIjp3PA8CZrsGMNO6TmAzJxhzvsqkP4tDpa XMmsIhmdOuYXfiL/Tzp7c5eUbTsIukzSZBuEpV3qHL30Za9M+hve59VqyMTiORRiKex3Sz3ai4HOx XjUlVM2h2HGn7/Edszljg/XesbltVPI4UVYYYk0oHMyvLBpTozVIWJuuJB46K9zb5Qv/WUD1ZQqsG UwKNK24aDJrrRtAAVhkNVS8u3zH7BTwiTcbLQj7l7+y4EopF/5zrIBsO2n106sWts9xSuE340x4st PXol+FRhreo/DOd6RofAVmCIiZHxwnZ1/F9aU5DfxyBdBce4sU+LCPdASMzT4MZA==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1qgLhn-00Ehnm-33; Wed, 13 Sep 2023 10:58:40 +0200 Message-ID: <4b597bba9dc13c3260f174826de38b4f1bc3bf6e.camel@sipsolutions.net> Subject: Re: [PATCH 2/3] wifi: mac80211: add support to allow driver to set active link while connection for station From: Johannes Berg To: Wen Gong , ath12k@lists.infradead.org Cc: linux-wireless@vger.kernel.org Date: Wed, 13 Sep 2023 10:58:38 +0200 In-Reply-To: <20230906103458.24092-3-quic_wgong@quicinc.com> References: <20230906103458.24092-1-quic_wgong@quicinc.com> <20230906103458.24092-3-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 (snail.vger.email [0.0.0.0]); Wed, 13 Sep 2023 01:58:53 -0700 (PDT) On Wed, 2023-09-06 at 06:34 -0400, Wen Gong wrote: > There are 2 fields valid_links and active_links in struct ieee80211_vif > of mac80211. For station mode, valid_links is always include the bitmap > of active_links. valid_links stores the bitmap of links which is created > in mac80211, and mac80211 only indicate the info of links which is existe= d > in active_links to driver. Finally, the active_links is the bitmap of > links which station can interactive with MLO AP it is connected to. >=20 > Currently the active links is always only contain the primary link, > primary link means the link used by the latest exchange of successful > (Re)Association Request/Response frames. Then it will always have only > one link in driver after connected. >=20 > Hence add this ops in struct ieee80211_ops to allow driver to determine > the active links bit map dynamically while connecting to MLO AP. This commit log does nothing to address the question "why do we need this", particularly since we already have ieee80211_set_active_links(/_async), so the driver can pretty much immediately enable all the links it wants. I see no value in this patch whatsoever. > @@ -166,6 +167,13 @@ static void ieee80211_set_vif_links_bitmaps(struct i= eee80211_sub_if_data *sdata, > WARN_ON(dormant_links); > break; > case NL80211_IFTYPE_STATION: > + active_links =3D drv_calculate_active_links(sdata->local, sdata, > + valid_links & ~dormant_links); > + if (active_links) { > + sdata->vif.active_links =3D active_links; > + break; > + } >=20 I also _really_ don't think this should operate at this low-level infrastructure. johannes