Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp691144pxx; Wed, 28 Oct 2020 14:38:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9z/hdCsF2wzPR5jCsx1TqvKkMGK999IO85gh159FkkDdpXgpwMuKc4imTC1Z7owiKsnH3 X-Received: by 2002:aa7:dcc7:: with SMTP id w7mr988396edu.80.1603921097015; Wed, 28 Oct 2020 14:38:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603921097; cv=none; d=google.com; s=arc-20160816; b=tOdPx1ZE0sr3/qOvvrZVQjdT3xly05pvl2OdpnLj4d3deT3919a45X8NkJjXVFuFQr djjtJbRGgY3OJzV2+fPhsZOb3cDVLwzEvEs4F7lWE5Nf0HPuMaFgY+C6OpxrWX8vaXPw VQRQMWsaqUMZW85U9iTZcuy9AeQ7KPw6T02NCjK9QaxiVjI/VYpKu7VeIo2M1B4PeLS4 gt/NM9v6DgYuiJ6SB3Z20vwsfdaSNbvFwjRslveZ6NLw57IAT0678loOvkbhqwP5zQdB 4b3vdDl1D1B6o5DsvApb4uiOrcfdOHNbqgvCj1quSKs10y4/jhO0WVZC+/amZDYxJANx RHJg== 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=1mVrifiS7V7HQK+JbsLwridxi+OaBHNcnonmncxzcag=; b=Kn4vmgSt7X/UFQ0VGzYVGq7BfJfBc9kWiGAFzxP6na++xv3WnInbdAoKiYQ8f19lgH /Nvt8E1IJxy49UibD/AqJMKI0A3zykSZEsn9hqKe0u6B2ps9sRzs2GSIF5+2VLYyjxFo k8q2mDvWxItUDLR2plgLV3EYHhBzzCWuITmKMXIZUkQHSUbILC4Be/ZlMvPfOJ+t0v1S oQl6PeF0SIosmPi0QZaRsUKWIY2ZlTSRqUjcWO8LmPZSf0x9dM0eddfmLVqmSgYOVd0c zojqDbmxKplIyQSAI/b9X1RpFx51tNc3s7vMoGkpqTahkTkWDAVGI3VgRjJRzIs2CGEJ UnGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qY5NFL6W; 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 d4si607873edo.178.2020.10.28.14.37.53; Wed, 28 Oct 2020 14:38:17 -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=qY5NFL6W; 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 S374723AbgJ0V7v (ORCPT + 99 others); Tue, 27 Oct 2020 17:59:51 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:43535 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S374722AbgJ0V7u (ORCPT ); Tue, 27 Oct 2020 17:59:50 -0400 Received: by mail-oi1-f196.google.com with SMTP id x203so2893998oia.10 for ; Tue, 27 Oct 2020 14:59:49 -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=1mVrifiS7V7HQK+JbsLwridxi+OaBHNcnonmncxzcag=; b=qY5NFL6WCNg8DdkKHytUoUCvU2uqmNwkNmhgMujC98Zfq/NSYbx58DTGlBYCU8q+iU JuwAU2444WEpN9ByYS+kw/eRTjWxAwaKzH96rk2Y6I9Up04bzzRmq37+fW7tdtS/k5jn QtOD4B/7mBC1E/EBLO6bEbklJKr8fjZtCVGu15DT5GZnwFTbAkqkwPgR67If/J/2NVww d+PiuhczsiReDTsgz76w//d63Xo/w66Ux/u2g9EmRy7tMs29Ha/rF4D0aLCwPwnkLca1 apgni60943H417004Pz/jEbuJed2ddMz2redLIU92m5tuExYh8MFddyHnW3LRVsB88J6 Ef3Q== 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=1mVrifiS7V7HQK+JbsLwridxi+OaBHNcnonmncxzcag=; b=tpDOIBem0zLx1Z5y0sjwZ4t226Pj98eD1oUJipvohPjvN7iWHvHwX2+LdzLU3fmbHl lWExgM731MTCmGQ2TA/LOXwnmf+IlqrM7GJHoCRnoShVPbY8j5XBC17CnZd6UljCDPx/ N2cWXp1H558NhVHRchVNfQjGHmOCXxAMvkYb+LCw3HXAWqcxk0LGdZ0G6oHlYtalU0Ad FDlX7atzcZFmgoXFPXjwiA4WVv5YpqwL1YBJYAyDCDcoPaa3f0XhWdOQR+LRjPow+z9P P0nM3BpBKukRaXsOe0wQiIiuwsAO8kAqpZ7hLaESLykvfv/IY3hFUZ6a9K8+rpaaVxhC n3tw== X-Gm-Message-State: AOAM530sBH4KS51mhq7p2d1TaC5QyEvkVwqkFRNCgV7nbq8cogFCvqH3 2F38Yut+iP2cxCfPfOsrMWXRYGcHEf5r9AGV8wo= X-Received: by 2002:aca:518a:: with SMTP id f132mr2865351oib.161.1603835989451; Tue, 27 Oct 2020 14:59:49 -0700 (PDT) MIME-Version: 1.0 References: <20201001230152.2422908-1-danielwinkler@google.com> <20201001155738.Bluez.v4.1.Ifaa96e71a871158e5d9d454073b2b6846eae339f@changeid> In-Reply-To: <20201001155738.Bluez.v4.1.Ifaa96e71a871158e5d9d454073b2b6846eae339f@changeid> From: Luiz Augusto von Dentz Date: Tue, 27 Oct 2020 14:59:38 -0700 Message-ID: Subject: Re: [Bluez PATCH v4 01/10] doc/advertising-api: update API with new interface To: Daniel Winkler Cc: Luiz Augusto Von Dentz , "linux-bluetooth@vger.kernel.org" , ChromeOS Bluetooth Upstreaming , Sonny Sasaka , Alain Michaud Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Daniel, On Thu, Oct 1, 2020 at 4:07 PM Daniel Winkler wrote: > > This updates the advertising documentation to include the following > features: > > LE Advertising Manager: > - New SupportedCapabilities property > > LE Advertisement: > - New min/max interval properties > - New tx power property > > Reviewed-by: Sonny Sasaka > Reviewed-by: Alain Michaud > --- > > Changes in v4: None > Changes in v3: None > Changes in v2: None > > doc/advertising-api.txt | 50 +++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 50 insertions(+) > > diff --git a/doc/advertising-api.txt b/doc/advertising-api.txt > index b0565eab2..3215a52f7 100644 > --- a/doc/advertising-api.txt > +++ b/doc/advertising-api.txt > @@ -138,6 +138,33 @@ Properties string Type > "2M" > "Coded" > > + uint32 MinInterval > + > + Minimum advertising interval to be used by the > + advertising set, in .625 millisecond slots. > + Time = N * .625 ms, where N has range > + [0x000020, 0xFFFFFF]. If the provided MinInterval is > + larger than the provided MaxInterval, the registration > + will return failure. > + > + uint32 MaxInterval > + > + Maximum advertising interval to be used by the > + advertising set, in .625 millisecond slots. > + Time = N * .625 ms, where N has range > + [0x000020, 0xFFFFFF]. If the provided MinInterval is > + larger than the provided MaxInterval, the registration > + will return failure. > + > + int16 TxPower > + > + Requested transmission power of this advertising set. > + The provided value is used only if the "CanSetTxPower" > + feature is enabled on the Advertising Manager. The > + provided value must be in range [-127 to +20], where > + units are in dBm. > + > + > LE Advertising Manager hierarchy > ================================ > > @@ -209,3 +236,26 @@ Properties byte ActiveInstances > Possible values: "1M" > "2M" > "Coded" > + > + dict SupportedCapabilities > + > + Enumerates Advertising-related controller capabilities > + useful to the client. > + > + Possible Values: > + > + byte MaxAdvLen > + > + Max advertising data length > + > + byte MaxScnRspLen > + > + Max advertising scan response length > + > + int16 MinTxPower > + > + Min advertising tx power (dBm) > + > + int16 MaxTxPower > + > + Max advertising tx power (dBm) > -- > 2.28.0.709.gb0816b6eb0-goog Please mark these as experimental for now, other than that it looks good to me. -- Luiz Augusto von Dentz