Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp964230ybb; Wed, 25 Mar 2020 12:58:34 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsFWHlYjhP44nj7iODkzjXe5NwqaWozY5AOYMx72JcVmKHeorpIl+ByTduTzSBq0aBC4LKF X-Received: by 2002:aca:4c57:: with SMTP id z84mr3709990oia.53.1585166314099; Wed, 25 Mar 2020 12:58:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585166314; cv=none; d=google.com; s=arc-20160816; b=wsrLQrHuNynY6QZl94LfpN2vLmeqzIiMg/+cPHOXXn0rd7Sf0Ccg8CA8uWQA4zoe6R ZJAG7/DY/melQSwgdKJSUaCLm8sz+la2gGy1oURhc2ofoh7q0f0DpG1+y94XcB+oc4cE YsLvazsTqOPdHm/cx0fvbIi3Sqazdtd0ML852CarHNRHqAACAqdA4NLgCaqrTOoCCboy 6z8HuGPBgmuwbEe494ICq1+JeYGgfewbExLH7sK88S28xL/+jr1MBFih91dWtWU8Hy4S gNZ3YIbDUE+BXP+a2vMd70I89YNDDI0XJP1iqnTKN5xqO7TseBr9Aq6PrCSO8kyuwQlg aSHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=TuGwVlTCx8khSsmqVPtuimBG2AKGyIBdXFi7e91IgQI=; b=gN8rF7xYASvpQNB1yVP1vp0YeHClBvl1T/7T2hf3Spv3UxII5Z2tdm9Hhwac92EOHF XWUfhn3ToC0zaR/epCo2C9RcCvSKDPmpMiymnfEYLLor7xtg7ujat7FAtyiSafiJZtcN nhT2sBYFa6woKoCkI0X34iaVGjlL/i12RWN9Wzrjm5b+xe0VZW0T+fgCKmGqLwJ1uVyO AN0BUzpvqtZ4Edft/NyzYT3Lu5pUqs9oXFU0yrh29S3rjf3Dofjmkh82heCk47JbtWMw kSo2lM/lRPdTfkJFyQJCIWTB14Twx5TBQ99oHIA9rgbKB6XAtpd2rueCwwNaGJ3wVyf7 Np1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=h0IIxEc2; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id s4si1826792oom.84.2020.03.25.12.58.19; Wed, 25 Mar 2020 12:58:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=h0IIxEc2; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 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 S1727346AbgCYT5x (ORCPT + 99 others); Wed, 25 Mar 2020 15:57:53 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:38196 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727316AbgCYT5x (ORCPT ); Wed, 25 Mar 2020 15:57:53 -0400 Received: by mail-oi1-f196.google.com with SMTP id w2so3330853oic.5 for ; Wed, 25 Mar 2020 12:57:52 -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=TuGwVlTCx8khSsmqVPtuimBG2AKGyIBdXFi7e91IgQI=; b=h0IIxEc2hyytX0cdgXyWdXYfFthooa7EpMV3D8EGEQP2egnVIaWc6zs2zWS2vKyaeP 0laH8UCmA0KewEAdCWXgtRgqXWTlRWZjI8gNGgqlitTYyFvw1e/qiNe5HX/ipr5BNbnS JOUkcjvxp3rk3NsxyWTj6WoUt0WcfjqztIsg1uROH92yiP9JUpRtNt7aWyOs54M4451+ QVukEp/bUEk4Uzh2KFPXxp/rR7PQB5B8+nNvcvIO9TkC5x0EVB35dZv0cn/pVFz2iuPN goBaPpR2UYZlAh2IhoGl/CayfM9lgaaNtaW9w9HVgpYc9Ybj7MzTbYmtl9ol+rN/myGK n1SQ== 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=TuGwVlTCx8khSsmqVPtuimBG2AKGyIBdXFi7e91IgQI=; b=hqzru7uPoeNrtu7r4tFA/IbBozR+jMKCAQZGE0jwxG295VZW0uuQKWtiDGX2LYwXcX DASfGoqPNsrhfpAD+tnNpkMIBrc5iMYqbktVjbGfHiJT10b27B1lJECbmUtAPG+N3deS xhZ2CloQyVmcE5a7k7teMBPqSNAaXuo/90q7M7IosgbQiD8OYyfZ2zwbR8ognZhJVw8y IKkBsd8kpAy5fi61HksUjPXhUz3vdmyX9ewLlkVYYq1XaOjT+VcP68PclEZXoWz8DAKO qMpWD4GhsL34P1YioXmCOAVTlaoyW9pEj4q2JSM4ONc/YX4JR7MJz/HMUxsB+yzDG7AK ugoA== X-Gm-Message-State: ANhLgQ2Nnr/JCB67cBiYI0OSBXR61LVzniqHyHS0a33BndehvgzXQMpg STlbP7tnkSbLPn2aeSzk5uydp0OupCrHjqw4fSz33Q== X-Received: by 2002:aca:b602:: with SMTP id g2mr3649208oif.82.1585166272197; Wed, 25 Mar 2020 12:57:52 -0700 (PDT) MIME-Version: 1.0 References: <20200320015023.85896-1-abhishekpandit@chromium.org> <20200319185000.BlueZ.v4.1.Idb4f0444e40064a861ee73b098264abd30114aaa@changeid> In-Reply-To: <20200319185000.BlueZ.v4.1.Idb4f0444e40064a861ee73b098264abd30114aaa@changeid> From: Luiz Augusto von Dentz Date: Wed, 25 Mar 2020 12:57:40 -0700 Message-ID: Subject: Re: [BlueZ PATCH v4 1/5] mgmt: Update docs for Add Device To: Abhishek Pandit-Subedi Cc: Marcel Holtmann , Alain Michaud , ChromeOS Bluetooth Upstreaming , "linux-bluetooth@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Abhishek, On Thu, Mar 19, 2020 at 6:50 PM Abhishek Pandit-Subedi wrote: > > Update the docs for Add Device with information on flags mask and value. > Add information on the Wakeable flag that can be set to allow the device > to wake the system from suspend. > --- > > Changes in v4: > * Newly added support in Add Device for flags > > Changes in v3: None > Changes in v2: None > > doc/mgmt-api.txt | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/doc/mgmt-api.txt b/doc/mgmt-api.txt > index 27a41f334..e99c23710 100644 > --- a/doc/mgmt-api.txt > +++ b/doc/mgmt-api.txt > @@ -1997,6 +1997,8 @@ Add Device Command > Command Parameters: Address (6 Octets) > Address_Type (1 Octet) > Action (1 Octet) > + Flags Mask (1 Octet) > + Flags Value (1 Octet) > Return Parameters: Address (6 Octets) > Address_Type (1 Octet) > > @@ -2014,6 +2016,9 @@ Add Device Command > 1 Allow incoming connection > 2 Auto-connect remote device > > + The following flags are supported: > + 0x1 Wakeable > + Hmm I thought we would be adding another action, adding this as a flag is not backward compatible so the command will probably fail on older kernels. > With the Action 0, when the device is found, a new Device Found > event will be sent indicating this device is available. This > action is only valid for LE Public and LE Random address types. > @@ -2036,6 +2041,13 @@ Add Device Command > connectable setting is off. This acts as list of known trusted > devices. > > + To set flags on the device, first set the bit in the mask for the > + flag to set and then set or clear the bit in the value to indicate > + whether the flag should be set. > + > + The Wakeable flag controls whether this device can wake the system > + from suspend. > + > This command can be used when the controller is not powered and > all settings will be programmed once powered. > > -- > 2.25.1.696.g5e7596f4ac-goog > -- Luiz Augusto von Dentz