Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30767rwd; Wed, 14 Jun 2023 11:45:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ57bALQZAeKYH8HtCqQGIdXrxKrnDq3NvHqzRj7K88g9jQZxn40etdGbbHjXBvCgz/pVZRS X-Received: by 2002:a05:6a20:4417:b0:10b:91c5:45b5 with SMTP id ce23-20020a056a20441700b0010b91c545b5mr3210452pzb.31.1686768339449; Wed, 14 Jun 2023 11:45:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686768339; cv=none; d=google.com; s=arc-20160816; b=WOeywXru9iS1lF0G4Xz3XLq1NCDClr9Cx/NNcyXg/TgQtuMr+uEfvrifrRG1vCj2ll bdeWjAXdvcMz/kPo3dR2D0MafVG6LEAuUFx4eDzFSsI3K/3AYSYqTZqWFvJF7j2EKzGI qS2zb21O0TCEJW6r0AuaDQDg3qvUF6DimAQ/HtYjNUs1tEmB/KZiAqE8Hz1O6UiVLnqb iHBmp/f9nR57HbeuZ1GSnx4ZxA75ceOOuC//bBN+oKE4+uWZpsydDBJP04x9SvUIdbOW qo2gn+zYj2r7roMKgnKGQx6eW4m4gIFlZf61jvjP2P6W2s7UmN9lk/XaxBkzUEa6tvGD HqSg== 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=VIVempwRAnUTae1kulh+NMBkImnt8hqihQQr0dy+2EM=; b=DecrIA3vzTgWj+SiljFFbhymdm3ffRI7IeJLS+eMdcLrIuMvaqkWwuuPL+B6lqtlpZ jxXCD7SkuyqOELDcVJvfyOyCYwg2jBFpMDEfDfKpw5aKipWpX26mU2IhX1e9kmRD6bHt 6YPfq9j2LYoNkdQexqeoWL16/dlk3/Zn2XtTljxbHommuTYhPrERG5aCrv7AXY0mdzhu Oq0Phd08nfgu77JON6nW8o5t5nYHgrv/CsJWID6T/d9i2Q3Ga6OoCdAvWvstEPog1k0u w2JcUqVMjxjvkmDZbvP75Mxg79qrclDAortbPg/f+adwKc8R2XqQUe+HIZyFO+UU56NU Wn0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=G1y98azX; 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 24-20020a631258000000b0051b70ce7dd2si10768246pgs.80.2023.06.14.11.45.26; Wed, 14 Jun 2023 11:45:39 -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=G1y98azX; 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 S233922AbjFNScz (ORCPT + 61 others); Wed, 14 Jun 2023 14:32:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229832AbjFNScy (ORCPT ); Wed, 14 Jun 2023 14:32:54 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20B6F1BF9 for ; Wed, 14 Jun 2023 11:32:52 -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=VIVempwRAnUTae1kulh+NMBkImnt8hqihQQr0dy+2EM=; t=1686767572; x=1687977172; b=G1y98azXTSd36fgzZwyp7fMRwfK3oNOZbCLCUl6HG++FOrw P2AlhbmyLEtY6EBaTYA9BpOlr9Y7/4iM5qg9sXfcwwQ+BtovLCgztPM/0JR/YSDiHoTQKXuvnA6gr RSz18DeI9Kl2XMXJ1SYOZPzvt8uUYHQb1h/BhqUDgcWTz3owJZ9GCkKGknNsuy/FR8niVY9uT1H4/ uoSCCNdxEDxBczGjMYU18Eg18Dh/B/X7mu59by0aqCQMZbX9jAx/8rcRW2y9SQ3evrz4ClUawjx2n naIrWE7nzz9T/lJWUZA3UfB42i+28DG4i+5FEV49FtXoA1U+mjId7NNK0morIiVA==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1q9VIX-006Ix5-00; Wed, 14 Jun 2023 20:32:49 +0200 Message-ID: <6f8db032286923845202c7d658f1d39db79a758c.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: Wed, 14 Jun 2023 20:32:48 +0200 In-Reply-To: <1c26c205-0240-7670-117d-02a7af068724@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> <2cc79101249548f2a92c14af6aff6121143907d6.camel@sipsolutions.net> <1c26c205-0240-7670-117d-02a7af068724@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.3 (3.48.3-1.fc38) 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 Wed, 2023-05-24 at 15:41 +0800, Wen Gong wrote: >=20 > May I add a new ops in struct ieee80211_ops? like this: >=20 > u16 active_links(struct ieee80211_hw *hw, struct ieee80211_vif vif, u16= =20 > new_links)" >=20 > then ieee80211_set_vif_links_bitmaps() call the ops to get the links for= =20 > station and set the sdata->vif.active_links with the return value from= =20 > lower driver, > it means lower driver will dynamic select the links count at this moment. >=20 > If lower driver not register ops active_links, then keep current logic. >=20 I guess you can can send patches for whatever you want :) But I have no idea what you're trying to do? Why would you need to have a callback? Was this for link selection in the driver? We should have a patch somewhere that adds a BSS_CHANGE flag for when the valid links change, so the driver can select others. johannes