Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5392326rwd; Wed, 24 May 2023 00:42:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5EyF28saJl2aLCFGD6x3gssjZBG0WvOwHHJDfxpDDBIajWIVypzvDtniyTGBhkxf2yf5hr X-Received: by 2002:a05:6a00:b52:b0:64d:5f1d:3d77 with SMTP id p18-20020a056a000b5200b0064d5f1d3d77mr2456337pfo.34.1684914152847; Wed, 24 May 2023 00:42:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684914152; cv=none; d=google.com; s=arc-20160816; b=oT2d42JUnlfaKkoURJJ+qz2IYvogTx+773m/H0yirLxx3arkoFoTdjxYgb4L0TtiI1 CUv7Mi/5OzCfpPvRqt18QxXHuQAxSTEOYEcza/ixGJYUtdQNw1kutSlNrh8OJDIe79nn pdEcHU/AthAX9mWp5CAW04jJoivtcRq/6y6vo/98mslGpGuuL3/COWFlw2c9XG1RbY2U Qy98AvP/e3LsbxVoljUZGPiY4epOl1B7A9PMKVYpSP/SflOVOt0gHIRjqEsacOKFMVOc 16MNlcBENz8NeYSSssvRt1phkj4lU15zSzYk9TAJWyozzlHeA+pqH382gW1P4o1btbYQ bJWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :content-language:references:cc:to:subject:from:user-agent :mime-version:date:message-id:dkim-signature; bh=1mLltmsqCXNuYXpzbOzHFlhw7yJ3lEAE35ie30vSUT4=; b=DC9Yg2iqZwL9BGOajr/iLHn840hm0sNovGhBG3S1VSI8L9bI/qxURoP2WRIwp6c688 zkf2W/qz9jN9l+vrLgf+OzKkfoYHZvAGeDnr9JeMxZTRE50OtPrYRxNbxiMECg8CFPCe CZXyrIl8tp8ETBdySaXC67xieT8KVjr/IiaUtsX7NyBXFUvzSc0jpDxc/tbNzzOHWPNq jMmtiUtSyIYkn0HVp1hRTo9Q3fClTjjQFJzdzrbjkIyiVMN+TtWy0RR5HvQPvWXm6N7G sC50G/BZiQ/J6q4xtjJBRnT83SldHWtIysOxMT1AHGG4RYpceTw7C50OxuzvJl9LoXtx 0pOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=GuGA7MWs; 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=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j27-20020a633c1b000000b0053422305c20si3174934pga.14.2023.05.24.00.42.24; Wed, 24 May 2023 00:42:32 -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=@quicinc.com header.s=qcppdkim1 header.b=GuGA7MWs; 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=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239946AbjEXHlw (ORCPT + 63 others); Wed, 24 May 2023 03:41:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231346AbjEXHlv (ORCPT ); Wed, 24 May 2023 03:41:51 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5E0490 for ; Wed, 24 May 2023 00:41:50 -0700 (PDT) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34O6gYrx027785; Wed, 24 May 2023 07:41:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : from : subject : to : cc : references : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=1mLltmsqCXNuYXpzbOzHFlhw7yJ3lEAE35ie30vSUT4=; b=GuGA7MWseFYkPQo778AtI3jBk/lVewr/byQdt+xJAB3BS768K2Rc/ZiFicNCbcGQqamO JCkxILwkJmwlT8kFwtJM6W/CYvzwODnWMi2tZZueRNrTnONuA2eplHK5YI6sffkIWM4f aHsG82secaTT+6FLtbX9ioGUoFkL7j9q6k77fQ9p4FbfnpfGB3tJzNcbeK6zIj033/mU ETJ4cs1g9PZAlHeU2Mc4akeZRI8ciT2VliELePoBRApoaG65Dkh/6crwVHAmbgQ3kIYk tXzvHmGbZoCNONg8PbwHbgjAVXXbM9KLSZL6rlXg/XH8ZfFLvWnsV+lKJ4Bw5px1NDuL Qw== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qsdhh03r6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 May 2023 07:41:46 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 34O7fjtT030994 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 May 2023 07:41:45 GMT Received: from [10.231.195.204] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Wed, 24 May 2023 00:41:44 -0700 Message-ID: <1c26c205-0240-7670-117d-02a7af068724@quicinc.com> Date: Wed, 24 May 2023 15:41:42 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 From: Wen Gong Subject: Re: [PATCH 10/27] wifi: mac80211: isolate driver from inactive links To: Johannes Berg , CC: 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> Content-Language: en-US In-Reply-To: <2cc79101249548f2a92c14af6aff6121143907d6.camel@sipsolutions.net> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: w0f-wzaX2AXrDU-ObN-6xAHOEr8aCVN8 X-Proofpoint-ORIG-GUID: w0f-wzaX2AXrDU-ObN-6xAHOEr8aCVN8 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-05-24_03,2023-05-23_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 clxscore=1015 malwarescore=0 bulkscore=0 spamscore=0 mlxscore=0 lowpriorityscore=0 adultscore=0 phishscore=0 impostorscore=0 mlxlogscore=937 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305240065 X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 4/18/2023 5:34 PM, Johannes Berg wrote: > On Tue, 2023-04-18 at 17:27 +0800, Wen Gong wrote: >> Now lower driver I used do not store the key >> > 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 >> 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 >> after assoc. >> > Sure. May I add a new ops in struct ieee80211_ops? like this: u16 active_links(struct ieee80211_hw *hw, struct ieee80211_vif vif, u16 new_links)" then ieee80211_set_vif_links_bitmaps() call the ops to get the links for station and set the sdata->vif.active_links with the return value from lower driver, it means lower driver will dynamic select the links count at this moment. If lower driver not register ops active_links, then keep current logic. > johannes