Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2580930rwl; Mon, 27 Mar 2023 02:09:56 -0700 (PDT) X-Google-Smtp-Source: AKy350aZGnEEhDrKEFK1yJJBQUE39/hcJ192y9IFYepdxwqd0X8heHCAOflmbfwyo8C+Hn5MYNeT X-Received: by 2002:aa7:d0d4:0:b0:501:da04:b09b with SMTP id u20-20020aa7d0d4000000b00501da04b09bmr12060769edo.10.1679908196108; Mon, 27 Mar 2023 02:09:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679908196; cv=none; d=google.com; s=arc-20160816; b=QiI9m4i8t2/QWPMGVF0aTQzNDMW5Rpnr6QYzVVk+DvaktzvKfMC+HIVTzopVIzN/iX cwhSskFLRakIPmbHmIdJWMSICtzBqdpmsg4eQo4+x+A82tDJa0ZxrZV0XDBwLt2QdRUt 6h01DYfoU7mqKMOOeXFRfqF81fMkI0batqfafs5LDQspMLxz+uIqxrw8EZyR/DbxOH0X FiXt2D8FuMVvhnCh3/nDzcClB0YBVUex5CNzXBU8xn/8+fZ3HeRtKDBciXG2/NAE3ECA Vim7GMKRAJ15H4MtJ/IRmRLgObGUKweXUL1T+gHMfROXC2HOs/fnX0VHxmmFb3u+EaAh X7og== 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=KT+V6uIG4ofrfprd41e/+KLeNMkaEY3gPnoiagZ5l4w=; b=nTXn+7RiZEnr5QWFb4Ze0uv4E9JA/TWUgWrLc3aMqkvKoBlsNGTevXk0lnN8zpJ9NO OH4Vz2GcDdQ3AJadKQ1sNENkj32J+IGPYHewDZSU+rCdLVR91q7eABdT4vcTDIFRAZuf Zu/sKhJdNKJe01HxO2TJBN2meMwIOw9CWew3/wrM6q9wjARx8MoqF7ZJrpMYyp/oCitr 0XQxZkm0k7pKQTRL3zpwCD4x2db7lCVgswoJTLzYFclZwPNeIGmEGHZn4tbCdL8tluij NrMomExXjSlTaF8/p32bgSdceCse9+si5ROjzcxLFzlQDW46qwq80qSVBKX0nadau8Vq YZvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=CgSLou82; 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 bm8-20020a0564020b0800b005002f0fab74si29422235edb.527.2023.03.27.02.09.39; Mon, 27 Mar 2023 02:09:56 -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=CgSLou82; 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 S232975AbjC0JFl (ORCPT + 60 others); Mon, 27 Mar 2023 05:05:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232638AbjC0JFB (ORCPT ); Mon, 27 Mar 2023 05:05:01 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAE1C1720 for ; Mon, 27 Mar 2023 02:04:26 -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=KT+V6uIG4ofrfprd41e/+KLeNMkaEY3gPnoiagZ5l4w=; t=1679907866; x=1681117466; b=CgSLou82k6iXXdP4vty4y5tuL7Cfli6urZDOzNf5uSjiuO9 wLUSyNbVOApcyKIUFZkwVaYVDNHXFmDeMpC1zeWsVSj9fElm2/XEpaiuh/jYHkAZOD8VMqNuC8Ewn Rvk9Y19v8VxNlFgV2SFce4oRuNi0333+Ux2592kDtOpRAVz452yrD25Xw1oODKRRmdBJFK/AH6AXp rcrnGN/s1qHQl9cJiMDMy92SAFL9P28ppLPMAP+rLVl32aUCVHfguBSboy/0Lr0afJM5xxkWOrkZf ixcQFP4bB8aGWrpYvgWa4BB6wFn7EF3wxxFi0ghByYpwxVuZ6g+XItfk8YOglWaw==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1pgim7-00FcYR-33; Mon, 27 Mar 2023 11:04:24 +0200 Message-ID: Subject: Re: [PATCH 24/27] wifi: mac80211: implement link switching From: Johannes Berg To: Wen Gong , linux-wireless@vger.kernel.org Cc: ath11k@lists.infradead.org, ath12k@lists.infradead.org Date: Mon, 27 Mar 2023 11:04:23 +0200 In-Reply-To: <31b91fad-bd14-b6e1-8abe-fceb66085ecb@quicinc.com> References: <20220902141259.377789-1-johannes@sipsolutions.net> <20220902161143.d99dfbe65c90.I92385ba882ec984a9a2ad18293173436657e82aa@changeid> <50719d34bc48d816d00b56d3d9efdb59e3e51a16.camel@sipsolutions.net> <31b91fad-bd14-b6e1-8abe-fceb66085ecb@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 (3.46.4-1.fc37) MIME-Version: 1.0 X-malware-bazaar: not-scanned X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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, 2023-03-27 at 16:40 +0800, Wen Gong wrote: > >=20 > > > > + for_each_set_bit(link_id, &add, IEEE80211_MLD_MAX_NUM_LINKS) { > > > > + struct ieee80211_link_data *link; > > > > + > > > > + link =3D sdata_dereference(sdata->link[link_id], sdata); > > > > + > > > > + ret =3D ieee80211_link_use_channel(link, &link->conf->chandef, > > > > + IEEE80211_CHANCTX_SHARED); > > > For the 1st link of MLO connection/NON-MLO connetion, ieee80211_link_= use_channel() is called before drv_change_sta_link(), > > > And now it is after drv_change_sta_link(), May I know is it also has = some design here? > > Hmm, probably not really, at least I don't remember anything about that= . > >=20 > > Not sure it makes a huge difference? But I suppose we could change it, = I > > don't really see why not either. > Not huge difference, I have made little change in lower-driver to match= =20 > that. So it is OK now. OK. Still maybe we should change it for consistency? I can try that later with our driver. johannes