Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2116494iob; Thu, 5 May 2022 16:19:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHfEqBYdBdeF8BsABNkjf6KAWLEX1WNk1S1BDVZqPTUIwIjrk0zFVBEpSzS/Rpf0oxt+Ne X-Received: by 2002:a05:6a00:8c5:b0:510:6eae:6fa1 with SMTP id s5-20020a056a0008c500b005106eae6fa1mr700647pfu.12.1651792754007; Thu, 05 May 2022 16:19:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651792754; cv=none; d=google.com; s=arc-20160816; b=frScdryCjDdFRrsguN177RThbxMypWc0v6UM7qjdiILJ1OUy6I1YA0T/eWysoMBdwb u19wHm5BI0rzdl231hh30MifjGdiAKyHFGICx1T8vrMcnRHojN403hnuRNJTLQHhUWaA 6W5IwywzMkTrCB80qFUvVqe5FLoNeNCuVERWfM6/t+F6pKqwzyU26skaxK0bz2/nlo4q 1V33hbkB5kUSgBvjjTi7Y3L4rDTTSa1TuOPLpOSqvaEaYvokKoKcNgaAZHy3PChwGm8+ 49sy3vWNUiyN/GwrEOD4nN1Ydc/yakVKnLeM4vj2I7VUoSh25g1TbQsEpKbY7pJUM3xF ohFg== 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=044pzmwxAR3y+/KzOPhRhKK0eTluR8LsFQbWCyRY/Ko=; b=JXRQ3UG19qmgqFFAEdPpUHN1m1VeP0rSosKXgUzs+Hyt29e2ndBT8KBvyhSAN6pY2D dS4Jxvsj1HafvJupwrAOXsPJcXN2WpSSuh9UeSBD+zxJCKVQiOyrxGTSIAtZ2bp/AMgO JJbI7jIJlGoGuhUw69FQOpHkU/ryX6T8tmRS2VCKZUlkoBCu5uSV6oSuxXQd2L+50goy DAPX7dbJRJ7xoLZnzaGSOuplaYs7XDcgVklcgFEV9ZuAuUnfbgt6jpk9SkFF7QgyXdrr y+t+vWkLmtKkDxE58R15n6EP4IkNuVpT3gsZ+QG6Wpnfv/uf7A0WGCxQgwQPO+ePspM/ zYjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Oy0aOUxn; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s10-20020a170902a50a00b0015eb08a719csi377374plq.512.2022.05.05.16.18.56; Thu, 05 May 2022 16:19:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-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=@gmail.com header.s=20210112 header.b=Oy0aOUxn; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S244364AbiEDWML (ORCPT + 99 others); Wed, 4 May 2022 18:12:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239494AbiEDWMK (ORCPT ); Wed, 4 May 2022 18:12:10 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9F0B11A30 for ; Wed, 4 May 2022 15:08:31 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id c11so2676848plg.13 for ; Wed, 04 May 2022 15:08:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=044pzmwxAR3y+/KzOPhRhKK0eTluR8LsFQbWCyRY/Ko=; b=Oy0aOUxnvACHXJsLHyFx4FDU+tBqzOu/QhnEgZhQVQeScaUs9AAQtq8Qq+M3rwPQ4c EVE1HSorDCwxNsE8QtlsXTV+48qw+3O6IXLBJGeHdYCdrNENiFcu9EhKj/++lgJpH8hA e//8FGTZWMs4BCPu7nJmvUviS1i+9Bt0kUp9rXZX4DZks8tFzWHUKYCpjbwtTxw3p3B0 XVdoJw0fFCr3NzSfRIL3T4k16+VdF9MUzwbbxYS4dB8W8hsgyfrwnWhal1CwdSHthpuB uFQqMTMhKoq71gavqwUvy6VFHoSjOJiEBuUUgKa/uJN+8XLR+wNPm/R6l0xWio9oOXRU kChQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=044pzmwxAR3y+/KzOPhRhKK0eTluR8LsFQbWCyRY/Ko=; b=esbmnFAGyraqyGoKnZrquN2TU5CC7mGya+K+eOFdboBmwH+lvONxYvoymSjTZ2NbcY 3M12/N2qZs90trjfcUnPj3h768PnBEy0HqQDKlHgkIP/JiIgnvwxCv3Cz97QLmKRBnFO gf2kNn+ChogtVxIdG/YGPCQrUpJv4uM2ewO+FNL2DnjkqpctUKjMp5dFHhvOC7/iMbCE T6feoZ09uvdqbfOEbrwhGAMvxpRlbB/mdzIlWCqr78M66v/wjqE+YIkT5ceQlvZpuchb R82xXhddGQsaS5csjoHohhb7bwY2GHPZovtOikfwrGhCHMD7fGQqO9z9XIIt0GkI4fLr EY2Q== X-Gm-Message-State: AOAM531553Xen3dUlANOKCnYQ7jSF3Gmp7knZGop1n3hyDQOjV1r1Onj ad9Gi2TDKLotKBxjA884PXcZvqou9saT8cA5Vmo= X-Received: by 2002:a17:902:ecc7:b0:15e:8685:77d with SMTP id a7-20020a170902ecc700b0015e8685077dmr24545265plh.20.1651702111442; Wed, 04 May 2022 15:08:31 -0700 (PDT) MIME-Version: 1.0 References: <20220504210948.2968827-1-jiangzp@google.com> <20220504140940.Bluez.v3.2.I52f3efc7576fd0048437f1419dd2e1e687f7ac65@changeid> <6792e558daf326716ac0ac87867367cd91da3b45.camel@hadess.net> In-Reply-To: From: Luiz Augusto von Dentz Date: Wed, 4 May 2022 15:08:19 -0700 Message-ID: Subject: Re: [Bluez PATCH v3 2/3] doc: add "Bonded" flag to dbus property To: Zhengping Jiang Cc: Bastien Nocera , "linux-bluetooth@vger.kernel.org" , ChromeOS Bluetooth Upstreaming , Sonny Sasaka , Yun-Hao Chung Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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-bluetooth@vger.kernel.org Hi Zhengping, On Wed, May 4, 2022 at 3:04 PM Zhengping Jiang wrote: > > Hi Bastien, > > To avoid confusion, I would propose to update the description to "key information". > > Indicates if the remote device is bonded. Bonded means > the key information created from the pairing process > has been stored. > > Thanks, > Zhengping > Ive changed it a little bit: https://gist.github.com/Vudentz/ca59d846b4ff840e2ee4c01f6965def6 > On Wed, May 4, 2022 at 2:47 PM Zhengping Jiang wrote: >> >> Hi Bastien, >> >> Thanks for the comment. They are not the same for Classic. "Bonded" means the key information is persistent for both LE and classic. >> For classic the stored information is "Link key" for LE it will be "LTK". But I think if a device has both classic and LE, the two types of keys can be converted. >> >> Thanks, >> Zhengping >> >> >> On Wed, May 4, 2022 at 2:37 PM Bastien Nocera wrote: >>> >>> On Wed, 2022-05-04 at 14:09 -0700, Zhengping Jiang wrote: >>> > Bonded flag is used to indicate the link key or ltk of the remote >>> > device has been stored. >>> > >>> > Reviewed-by: Sonny Sasaka >>> > Reviewed-by: Yun-Hao Chung >>> > >>> > Signed-off-by: Zhengping Jiang >>> > --- >>> > >>> > Changes in v3: >>> > - Move documentation update to a separate patch >>> > - Add description to bonded and paired >>> > >>> > doc/device-api.txt | 12 +++++++++++- >>> > 1 file changed, 11 insertions(+), 1 deletion(-) >>> > >>> > diff --git a/doc/device-api.txt b/doc/device-api.txt >>> > index 1e8590b27d58..c7e217c07526 100644 >>> > --- a/doc/device-api.txt >>> > +++ b/doc/device-api.txt >>> > @@ -246,7 +246,17 @@ Properties string Address [readonly] >>> > >>> > boolean Paired [readonly] >>> > >>> > - Indicates if the remote device is paired. >>> > + Indicates if the remote device is paired. Pairing is >>> > + the process where devices exchange the information to >>> > + establish an encrypted connection. >>> > + >>> > + boolean Bonded [readonly] >>> > + >>> > + Indicates if the remote device is bonded. Bonded means >>> > + the link key or the ltk from the pairing process has >>> > + been stored. >>> >>> "long-term key (LTK)" >>> >>> Is Paired effectively the same as Bonded for Classic devices? If so, >>> would be great to mention. >>> >>> > + A PropertiesChanged signal indicate changes to this >>> > + status. >>> > >>> > boolean Connected [readonly] >>> > >>> -- Luiz Augusto von Dentz