Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4612422rwl; Mon, 3 Apr 2023 07:22:45 -0700 (PDT) X-Google-Smtp-Source: AKy350a0xilO8MSa14DEXqYPvdkybQekH4dhEeOPithuLWcRXPjYotugiHLpLzQH2LUL3j6gqZxv X-Received: by 2002:a17:903:905:b0:1a1:d5fd:1e9a with SMTP id ll5-20020a170903090500b001a1d5fd1e9amr34299852plb.40.1680531765171; Mon, 03 Apr 2023 07:22:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680531765; cv=none; d=google.com; s=arc-20160816; b=L3XTusqMoYEe3UKhHogkYLFcr7wylcUWc9JQZKBf1Ekct7aUdtN/jkKj4QwhGfZ4Bk I6Mc7THmKthA/nxZvIwkggukHj5rBJW3oYYE7l7adW3Vx7Y945Wvdn0HQmKZ0r4fU2/o MS6843Qeiw94PfmtbBZVT7pxQIlrYcoZEMAxrt7++ccLwzGlILWaUN1uAyV4qG9qIwKS fxNkqT+rKhofg+oCcyrgd4uyWeXL4/gWmiS3tifxUw1L4z9j9dwFjB0VdZhwIUM0GZZn 7O3pyexpGBEnQxvV3jXrIObdlzRyjVeZvv26zM0PduCuCmn86aBVDZxbq5h1oWZj5pgn xEXg== 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=TvJL6iO21505iTIUgNDYxI7ABKfy17PjIQZA4KoMYyE=; b=OLwgmiiPi6At2RJ99p7RbS9euSkepEzl3KbF3q8fsnYS5GjGVHy5vmzd0GzyqT+x2i F/PTWG82CI1/O8rBiNgFw36bYC9BHPTUU6AOWRDP89OkseiASe9q/1Dm+bKx70ViPweE aCZpKV0uxLjj/SMHNyTN0v2AQoXCUQsZJJ9t560ceeEkYeu9qmsd0AJ9PZJksZYSVB/q vR2CF6xa8XvMEm57VOsv3u3DI3m3nmufeQYgeQYL3CLxUuluKyEaLLTftg3wxSLRZPOO G1ZfUFJhmMCuOHVQTUdg1dSpVZB36gcAB0ohs4Y+SClhuJ2i5vYUlxM5OkVp/Uj7y7Ta Co+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Qmo3Yp6o; 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 u11-20020a17090341cb00b001a04b5ad759si8441871ple.616.2023.04.03.07.22.01; Mon, 03 Apr 2023 07:22:45 -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=Qmo3Yp6o; 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 S233088AbjDCOV5 (ORCPT + 59 others); Mon, 3 Apr 2023 10:21:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233146AbjDCOVv (ORCPT ); Mon, 3 Apr 2023 10:21:51 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8E3E2D7E7 for ; Mon, 3 Apr 2023 07:21:37 -0700 (PDT) Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 333Ailk9008610; Mon, 3 Apr 2023 14:21:18 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=TvJL6iO21505iTIUgNDYxI7ABKfy17PjIQZA4KoMYyE=; b=Qmo3Yp6oQZkZBQRCLyMc5dLzGHdbwfMXKs+9geaEbuzJoJcDOc1Wu+q67RsIMCdaT3iO t1+KDfn4RjIv+IKUdW3SmeKEXsJmUVMcFIsFZEohW0zTZw3GpnzpW26wVLFlbGYrOmI6 ACBr6obLMMdrGJ8F1cpee0aRNEfkw4pffklWBPL3P/h0GA3GqzgBVE19gMZhokbe03OD MVVO+A5PlSJZQqGH0E4qHCDJAJSdgY5dOX3OlOy1OH44NbAMrYJhGtuJk1oZ/r54C/eh eNmUs5OoMGJN+6IuSGxWSepUe7Zh5Em9AaUnTPOux9+o/s/N8X1BswSiMBOBhN1bfFYX AQ== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3pqus58qv0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 03 Apr 2023 14:21:18 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 333ELGN1007229 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 3 Apr 2023 14:21:17 GMT Received: from [10.253.35.21] (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; Mon, 3 Apr 2023 07:21:15 -0700 Message-ID: <955cf0b5-8973-86b5-109e-268917d70904@quicinc.com> Date: Mon, 3 Apr 2023 22:21:13 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH 24/27] wifi: mac80211: implement link switching Content-Language: en-US To: Johannes Berg , CC: , References: <20220902141259.377789-1-johannes@sipsolutions.net> <20220902161143.d99dfbe65c90.I92385ba882ec984a9a2ad18293173436657e82aa@changeid> <50719d34bc48d816d00b56d3d9efdb59e3e51a16.camel@sipsolutions.net> From: Wen Gong In-Reply-To: <50719d34bc48d816d00b56d3d9efdb59e3e51a16.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: 5uPBzRF3q1L1YZnYW10xnH9_gQex2MYP X-Proofpoint-GUID: 5uPBzRF3q1L1YZnYW10xnH9_gQex2MYP X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-03_11,2023-04-03_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 lowpriorityscore=0 suspectscore=0 bulkscore=0 spamscore=0 mlxlogscore=539 adultscore=0 impostorscore=0 mlxscore=0 priorityscore=1501 clxscore=1015 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304030104 X-Spam-Status: No, score=-1.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 3/27/2023 4:31 PM, Johannes Berg wrote: > Hi, > >>> + list_for_each_entry(sta, &local->sta_list, list) { >>> + if (sdata != sta->sdata) >>> + continue; >>> + ret = drv_change_sta_links(local, sdata, &sta->sta, >>> + old_active, >>> + old_active | active_links); >>> + WARN_ON_ONCE(ret); >>> + } >>> + >>> + ret = ieee80211_key_switch_links(sdata, rem, add); >> I see ieee80211_key_switch_link() only handler the per-link(link_id >= >> 0) keys, >> >> So I think lower driver also install the pairwise keys(link_id = -1) for >> the added links at this moment? > Well from mac80211 POV they're already installed, so we can't really > install them again. We'd have to remove them but that's racy, obviously. > So I think the low-level driver just has to handle that, e.g. when the > station links are updated (and the key belongs to the station.) > > Thanks Johannes, Also it does not have BSS_CHANGED_ASSOC(exists in ieee80211_set_associated()) for ieee80211_link_info_change_notify()/ieee80211_vif_cfg_change_notify(). So I think low-level driver also need to auto add BSS_CHANGED_ASSOC logic for the added link as well as the pairwise key you said, right?