Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp3828092pxy; Tue, 4 May 2021 10:48:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/noSS+YKQHByh8xlcZ361ZS6yPsR6S5ZcghcOEWnCDHHdWOFs/qNguSU3B2eTuT2kBlhh X-Received: by 2002:a17:906:f8d9:: with SMTP id lh25mr23278907ejb.88.1620150509987; Tue, 04 May 2021 10:48:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620150509; cv=none; d=google.com; s=arc-20160816; b=mBfrMFYjU2leHm65DMRs2YuEo0s7Mq1A+zb8/qAru3AFiZQqQtFZq7Uo56dcSNzQdH 8yG9niGtZDXnHvmgLb7l/nThzT+TI8QR6L5bVpwELxp1qcufShST/OhNyqfCFJpIfwhX pG6WnGMugy3cuMYGeB4cxyYLXqL390An2h9irPjbv6jQpKZKuCl/fNN9nwm9j9s8NxvR AbhJsKeG2Nk0X7m6wcdErNS7tYnFzkE2NnyXFjoZTGN9+cmlvotnZ2mWeMAgM1kN05K0 RSvGkA1J7z0HGMc7Wj9x8yJx55B40gvv9Kq7yvdsUHe+XGj3F5kXaw/ku6iQBal8myl7 wWzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=u9ky2l6v3+xWMtzmEy0YX54RrNOCdS+5KFj5NYNL8Eo=; b=q/S/dzsdu1Gd2Neufhlnf8bBYxJcblntHGuAxEOSIkJyHMn6G2iO2+ZNH2Pt2Vm5/X fFKfs/HKkqhDuuNac41pmtn5/pQ/JSqz/xTO7ExPSJAL9cuvMNni2u82wmWT2G8KI8OA fG2onIO6OFTCvx75wPg+gGmEsSXfegsoa7iQW5gfuVNHuigECYjp8bjBXl8QEYIHsBkQ 5MaeRw6ugVVYFeFd3UZijGFtbY3SoSpLTHPW6OuchXS1C1cRLjtOapCJnHjsrFbV1ZB2 OJfBlivxkWMp0/4Oe+gYwEYz/SILUYSWnJJZ2zO/rrUDL2nMMDyTaBPRgqgbP4Q9LmDJ BJIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=m1C+KSzu; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sb9si3597180ejb.615.2021.05.04.10.47.49; Tue, 04 May 2021 10:48:29 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=m1C+KSzu; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231211AbhEDRoh (ORCPT + 99 others); Tue, 4 May 2021 13:44:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230425AbhEDRog (ORCPT ); Tue, 4 May 2021 13:44:36 -0400 Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4FE9C061574 for ; Tue, 4 May 2021 10:43:41 -0700 (PDT) Received: by mail-yb1-xb2d.google.com with SMTP id l7so13245010ybf.8 for ; Tue, 04 May 2021 10:43:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=u9ky2l6v3+xWMtzmEy0YX54RrNOCdS+5KFj5NYNL8Eo=; b=m1C+KSzul/ClcnJgFlvLwlSFLKy8Ho7TBmNGnmkqAVbXlD0eEio7+gQ21uDVOQToxJ NXe3xvp/0S4WdvckgtlAIcmaiKflePfOhaVpaRt0Z+UjxEp7dRN3Ez7EOm1lYl+lMBYV NfXsvvbLgfmY5gdyoF90mKnepsWXvaDImSuKJaluitCfFrTML7R7BQQJv3IlzjTItQbb LwTqPa9pB11ToIwB3UUAg/iZFZwdCV5A0wqM5FVwi1Aj5yPtFYzP+zlwzPcKkhkNwKaG qIUaHT9x3N/sPzTZ44CTmv1SdecfY7vAUlZ1FG7c7vyFMtk0/LGv3n71yZS4lPSnlr3s K69A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=u9ky2l6v3+xWMtzmEy0YX54RrNOCdS+5KFj5NYNL8Eo=; b=bLIwTA6T3bl+UeeH/dCspf/olw19MOcep9iUkjIpdX+sYOkqGfWOyJEqQRhOd2jc1h Z/sHuHe/wDVQrl+jH4hftA9oUl6KfNbn7guTiC5Xp3703CriLS0HUG4eOZOapwX2V6zu IQmeXdppnrHER9klvLH0/kYnC/9iuTiNnVH3dUwnIy/+Wt0M2ST9QqOaQGMTGc5/Tcpy 3c7ZdC1Iod4saC3amWoT+k5vadXxnE8zFcvd/s6yKWp5d+hDYS7EaboSfMYLALIe0XQg 0A548SiPSo1jbQ90WH1L0cc08cCiSj4D/nEWjNWhLLPQrUovEeUeyV+ELDQ8+Hy+c+5W VvTA== X-Gm-Message-State: AOAM533ksUZFL+Vs8772Lmquyvq7cUuF75jd1LasiiFp/jgzITNW/o72 M0cGeMpD9HyE/UmJeXRhdPY3y+WVCa408Vsj5eM= X-Received: by 2002:a25:ac94:: with SMTP id x20mr694975ybi.432.1620150221130; Tue, 04 May 2021 10:43:41 -0700 (PDT) MIME-Version: 1.0 References: <20210504111454.29697-1-sathish.narasimman@intel.com> In-Reply-To: <20210504111454.29697-1-sathish.narasimman@intel.com> From: Luiz Augusto von Dentz Date: Tue, 4 May 2021 10:43:30 -0700 Message-ID: Subject: Re: [Bluez PATCH v2] btmgmt: Fix enable adding irk when turining privacy on To: Sathish Narasimman Cc: "linux-bluetooth@vger.kernel.org" , Chethan T N , "Srivatsa, Ravishankar" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Sathish, On Tue, May 4, 2021 at 4:09 AM Sathish Narasimman wrote: > > 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. > { "class", " ", > cmd_class, "Set device major/minor class" }, > -- > 2.17.1 > -- Luiz Augusto von Dentz