All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ] mgmt-api: Add new action to Add Device
Date: Tue,  2 Nov 2021 15:10:46 -0700	[thread overview]
Message-ID: <20211102221046.23293-1-luiz.dentz@gmail.com> (raw)

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

This adds a new action, Action 3, to Add Device command so it is
possible to set the Device Privacy Mode which allows to connect when the
remote device uses either identity or random address.

Since Network Privacy Mode is assumed to be the default Action 2 has
been updates to state that would be used when the device is using
privacy.
---
 doc/mgmt-api.txt | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/doc/mgmt-api.txt b/doc/mgmt-api.txt
index 97d33e30a..ea91155b0 100644
--- a/doc/mgmt-api.txt
+++ b/doc/mgmt-api.txt
@@ -2027,7 +2027,8 @@ Add Device Command
 	Possible values for the Action parameter:
 		0	Background scan for device
 		1	Allow incoming connection
-		2	Auto-connect remote device
+		2	Auto-connect remote devices using Network Privacy Mode
+		3	Auto-connect remote devices using Device Privacy Mode
 
 	With the Action 0, when the device is found, a new Device Found
 	event will be sent indicating this device is available. This
@@ -2041,7 +2042,12 @@ Add Device Command
 
 	With the Action 2, when the device is found, it will be connected
 	and if successful a Device Connected event will be sent. This
-	action is only valid for LE Public and LE Random address types.
+	action is only valid for LE Public and LE Random address types using
+	Network Privacy Mode.
+
+	With the Action 3, works like Action 2 but instead uses Device Privacy
+	Mode for devices using LE Random address which allows the use of both
+	random and identity addresses.
 
 	When a device is blocked using Block Device command, then it is
 	valid to add the device here, but all actions will be ignored
-- 
2.31.1


             reply	other threads:[~2021-11-02 22:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-02 22:10 Luiz Augusto von Dentz [this message]
2021-11-02 22:36 ` [BlueZ] mgmt-api: Add new action to Add Device bluez.test.bot
2021-11-10 18:38 ` bluez.test.bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211102221046.23293-1-luiz.dentz@gmail.com \
    --to=luiz.dentz@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.