Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2040304rdh; Tue, 26 Sep 2023 10:26:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHBhXON2kVFJIfCS6/wtlovv9dnIGomyHMy5lHmzfcoaj8KZdaIahWBTICf4L/8mM5+/6hU X-Received: by 2002:a05:6a20:918a:b0:15d:9ee7:180a with SMTP id v10-20020a056a20918a00b0015d9ee7180amr9310639pzd.4.1695749189674; Tue, 26 Sep 2023 10:26:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695749189; cv=none; d=google.com; s=arc-20160816; b=lE3FGEeN0WVd32bhRnSSMZac8oKloFzXofrzb0BhGiWQaZ4KEb/tNjcbP/CrAdeDXQ 32IA/ipRuS2cP8DOl2Ld94FzjhN6dmeUtKkZNRXEfuJtdnwSGeYnD+W0mmZs1lXV2Ez8 Oyq2hpW7cMjNGYaopiafbCFldvYszUmX1e/aM9v77CyiplCF18ZwXRuiqKoIMYbcZ+0+ dotOJpJuTHrUE++tcPigiNDuTmuXjPmZabUI7jufIl5UolSK6os934YDNuKKkgRNwaTB sqXI36wx169r/dHZXCy3KQPlSYKJbNDl/c1XVqPzAw+hWt+anZJJRlArUzS1x6HSyywh zBbQ== 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:to:from :subject:message-id:dkim-signature; bh=bLmtIzwtk8udWwWT2yPFc4aTEqJvV1RIdddP9rsnvIc=; fh=gyVH2RGItclL45srER/2uCodXZl8Tw5tpjirkQXJ4mk=; b=K0kekg8nRVrg7bzEWFGvXh0fKgUvlDNFgV2VHJl4m1TdiyP/qSJEuTD8yIcMZqihky RojGiL7d717j0Q/dhPlpL1qohTY3uT/uPOBezvY9JPDiOpITn+wFEy0xyCq/s8rNdpvj CrrvBatwcfPRwfUfQKKf6l5d6kj8E+1rew6NHWvXaRTtT7Q/zWQACacL+BXpTXH0wVqK XfbkHky2QTlMky7D3vw2u7hVxITPbvACuajR8dA9m/zWXol0LC3reW+q9zHjphO1+QDg vnF5fFd9fMoYQmqk9lko0L3E8b9UiLnwOSrEnRPvSeNNnnpU1nSzHEg1T8hTVxxpYPl3 yrAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=CqVugkKs; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id fo10-20020a056a00600a00b00690f74dd2cesi12885506pfb.354.2023.09.26.10.26.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 10:26:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=CqVugkKs; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 928F78182386; Mon, 25 Sep 2023 06:10:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231668AbjIYNK5 (ORCPT + 56 others); Mon, 25 Sep 2023 09:10:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231535AbjIYNK4 (ORCPT ); Mon, 25 Sep 2023 09:10:56 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:242:246e::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4298783 for ; Mon, 25 Sep 2023 06:10:50 -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:To:From:Subject:Message-ID:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=bLmtIzwtk8udWwWT2yPFc4aTEqJvV1RIdddP9rsnvIc=; t=1695647450; x=1696857050; b=CqVugkKsYp6GrK9Zq0jmv0Cw1ymfAnpWwt7yBSPiUAAfG/G 1mphUoJ6yObpAbuwZ5MdrM8PzscHrzoaLVXhF6av8Ij0NdNWP/9w1zEls6EVLE8TMvMNbRWqoiI19 1mQPIeH5BnVmYb1XOI1zLVBK4XGSu4L2inWhnsh1lE8+qOJMrGhRGv+f373KcN6MPAA2jpKtYCCAk pQ2zbYapQtv83t1V3OgMm4TSFMWLVzj06PotxIbljMyd3IHw9t2O+leDBSsz/2uILFVKBjQabmPD1 Pr6gGqBb47sECJYki/6nucrFa8XGwzgSft3J4/oCbdmyOMZBjcjKXgzA4emf6oFA==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1qklMN-003cdc-0G; Mon, 25 Sep 2023 15:10:47 +0200 Message-ID: Subject: Re: [PATCH v2 1/2] wifi: cfg80211/mac80211: add support for AP channel switch with MLO From: Johannes Berg To: Aditya Kumar Singh , linux-wireless@vger.kernel.org Date: Mon, 25 Sep 2023 15:10:46 +0200 In-Reply-To: <20230925115822.12131-2-quic_adisi@quicinc.com> References: <20230925115822.12131-1-quic_adisi@quicinc.com> <20230925115822.12131-2-quic_adisi@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 pete.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 (pete.vger.email [0.0.0.0]); Mon, 25 Sep 2023 06:10:57 -0700 (PDT) On Mon, 2023-09-25 at 17:28 +0530, Aditya Kumar Singh wrote: > Currently, during channel switch, deflink (or link_id 0) is always > considered. However, with Multi-Link Operation (MLO), there is a > need to handle link specific data structures based on the actual > operational link_id during channel switch operation. >=20 > Hence, add support for the same. Non-MLO based operations will use > link_id as 0 or deflink member as applicable. Much of this commit log really applies to mac80211 - perhaps make a simple cfg80211 patch first only? > + link_data =3D sdata_dereference(sdata->link[link_id], sdata); We should probably use wiphy_dereference() now? Perhaps we should just get rid of sdata_dereference() entirely, after all, it's the same now, just the arguments are switched for no good reason. > - conf =3D rcu_dereference_protected(sdata->vif.bss_conf.chanctx_conf, > + conf =3D rcu_dereference_protected(link_conf->chanctx_conf, > lockdep_is_held(&local->hw.wiphy->mtx)); Hm, I guess that was an artifact of the (mechanical) conversions - but really that should probably be wiphy_dereference() as well now? johannes