Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5144785rwe; Tue, 18 Apr 2023 02:43:08 -0700 (PDT) X-Google-Smtp-Source: AKy350aKPXRVnFScOMGkA0j6c3vvhL+bvCVz78PbjefNoJ35dCfbZyDxZVKuMMDMl91OW3bu2FzH X-Received: by 2002:a05:6a21:6d9a:b0:f0:9fda:bd7f with SMTP id wl26-20020a056a216d9a00b000f09fdabd7fmr2105821pzb.13.1681810988513; Tue, 18 Apr 2023 02:43:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681810988; cv=none; d=google.com; s=arc-20160816; b=tad8+TtTdLqcRxFtZkZGYuYm1ecbkX7H0PGT3q0VasSt6bLtyFkNDwtmabXivOwHOU Gl+QdbLJY62YPg0j1EtlBphn5L/YUtV9od9DCYhL2+GmK95P0+l6S+v1/UlEIMyP8YiA 8xWK3rBB2nWcDcSw5PmOK0qJDW3h6WuXUel0jzidlt5De11xliIDY1LmAp+PJ7AphDEa UDz13c4PKE1ehT756CdOawB2YALZFZEi2jokew/lBDLRTWV3kjUp/pMToD4rkUCLjMzG /KwIvJ1BNM8ceHg6UoBLu+1bdYVG2GtVKhrZnjvp+ADW+xNuBz6UNOIGSGV4ZeYnfqKX soGQ== 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=RzCgGYfROrvIQhr2HcmBHV9WvQ0SlwHJfX0zaCj22AQ=; b=cuoDjdeJigfCjzyQF/bMPv8gG/vyPDaN66DCB03lSQDshRITC784Yb8OomkSlay9N3 /P9MP1s5zjATw7fTBrBYBOVatDZiXOncFczhEED7YTP/s4iE0FTwFbUB6B+cfeLz66+k iHIxQzW4xC06DkY5Tx8RGSuWMxdRFLhoYk+/4mJEVt9Cv7LzHlOoUX4dMbY6BRHnmZxh Zh2bDDXpmkpEtp4z6PuEg07X9hn3JD8jmiWxYza9j4wHsPTUzcwHU7wqaGrCsOFwWQ0a Yud45C2id/dZZzup9agORCFLZ+VHDbumDnGxBlG5TiUtCzzM/wv3HsZqJWkMN/tPLB7r E+ZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=Z7+5dOu+; 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 v186-20020a6389c3000000b00514165ab22esi849656pgd.133.2023.04.18.02.42.59; Tue, 18 Apr 2023 02:43:08 -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=Z7+5dOu+; 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 S231383AbjDRJei (ORCPT + 63 others); Tue, 18 Apr 2023 05:34:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230333AbjDRJed (ORCPT ); Tue, 18 Apr 2023 05:34:33 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A9DBE7F for ; Tue, 18 Apr 2023 02:34:32 -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=RzCgGYfROrvIQhr2HcmBHV9WvQ0SlwHJfX0zaCj22AQ=; t=1681810472; x=1683020072; b=Z7+5dOu+roKDXCMm97s0M3m/2FjmKzOOtQFdDCZVz2Oq31w xh+o5HTqm+7Yv+BxIj7spr14900D0riDSbDuFHXaBGqRmIdLddJv9fW+rrwaFzEn1aUG2k9NGOJQE yzwD9hK1BGipAHLFYp2dzuxv/cPWNWCSDmEtRb6Y5liQKVJDpEPHMetDG59EB1dhargC32sJ+YP3E VnRsRPtfNzbst56P02LZ16oKpeCQ5fmt3I5WGjfAvdEbizXxiLh8mNtBYQwG0eLpo97JcnmSfr7zf vYORgTbzLeRhOksMI6Hlp6E0jbHKzAXTrmvFaKfBgARRo7gBE+Xdy0bfd9P5MPCA==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1pohjJ-001Z9e-2d; Tue, 18 Apr 2023 11:34:29 +0200 Message-ID: <2cc79101249548f2a92c14af6aff6121143907d6.camel@sipsolutions.net> 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:34:28 +0200 In-Reply-To: <76863dec-1b2f-b933-7c5e-21c732de4bc6@quicinc.com> References: <20220902141259.377789-1-johannes@sipsolutions.net> <20220902161143.5ce3dad3be7c.I92e9f7a6c120cd4a3631baf486ad8b6aafcd796f@changeid> <5d82e564-86bf-c26b-077a-d0bc14e2d3c3@quicinc.com> <74f3eb848326607b15336c31a02bdd861ccafb47.camel@sipsolutions.net> <113761966918b2f390d3c9304307b42a0b4a829b.camel@sipsolutions.net> <76863dec-1b2f-b933-7c5e-21c732de4bc6@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:27 +0800, Wen Gong wrote: >=20 > Now lower driver I used do not store the key=C2=A0 >=20 Sure, that's fine. > and do not trigger > BSS_CHANGED_ASSOC for new links after assoc. I think you need to think hard about this ... whatever BSS_CHANGED_ASSOC causes is likely no longer correct in MLO. Again, the assoc state *itself* is only changed once, when the whole MLD associated. > So my suggestion is a way to active all links while assoc, this way is= =20 > simple for lower driver I used. Sure, and we do that. But that's not what you're asking - you're asking to re-do some *MLD* state when a new link is added, and I'm saying that it doesn't make sense to "add" (again) a key to the MLD that was already added, nor calling a vif (MLD!) level method saying the MLD changed state to associated (again). I really think you should solve this in the driver, that doesn't mean you have to _store_ he key, you can use one of the iteration functions as well. > Also ieee80211_set_active_links() is another way to active all links=20 > after assoc. >=20 Sure. johannes