Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5392036rwd; Wed, 24 May 2023 00:42:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6WM75LL3jWMH2e4qNL7sk5Xgm0DkbkP2cs9xJH4F+mC0/UcJjDf336h7i6uIS+3ruOFMl6 X-Received: by 2002:a05:6a20:7343:b0:10a:ef63:cd15 with SMTP id v3-20020a056a20734300b0010aef63cd15mr13894325pzc.60.1684914128416; Wed, 24 May 2023 00:42:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684914128; cv=none; d=google.com; s=arc-20160816; b=mFXQ+8++Fg4L6FXeLuDboaRyEwYpsE/jTDygZSoFJZZw3Nn//0d6Y6xcbtSUl0fDFD DIXVOJmYvWKLFo87YciXfSTsa7kSkLAvkntUJ513IoE8pXwo8D9qC7P7GN33dPX8TPHd 3zY0trrGiCT0KhsYvRkg8v6z0TcJ9HCSjwuRsa/p3g1FKn95DWG8KfVLev04D8ezxy8z H5GR8SDUJWdlPWIm6RV3Idb2Do1PDjlUVfQACNYG9lxT0na7w3ZhQk6ggr21+SZOkCSw hSfI+NsRola+Uit0ECKBhzSUGeYAJJqAE4DPmqF+s+7x2qLiNO5FConrpWoxbHWRDtab g8QQ== 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:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=CgT0p0n5Ta12gb6kqsmYR9CbA+Jcv69Q0WyCPyHwvjA=; b=CcxXvIOyZ0XqDhZ/aV8Cod+esIXMSEoa9xHnKSXyYtYRUDH/Xa0eCdQRI9Fr/IjyOB MQXbZ/Bkht9kphDTZ9beRrOsSsVSM9O5FI85u4onxgb56wsAIiAjkFImbXOWepyBgPsD i1oTTx59LGMvKHPcdOVc6K3hX+78haQnLXzuT5RI8hLUNtlvd7bOY2GMoEaa4uneMkK9 lylAi5pp2dMHcED7DEnszJSq/v41w+zhEsFhrJkC0xhruibXM1/b/5nkdMC3ccQWLZHF EQBidMCpV1do4tPag2sheKVvcs6JQVPQ7fVrxxAECZcAUNJmmFYgqOsfhMTdIfStVYGm OAjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=kqo81Pth; 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 j64-20020a638043000000b0053485684fd3si2515646pgd.183.2023.05.24.00.41.59; Wed, 24 May 2023 00:42: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=@quicinc.com header.s=qcppdkim1 header.b=kqo81Pth; 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 S239748AbjEXHjr (ORCPT + 62 others); Wed, 24 May 2023 03:39:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239476AbjEXHjq (ORCPT ); Wed, 24 May 2023 03:39:46 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58F478F for ; Wed, 24 May 2023 00:39:45 -0700 (PDT) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34O5nqPc021003; Wed, 24 May 2023 07:39:34 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=CgT0p0n5Ta12gb6kqsmYR9CbA+Jcv69Q0WyCPyHwvjA=; b=kqo81PthXfN7VmabueNrjbtRzD0OO+Bo52l8OUfoEk/vP8mdd6Un8y5WVkHR8x/lexU+ qwhVLMyJaBAIgTBDlP3HJFNSRK+1kBgFVmORnpA4baO4YtKsNdk9KZDG9tvCDymyYlu2 Tbn7uSYZJxS2cBiLH49QDB7QJuf3JTpDiwEdHR5MWTMuVT27vORF/QrvFXbaxBredEdp Tvbr96uTVtdd/f2JH37eQ09s5HfEUy72XtKRg/ePF4YbCuZOal+IEkaBkGEn7UW+0KPh 2W//CVdwGPXAbI2G/4nEz/ctm0bRNfSysjbka/Uv5TBI7tO+G9X/zjXc1i0xnVnF7q2g pQ== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qrsx0txfg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 May 2023 07:39:34 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 34O7d59U027310 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 May 2023 07:39:05 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:39:04 -0700 Message-ID: <02c7d3f8-2486-cc59-4503-52326e12a76d@quicinc.com> Date: Wed, 24 May 2023 15:39:02 +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 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 From: Wen Gong 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: nasanex01b.na.qualcomm.com (10.46.141.250) 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-ORIG-GUID: b2YeXSwRSFkEW01lQ5dvifFsQERfP7B9 X-Proofpoint-GUID: b2YeXSwRSFkEW01lQ5dvifFsQERfP7B9 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 bulkscore=0 lowpriorityscore=0 phishscore=0 suspectscore=0 mlxscore=0 mlxlogscore=940 clxscore=1015 priorityscore=1501 spamscore=0 adultscore=0 impostorscore=0 malwarescore=0 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. Hi Johannes, 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