Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp161761ybb; Thu, 19 Mar 2020 18:52:35 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsKWrTNIKGW1Dj+zZEYvwXn2fipHEbtPnTpzDxp4KSTcdygvj2wRFkpCceZxeNmkjD5yH78 X-Received: by 2002:a9d:2aca:: with SMTP id e68mr4926270otb.324.1584669155510; Thu, 19 Mar 2020 18:52:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584669155; cv=none; d=google.com; s=arc-20160816; b=tlLjeMzSSgXy2c3JK6t3cYE8WSGrEADvmUttn+fB5gWdJzmmD37hu96GZIxpjZYD/n pRk2kzaaJS6lNVlWCRIQE4Hx/zGKAjQc5is1MIDpHhUW3c6IvDfyMaTQZIaSfMPcetM0 +Ub32YIpc3j311CU2ExaQ7f+og+NdAzirizPYT51bEUdWhA+gOwc5fGKFDDePCo506FA gjPnwcrxge4yiCy7TofURCTOuPYz86n+RvzHGqtTeGWn92x8ZdVIUo33kv7gelRSFl+E TobBDw2sRkPb8mbHphvR0b8h+f0sDwq/e8Ou37hMemMqyP5ODqg9NxYU6TVR5hGn5X0b PWaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=beFEUX3MbwzmugTexHZnvU+XdMz+mzb4XXeBdaJB39E=; b=q5AC8KNGG+UBv/ArFV1BZqbUzQOcW9WZogb4yHneTrEnGf+xyHyvkFaQDelbEyk5tW /urQWKHjsDCDDyzN3H+s3Duhjh63aQ7uGDB6Je/UkV9EUeQWwBY9aXC26KS1keBRDi/6 yfMakODvHLkC62b7UpxcM1DbWZqMAxrYAC4x5dhuYnLg07YUmRxLuGU7DKPzGGzHC3mQ 4H+Y7okzpWKJhSPNGywk2NJ3U+JVCBfamLxtvqm2wtLfPz8VlVVnF8ofwbBIhmU7xP++ ahKpYkaO+ndqGZgOL0E9xI6F4eMnBgxoj1EgBOLUoL4pzglQglAZT1JJj4d7szoyUjem Q6Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=i2YOhPJE; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f6si2215028otq.50.2020.03.19.18.52.24; Thu, 19 Mar 2020 18:52:35 -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=@chromium.org header.s=google header.b=i2YOhPJE; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727354AbgCTBu3 (ORCPT + 99 others); Thu, 19 Mar 2020 21:50:29 -0400 Received: from mail-pj1-f52.google.com ([209.85.216.52]:55691 "EHLO mail-pj1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727192AbgCTBu2 (ORCPT ); Thu, 19 Mar 2020 21:50:28 -0400 Received: by mail-pj1-f52.google.com with SMTP id mj6so1796150pjb.5 for ; Thu, 19 Mar 2020 18:50:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=beFEUX3MbwzmugTexHZnvU+XdMz+mzb4XXeBdaJB39E=; b=i2YOhPJE9siKggAcr8H/1YLv79EjoGFtKimBVMVU5pcwCRY0FfFer/syc8FaPfFeKt k6HEydiXK546y8MVTlc5MUT+Ftgwgao6jdrzCSS2ySALPceUi297P71sMJn7z1XgCXus EP/34Kg3hJEJFlQZh2fA/dM3Z59Ottf6JS2bk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=beFEUX3MbwzmugTexHZnvU+XdMz+mzb4XXeBdaJB39E=; b=kzF9oGuZMsGBH6WZBqxByboCU2/Db9BwSeGvNX396EeGN3xl97LVK11QMj1iahOIDW a37XtDB5MKkD5Xp081EP9wd7aEStIM2rEfhg48EMqciKfP5321TBTpVI5vMzMkI2XUYO 2ABjAq+5X4BvjfDLkJAFJBG3m3Rkh7cidVjU5j7vi1OVhfKMcT4WcEMYLZ1GGgoyH0Dy ITJuSXYh0manxdZkUMHYx4f4FkO5eTbT9ZV9TV5/tCv3JjIIfxYY4UPHXGO1zl/3zC9f hspeA3NlQI6uvNFpgSWoXiNR/BvL+jrXewpdhFnNzYdCeEoDT40pyWpOeGATJkOkoC/5 fJXw== X-Gm-Message-State: ANhLgQ3O15uAVWK0VDhnNCoxsF8mCWS3mHcY8C8zDvULXiY8E11cE5ui Te/FcblD+888KjFqdvV80MjYjQ== X-Received: by 2002:a17:902:7c8e:: with SMTP id y14mr5881754pll.139.1584669027543; Thu, 19 Mar 2020 18:50:27 -0700 (PDT) Received: from apsdesk.mtv.corp.google.com ([2620:15c:202:1:e09a:8d06:a338:aafb]) by smtp.gmail.com with ESMTPSA id 136sm3410485pgh.26.2020.03.19.18.50.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Mar 2020 18:50:27 -0700 (PDT) From: Abhishek Pandit-Subedi To: luiz.dentz@gmail.com, marcel@holtmann.org Cc: alainm@chromium.org, chromeos-bluetooth-upstreaming@chromium.org, linux-bluetooth@vger.kernel.org, Abhishek Pandit-Subedi Subject: [BlueZ PATCH v4 1/5] mgmt: Update docs for Add Device Date: Thu, 19 Mar 2020 18:50:19 -0700 Message-Id: <20200319185000.BlueZ.v4.1.Idb4f0444e40064a861ee73b098264abd30114aaa@changeid> X-Mailer: git-send-email 2.25.1.696.g5e7596f4ac-goog In-Reply-To: <20200320015023.85896-1-abhishekpandit@chromium.org> References: <20200320015023.85896-1-abhishekpandit@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org 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 + 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