Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4451659rdb; Fri, 15 Sep 2023 02:38:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHlPegL8Poh6yR9hQdyLl9N6zKhrQqGFAH4yMzDHXNSZweXG+Dw0PNXmcyRlkfHqAX1xB8H X-Received: by 2002:a17:902:684d:b0:1bc:224a:45c2 with SMTP id f13-20020a170902684d00b001bc224a45c2mr4538959pln.15.1694770682973; Fri, 15 Sep 2023 02:38:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694770682; cv=none; d=google.com; s=arc-20160816; b=s85FzJQphMZYsm2JyWxs9vE0AhuyXTakI22n4U68ItJUdxghdeSliih6sgXsdGFqf/ 5Z5EVYo0cIFIiWYJ+uPt8MsnfmEFOkdbObLybvQ/a0OY0Jq5RYSiAjCvaWXIGRscepSv CL0Df4M1PK8dB34w1l3p1sPMLHIGZQtllnMdlVL4RjTP9ZVeBL8+905Uii2B4p8y+ciy vlrk2kG5jMusNOHhGJNT99AjhCQXNlS6qjNw/VG5BIGhldQFqxodC2qPtdZikXjQG7oL zTd5RP1A4uOfRdce/yDQFymYq6JkyE4nWgW/rW1liBFCGFQYi7lCQHW0aqp8vZIOBO9z CyWg== 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=lm+neKL92MNlp8Cl0UtHhTwvNZwu5/uptBOf0Uts3mA=; fh=qS/ownCzmKEaYy+nQOSYXIyB69zPabuRQlWPfFyt6ls=; b=zEvZWGxblWgZEEz9x5zCmcN7eIWl1sAS8Ge3pKD1QwpqzD7/TqPMR2uFX3TD3yKRMO K7bKpv1FqG5hpCEFa6M5Bkiul8mWIF26SBzbivvfZ9xQc2l5N7815dFxnyWSke7xkK5a annhakKdcywfiDuWmfZW254hZ3FDKDlIL+ItAqvVQxFux+2RU7OhHuhu0FyDMy9NYCcy I7RyXHMBhPbZEIv4Pbz8ARpylycozJXnHINj9aDQS/xhy1eC1ZuZXEO4BANO3xw2mnOO fBnjANkjD0HdlN4Tprpd0zfDa9ryi7MmjDcF0nvMMXTwLm9mEntCNhUygEW5plW3GtLn 1RQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=OwdPlyVO; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id x6-20020a170902a38600b001c370dc4445si3174387pla.210.2023.09.15.02.38.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:38:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=OwdPlyVO; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 17CF980697F3; Fri, 15 Sep 2023 01:12:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232822AbjIOIMD (ORCPT + 57 others); Fri, 15 Sep 2023 04:12:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232291AbjIOIMC (ORCPT ); Fri, 15 Sep 2023 04:12:02 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83C9B2113 for ; Fri, 15 Sep 2023 01:11:56 -0700 (PDT) Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38F7nV4f006696; Fri, 15 Sep 2023 08:11:50 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=lm+neKL92MNlp8Cl0UtHhTwvNZwu5/uptBOf0Uts3mA=; b=OwdPlyVOLcAyinv9x/4r7IxBO1DPoYS74EMoD6xrAsSMAqfqAKhSLjuto+jTfyjG0PXq +zVkaUeIMm3PnOD8BsGu1v+1byc1wbyGzU+VgYdHjcb7oRbDJ7k55AGg+foQsU8mBrjR 6PZmsoGlfpqFYPaHq9HbhwmU9NAmICRTpi/IREuNZp1YoQBdedLX4YRhngJBBEangKHI 1jA4j/bkZOoS/qV2bKFWckSQouhTSg/JUXQp3MxB5xDz024Vqi1BKveFyXGal76/1TJX pdmvsriiKEC1WneaI8d4fkb2GwGClY2SHPzFCFFG7OeaRGfC7FZizkMNtJA+ktQclFlj Ig== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t4g3gre9x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 15 Sep 2023 08:11:50 +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 38F8BaC3004554 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 15 Sep 2023 08:11:36 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.1118.36; Fri, 15 Sep 2023 01:11:35 -0700 Message-ID: Date: Fri, 15 Sep 2023 16:11:32 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: [PATCH 1/3] wifi: mac80211: add support to allow driver to generate local link address for station Content-Language: en-US To: Johannes Berg , CC: References: <20230906103458.24092-1-quic_wgong@quicinc.com> <20230906103458.24092-2-quic_wgong@quicinc.com> From: Wen Gong In-Reply-To: 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-GUID: fj56FaH3fHiOiXc9NZlUeBlc3nOk8cm- X-Proofpoint-ORIG-GUID: fj56FaH3fHiOiXc9NZlUeBlc3nOk8cm- X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-15_05,2023-09-14_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 clxscore=1015 mlxlogscore=548 phishscore=0 impostorscore=0 suspectscore=0 priorityscore=1501 mlxscore=0 malwarescore=0 spamscore=0 bulkscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309150071 X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Fri, 15 Sep 2023 01:12:00 -0700 (PDT) On 9/13/2023 4:55 PM, Johannes Berg wrote: > On Wed, 2023-09-06 at 06:34 -0400, Wen Gong wrote: [...] > Maybe after all this explanation, all we need is a flag "reuse MLD > address for assoc link"? yes. It is similar as I said before here: https://lore.kernel.org/linux-wireless/b9c6d022-12c3-a696-c4b9-cb14a6d30a45@quicinc.com/ > > >> + ret = drv_generate_link_addr(sdata->local, sdata, >> + link_id, link->conf->addr); >> + if (ret) >> + eth_random_addr(link->conf->addr); > should probably refactor this into a separate function though. OK. > > I'm also not sure how the driver even knows that a link it's being asked > to get the address for *is* the assoc link? Do you want to rely on that > being the first address handed out? Current I used (vif->valid_links==0) check for assoc link. When drv_generate_link_addr() called for the assoc link, vif->valid_links is 0, and it is not 0 for other links. > > johannes >