Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp3562195ioa; Tue, 26 Apr 2022 06:09:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjjTnOJvR5uRU0KGyd/LS0iTNZl8aSct5hDfk2XzpglYxWQbMoHVJ2Ucnmle4lBD24DWvd X-Received: by 2002:a17:906:794f:b0:6f3:b079:7e54 with SMTP id l15-20020a170906794f00b006f3b0797e54mr3100731ejo.519.1650978547938; Tue, 26 Apr 2022 06:09:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650978547; cv=none; d=google.com; s=arc-20160816; b=sZhQxNvkNorduyZGNasyA1zCuSAwTWK0QVxHFy96/MmTX4GMJpQg4C08vptZqUYspf Q4GVDkHRnkoRQRBxaIO1mNOFsKq4FWfbA7X3xa9WTJsQRTwFJcHHSOdrpXx2GUF1foev zZ8WV4Ub72U1k56BqHis+gfBteCzU7PBleSEuAy1Rcw7huSRgvxQe4LX3qnR2nzB+bes LashFjj9t/Z/6rA8UaZKqJAXfGrWpwJeZygYzQOuXgwRCfzhJ7dXZgNZw+M9dkf+lEOD 3Vk0gXyChI/u+vSiFdf4Z0SzhPmbtGV2PJOUK/f5rqJ+7BU2bRZaxfd27lWuIoYKRa1m GHEA== 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:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=AeNSb0FKkbLoHTZHKt+yir9RlhqqMU/vKU5zgdB3ehw=; b=wm1vHV9fwwsdpOZKzu0SwXbp0zPUi9TmBdSh3Ej/UvMHTFte6vK1LgQnkJ0Mi6ueEq anKaa6yvE2kqCw8oXYneJz7DfLXgnS036PSNJRKTzYck6PBbQGBXFoLNy+ymlUwT5mF7 R0QvHVvIzU0K4WiuoUbMiI4UuhPAr+Qqvkr+uePLPVt6DJZBLUgkxDU2HRt3brRYl9yV s9ylicxxIYNdZ9oV2q+dMGL9GtEbCZomVvfgqOz5iq6SFYP5UImS+S82yI1A+E0AoF7h aDbCxuUX/h5/5tpJQcQr00yKp3dJMR+i9uG2vBw+OqMbG9WYtnfB28B7RX6el05odPUA 9PJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=p0qx4Aad; 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 n9-20020a05640205c900b0041cc318987fsi17661919edx.550.2022.04.26.06.08.30; Tue, 26 Apr 2022 06:09:07 -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=qcdkim header.b=p0qx4Aad; 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 S1349580AbiDZLpo (ORCPT + 67 others); Tue, 26 Apr 2022 07:45:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346071AbiDZLpn (ORCPT ); Tue, 26 Apr 2022 07:45:43 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31A393BA57 for ; Tue, 26 Apr 2022 04:42:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1650973355; x=1682509355; h=message-id:date:mime-version:subject:to:references:from: in-reply-to:content-transfer-encoding; bh=AeNSb0FKkbLoHTZHKt+yir9RlhqqMU/vKU5zgdB3ehw=; b=p0qx4AadMdqwnH9frtGjIWZAmQL587bfJNdE4JibVNPy5v1k9tWFpj6k Qnno0Q8woo34Yc1psAFwMHcSq+1qK56hLKmMLhpYLUntoMD5WRDz2Uo8j TsWzbHYB07qmu9uOQp2ToGXmHJX2oT/5/njfGd87horE85tn8uUBXq87G 0=; Received: from ironmsg08-lv.qualcomm.com ([10.47.202.152]) by alexa-out.qualcomm.com with ESMTP; 26 Apr 2022 04:42:35 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg08-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2022 04:42:34 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Tue, 26 Apr 2022 04:42:34 -0700 Received: from [10.50.24.135] (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.22; Tue, 26 Apr 2022 04:42:31 -0700 Message-ID: <9560c693-8dd5-ba68-69ca-dd3d213584e6@quicinc.com> Date: Tue, 26 Apr 2022 17:12:28 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [RFC PATCH] cfg80211: do some rework towards MLO link APIs Content-Language: en-CA To: Johannes Berg , References: <20220414145522.116716-1-johannes@sipsolutions.net> <6b40798e349d11e495a6df20ecba479a8357dad2.camel@sipsolutions.net> From: Vasanthakumar Thiagarajan In-Reply-To: <6b40798e349d11e495a6df20ecba479a8357dad2.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-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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/26/2022 12:46 PM, Johannes Berg wrote: >> > + if (internal_flags & NL80211_FLAG_MLO_VALID_LINK_ID) { >> > + struct nlattr *link_id = info->attrs[NL80211_ATTR_MLO_LINK_ID]; > > [...] >> > + /* non-MLO -> no link ID attribute accepted */ >> > + if (!wdev->valid_links && link_id) { >> >> Isn't that we hit this condition when adding the very first link to the >> MLD using NL80211_CMD_ADD_LINK? >> > > Oh, I don't think CMD_ADD_LINK would set NL80211_FLAG_MLO_VALID_LINK_ID, > that's just helper functionality for those commands that expect > everything to already be set up. got it, thanks! Vasanth