Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp8980408rwd; Wed, 21 Jun 2023 01:08:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5ZsHtt6ygT548Gf5gYsOCrGBLCHYMhRb5sIgdZ3xr7u7zdKkOdTBF6rwJk2Y8LE0gYhBPy X-Received: by 2002:a17:90a:6f44:b0:25b:e747:103 with SMTP id d62-20020a17090a6f4400b0025be7470103mr11400664pjk.26.1687334916291; Wed, 21 Jun 2023 01:08:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687334916; cv=none; d=google.com; s=arc-20160816; b=JZDrwgZWYXoXyi9eJmWW4xTjs0sphJBmw8HHDqdQXdpkiizmyDOBrI5ZDx1THMcW3b 823piRupnJxy5WxtVf+S3vAYMSjBrbHOFmVCpgNCEjsXO9T7V7J4Mt0kObWj0K9EeuI0 PzvE9TRTa50BSfyEvMhTpZsdMGumqwgl4qehDdECZdo5xJfJkMxwb9/oGJxI+Xah0kZr s66Xa/vRs2mgrQVFKWo/1JjsAuZOLoBpz8fGIJeK5vrUNm6/jbJUFg0CKInCio/RYfES xeP9GQaOAHn8yCGvnb7YGmTCPukDvoxxCyzLi6kKFsph3Cesx3gOG1rqIb6nu7yUiLtI c0Eg== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Sz1GNTMKBDD2FFF09wY90cMKcQXa3FWB0E73B/6CyJc=; b=hrXyfmI53hhHPHzemp/cEtIok7+gmvTT8W7UleJ+bPRk+UuLn3xPf32GdNz91ORCZF ofP2B1Ve259tPwWLV5h4oqDVv8iGQwlopXG/HLq7Ih4ds6ugz8uoPEq0tFJv+zchl5s8 9v3is7Di/uC0+5ccXVUGX14unxxRqPu69Ppsi419UtMh6Qwk/Mvd0A3x8H4UKK/0lKSE UWpJYpa/vnk1cxILshixVo1g0erx8QK5BJSkZBRp1rYLREYOyydzYxlHKWEVZypiIGex jAxRfFT6p8urqqRS7axHYvsaVIJWVJjg47r7f1d+dxhgfYlFY1SQFr+d90/gHdNrhBXm nrpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=psX+rJIe; 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 u189-20020a6385c6000000b0053f3d04e66csi232800pgd.699.2023.06.21.01.08.29; Wed, 21 Jun 2023 01:08:36 -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=psX+rJIe; 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 S230378AbjFUHzZ (ORCPT + 59 others); Wed, 21 Jun 2023 03:55:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229650AbjFUHzY (ORCPT ); Wed, 21 Jun 2023 03:55:24 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00A231BC for ; Wed, 21 Jun 2023 00:55:22 -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 35L7BhhZ011863; Wed, 21 Jun 2023 07:55:11 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=Sz1GNTMKBDD2FFF09wY90cMKcQXa3FWB0E73B/6CyJc=; b=psX+rJIeR01qRklDIuJqp0wCK4C0iDX+1kXJdmDqbIud5V4wlvxMScPvJ+uyypPzK5uR 71AVptv3oDhaJjQuEHW0u2ZiYTim8nvWClsRi8PVy2x2VBzHZKHIQ8tfu/i82/+ZyHID v926B9KdB7XGW3cNBLtqxCT72u9qTANXbFknFPtw2xQ1SigAUV9aswhpTRRUV+RbvS/o Labr9VtKd63XPwJcKYLcg3i7sAyW8xOnwZlBiI4wl1hh5cB2Bgr1OxgL/dgIsP2XhIRE e7dMMF7nRulf6t8cQU/S+WtrhDv5hB/p4Ew2xXbhlpfeu4GaxzM6c0AXj6VFW/ZsL4Zh 7w== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rbqu2gjye-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 21 Jun 2023 07:55:11 +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 35L7tA16005012 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 21 Jun 2023 07:55:10 GMT Received: from [10.253.76.127] (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, 21 Jun 2023 00:55:08 -0700 Message-ID: Date: Wed, 21 Jun 2023 15:55:06 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH 10/27] wifi: mac80211: isolate driver from inactive links Content-Language: en-US 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> <1c26c205-0240-7670-117d-02a7af068724@quicinc.com> <6f8db032286923845202c7d658f1d39db79a758c.camel@sipsolutions.net> From: Wen Gong In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit 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-ORIG-GUID: CyUp4fO-_12Obd0MqDcRhbLWBdGu7OuD X-Proofpoint-GUID: CyUp4fO-_12Obd0MqDcRhbLWBdGu7OuD X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-06-21_05,2023-06-16_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 suspectscore=0 mlxscore=0 spamscore=0 adultscore=0 malwarescore=0 priorityscore=1501 phishscore=0 clxscore=1015 bulkscore=0 impostorscore=0 mlxlogscore=824 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306210065 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,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 6/15/2023 3:56 PM, Johannes Berg wrote: > On Thu, 2023-06-15 at 10:26 +0800, Wen Gong wrote: >> On 6/15/2023 2:32 AM, Johannes Berg wrote: >>> On Wed, 2023-05-24 at 15:41 +0800, Wen Gong wrote: >>>> 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. >>>> >>> 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? >> Currently driver could use ieee80211_set_active_links_async() to active >> links after connection completed. > Right. > >> But I would like to allow driver to select active links in a early time, >> it will be more convenient for driver. > How so? All you have to do is look for the connection becoming > authorized (e.g. sta state for the AP moving to authorized) and then > selecting the links you want. We've already been working on that, it's > really easy? It is more complex for ath12k drivers. > > On the flip-side, it would be highly inconvenient for mac80211 to try to > enable more links *during* the association process, and actually it's > not even allowed by spec until the 4-way-HS finishes. So the earliest > possible time is pretty much when you can just do it in the driver as I > just described. > >>> 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 >> Yes, it is for link selection in driver at a early time before >> connection completed. > This is not really allowed ... At least not without also finding ways to > really transmit the 802.1X and 4-way-HS only on the right link, etc. Yes, I also found this in section "2.7.6.1 General"  of IEEE P802.11be: "For MLO, if RSNA has not been established, each message of the 4-way handshake shall be sent on the same link used by the latest exchange of successful (Re)Association Request/Response frames." For ath12k drivers, only the primary link(the link used by the latest exchange of successful (Re)Association Request/Response frames) is active before key installed, so the 802.1X and 4-way-HS will always sent on the primary link, so it will meet the rule above of section "2.7.6.1 General". It means: lower driver will ensure the rule when it implmented the active_links callback such as ath12k. >> Could you tell detail about how the BSS_CHANGE flag works????? > The work isn't complete yet, but basically it just calls the callback > whenever the valid_links changed, say by link-reconfiguration. > > johannes