Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp10356pxj; Fri, 7 May 2021 02:28:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwU0MDviqd14t67YSPga1O8emKzPrHv8DNBGiBhZcXU3KLw3QY5G2B0qF9dD3KYl4jj7gxV X-Received: by 2002:a17:906:3c51:: with SMTP id i17mr3139363ejg.314.1620379720622; Fri, 07 May 2021 02:28:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620379720; cv=none; d=google.com; s=arc-20160816; b=RBdGXAY/fRV4GzVjmnskTIo+rztNQJ4Yae0b1gktPn8i+ZsEzaFG62MoB3cPrLtobz oSiKAJuv+tRMuP8jaVoBWOnQOUoad9hfOwREimog7lHgRbGi26GINDm1nPBfnyMm4Xqj OYNhnxU/EJ2n+RaKbX2Dn6a7CFN+cjtoApcXpKwKyVVfC7ZlMazTNRsKEcx1htusbXXn +Qiw7Pr2UUHgd8TCunQvIa+Hfgp5wDKLmtIfAaNhizc44sbUQ0IyGKlW/T5B085gXK/9 6BRiE2/GsbFKwdZ2maf8xYF28zRpdG96JK05P35YoiS0QQe//8YNdi/9OE8hCBMdVxw9 NKgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=zOKf6NuC2suv2AVSEtbAV1FzmHG0QF1RRjjOHa+ULUs=; b=ZWzVAKvHRPq4iQb8xhsW4mWUKKYhJf1TfQ+aEov6QbaL2oYWYsNylO0D8pjfySCKO2 yM4DMa+I1dqMLxuvAGEGaK/SzmQISip19KcU+DR8ROPYGnWaCGwCqQxSooaS8C6XFpmv Ju+GMOhqhpAGw7LwdIh+I2HH7rpViFeP0WKycs49JwslJJmcDh/SGkC/7EYOVq9PGFDm UKo0xJNzDPGTKjVnjyLgshuHVi5dt89UF4xJT14IpMIFWYunhj07sXsKCJ0kudvV20OR VIaqI5FqGQWMAvwfmWdPFsIfJXg00v/Iz0JrDowQV0MigXWJKZN2rXVuiYJbqWCANjmA 8f4w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nc18si4542772ejc.435.2021.05.07.02.28.16; Fri, 07 May 2021 02:28:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236175AbhEGI1H convert rfc822-to-8bit (ORCPT + 99 others); Fri, 7 May 2021 04:27:07 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:60833 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234463AbhEGI1H (ORCPT ); Fri, 7 May 2021 04:27:07 -0400 Received: from smtpclient.apple (p4fefc624.dip0.t-ipconnect.de [79.239.198.36]) by mail.holtmann.org (Postfix) with ESMTPSA id E79B0CECDB; Fri, 7 May 2021 10:33:57 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.80.0.2.43\)) Subject: Re: [Bluez PATCH v2] btmgmt: Fix enable adding irk when turining privacy on From: Marcel Holtmann In-Reply-To: Date: Fri, 7 May 2021 10:26:06 +0200 Cc: Sathish Narasimman , "linux-bluetooth@vger.kernel.org" , Chethan T N , "Srivatsa, Ravishankar" Content-Transfer-Encoding: 8BIT Message-Id: References: <20210504111454.29697-1-sathish.narasimman@intel.com> To: Luiz Augusto von Dentz X-Mailer: Apple Mail (2.3654.80.0.2.43) Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Luiz, >> Unable to add the IRK in btmgmt when need to be updated. The option is >> enabled now. >> >> Signed-off-by: Sathish Narasimman >> --- >> tools/btmgmt.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/tools/btmgmt.c b/tools/btmgmt.c >> index 02fec1dca184..bf3b460d0f04 100644 >> --- a/tools/btmgmt.c >> +++ b/tools/btmgmt.c >> @@ -5277,7 +5277,7 @@ static const struct bt_shell_menu main_menu = { >> cmd_advertising, "Toggle LE advertising", }, >> { "bredr", "", >> cmd_bredr, "Toggle BR/EDR support", }, >> - { "privacy", "", >> + { "privacy", " [irk]", >> cmd_privacy, "Toggle privacy support" }, > > I wonder why you didn't incorporate in the first parameter though > given that things like privacy off [irk] makes no send, or perhaps > have a dedicated command for setting the irk so it would persist > between privacy on/off. that is not how the kernel API works. If you want to enable Privacy, you need to also provide the IRK. We just simplified the tool to use /dev/urandom in case it is not provided. Regards Marcel