All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/4] Add AddressType property for Adapter1 and Device1 interfaces
@ 2017-12-13 13:51 Szymon Janc
  2017-12-13 13:51 ` [PATCH v2 2/4] adapter: Add support for AddressType property Szymon Janc
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Szymon Janc @ 2017-12-13 13:51 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Szymon Janc

This provides information about address type being used.  It is needed
for L2CAP sockets and PTS testing purposes.
---
 doc/adapter-api.txt | 12 ++++++++++++
 doc/device-api.txt  | 13 +++++++++++++
 2 files changed, 25 insertions(+)

diff --git a/doc/adapter-api.txt b/doc/adapter-api.txt
index d852aa6b9..0533b674a 100644
--- a/doc/adapter-api.txt
+++ b/doc/adapter-api.txt
@@ -149,6 +149,18 @@ Properties	string Address [readonly]
 
 			The Bluetooth device address.
 
+		string AddressType [readonly]
+
+			The Bluetooth  Address Type. For dual-mode and BR/EDR
+			only adapter this defaults to "public". Single mode LE
+			adapters may have either value. With privacy enabled
+			this contains type of Identity Address and not type of
+			address used for connection.
+
+			Possible values:
+				"public" - Public address
+				"random" - Random address
+
 		string Name [readonly]
 
 			The Bluetooth system name (pretty hostname).
diff --git a/doc/device-api.txt b/doc/device-api.txt
index 8b69c2ef3..1b448eef1 100644
--- a/doc/device-api.txt
+++ b/doc/device-api.txt
@@ -124,6 +124,19 @@ Properties	string Address [readonly]
 
 			The Bluetooth device address of the remote device.
 
+		string AddressType [readonly]
+
+			The Bluetooth device Address Type. For dual-mode and
+			BR/EDR only devices this defaults to "public". Single
+			mode LE devices may have either value. If remote device
+			uses privacy than before pairing this represents address
+			type used for connection and Identity Address after
+			pairing.
+
+			Possible values:
+				"public" - Public address
+				"random" - Random address
+
 		string Name [readonly, optional]
 
 			The Bluetooth remote name. This value can not be
-- 
2.14.3


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-12-19 12:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-13 13:51 [PATCH v2 1/4] Add AddressType property for Adapter1 and Device1 interfaces Szymon Janc
2017-12-13 13:51 ` [PATCH v2 2/4] adapter: Add support for AddressType property Szymon Janc
2017-12-13 13:51 ` [PATCH v2 3/4] device: " Szymon Janc
2017-12-13 13:51 ` [PATCH v2 4/4] client: Print Address type in show and info commands Szymon Janc
2017-12-19 12:00 ` [PATCH v2 1/4] Add AddressType property for Adapter1 and Device1 interfaces Szymon Janc

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.