Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5146372rwe; Tue, 18 Apr 2023 02:45:13 -0700 (PDT) X-Google-Smtp-Source: AKy350Z00jHmXJpkt6RIYFfO4YbssHABzQpwi1ST6MRXLqytdHZX/om4HoJTHnP6csmYnV18nt7D X-Received: by 2002:a05:6a21:32a8:b0:ef:ed72:779c with SMTP id yt40-20020a056a2132a800b000efed72779cmr6879565pzb.8.1681811113395; Tue, 18 Apr 2023 02:45:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681811113; cv=none; d=google.com; s=arc-20160816; b=CFGrof0/y+ChRT2NPb5mrThlROflc6eE4k8tsMPSO3Rf8WP4+7yG05oXzso+P6sKqv q5MbOyriVyVq6sQ9YC/wjwACbnksoGfaMZnla4KEkASqi8nTZerSP/OkKaEihl1pPqCI Qdc/xgr+hEcqwmryLARMCjVxLiqvV8rBRkoj3aIWUwIHNYyoWXTSknkI78AdTPtksZsQ zHQQsfK6M7PRLsLSi8km08NSJrrQwFt3l/Gf6QOnccQ+NsEBX9sw2+xvhiyOiOa2xVcs t+oh0xN8zLFYKeunDYfwfZvA2OMghSjqAvES2Vrfv87nDCV+ptZibA/e7FxLfoA8wb6A PDnQ== 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=M5Qtz6TP1ENIxoBnHcXZ0OmyvDVWJWQ9A1C/xTKJeRE=; b=IfMrO+DUtZ0x+YyN3gKWokD9RMxuMQBYdo0ThdqJELi2SGr3g6Gk/4SGMYtnxZi5sh Bqa4gEFSL0spMdSqWb/v7TVpVub3F38A41b0ltyo2v71iYmN137v3VjjR1iaQazgM8qK A8YiFatVbcNwAqUBjgZTmfvvfujkyfnPUSqqAq7QinF3qqT8SRyx7ab3hxffD57cgOXD dAhDHXrv8xXsATOx5bR/o8hNaaJDMVlhFSJt4EVG2+QtRYgfvaN11k8THC8KkFFBbTyb bLrI4RNr3BceBEsCTRtbE80/jWQeypVMXK7bWOTkdRF65ZvEqzdcdabqPpMB/8kxnLzh roYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=hHlGv9rB; 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 m1-20020a170902db0100b001a656596b9esi14817923plx.608.2023.04.18.02.45.04; Tue, 18 Apr 2023 02:45:13 -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=hHlGv9rB; 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 S231387AbjDRJjb (ORCPT + 63 others); Tue, 18 Apr 2023 05:39:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231472AbjDRJjN (ORCPT ); Tue, 18 Apr 2023 05:39:13 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BADE872B7 for ; Tue, 18 Apr 2023 02:39:00 -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=M5Qtz6TP1ENIxoBnHcXZ0OmyvDVWJWQ9A1C/xTKJeRE=; t=1681810740; x=1683020340; b=hHlGv9rB2CSb+gQ7nDTjZoBjdD0XQWStXifigpcASzcA3wZ XFadBHqGGceL0FMLJJkiz97L3YJNAV/CTDX9C+1WeS8GV6z5M1+cdZyj1b8yVxUll53C/pJsdI46W ZjwfvyzNpxTEXCom9yohynsAzWpONEIKmf+TcBTdo/WgIky6HE5SrvocVuOFEj3MRO9iMiS3GGm7u 5DuKeFxm7n5J8uCO7aUpT7hFkeMNeUcYOFgDG2if2ryYcmupixOryhfGwfyI0hxrp9/6dRDndfrSW nOlEi+EHE87u1Au74826NtdWyJ25ZSzl08ebZjgpXRVOTaF7YnGxXM9aBOTExG3Q==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1pohne-001ZI2-1K; Tue, 18 Apr 2023 11:38:58 +0200 Message-ID: Subject: Re: [PATCH 10/27] wifi: mac80211: isolate driver from inactive links From: Johannes Berg To: Wen Gong , linux-wireless@vger.kernel.org Cc: ath11k@lists.infradead.org Date: Tue, 18 Apr 2023 11:38:57 +0200 In-Reply-To: <13980456-11a6-384c-7be2-63c005410267@quicinc.com> References: <20220902141259.377789-1-johannes@sipsolutions.net> <545227cf18baac94ea8aa24dc08b250c47949541.camel@sipsolutions.net> <868131d13ed7c4c8b5d4938adcd71cf1ff8e9677.camel@sipsolutions.net> <5765e3c5-46d4-e92b-a93b-4a2649acff2a@quicinc.com> <37958ca93039114b98909d730ff57dd1d10bb68d.camel@sipsolutions.net> <91577d586475d290e08dee9e535cb6b4896e06d4.camel@sipsolutions.net> <61268d31f8a6dd4eea10fcb6048d39244bc584e2.camel@sipsolutions.net> <870ce439-85b1-f02c-70e5-2d424fd73372@quicinc.com> <34ed0938b69ead648da1aa250a2e081054fb49d4.camel@sipsolutions.net> <34212873-0b71-7f39-b064-6b50d8e514b4@quicinc.com> <09b156b1ef05377ca7fa0db35e8e13beb5c60e2c.camel@sipsolutions.net> <13980456-11a6-384c-7be2-63c005410267@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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Tue, 2023-04-18 at 17:37 +0800, Wen Gong wrote: > > > the sdata->u.mgd.assoc_data is NOT empty, > > >=20 > > > and the sdata->u.mgd.assoc_data->link[link_id].addr is valid, > > >=20 > > > it is addr by eth_random_addr(assoc_data->link[i].addr) in > > > ieee80211_mgd_assoc(). > > >=20 > > Exactly, so we've already decided on the address long before we actuall= y > > add the link data structure, so your callback would be much too late. > > We'd need to have it called from ieee80211_mgd_assoc() already? >=20 > For the 2nd link, is it OK for me to use the random addr which is set in= =20 > ieee80211_mgd_assoc(). >=20 > I only need to set the 1st assoc link in low driver. >=20 Ah. But does it make sense to restrict the API for that? I mean, if you just change the prototype a little bit and call it without the link conf, you can easily solve this problem too, no? Then your driver just has to call eth_radnom_addr() when it's "don't care", but that's OK? johannes