summaryrefslogtreecommitdiff
path: root/lib/bluetooth.h
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2012-04-24 22:42:25 -0300
committerJohan Hedberg <johan.hedberg@intel.com>2012-04-25 12:54:17 +0300
commitba801fcd67e4fa5169e8c8b73fd87b6c08fca335 (patch)
tree9940716139d6491a3a74600d87a4a74fc8a08e21 /lib/bluetooth.h
parent7fa62589d025fcd438f1bf5af0c7fe53aaed3775 (diff)
downloadbluez-ba801fcd67e4fa5169e8c8b73fd87b6c08fca335.tar.gz
Add Bluetooth address type in sockaddr_l2
This patch adds the address type information to sockaddr_l2 structure, allowing the userspace to inform the remote address type required for LE Create Connection command.
Diffstat (limited to 'lib/bluetooth.h')
-rw-r--r--lib/bluetooth.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/bluetooth.h b/lib/bluetooth.h
index 0541842ac..0fc4508a8 100644
--- a/lib/bluetooth.h
+++ b/lib/bluetooth.h
@@ -222,6 +222,11 @@ typedef struct {
uint8_t b[6];
} __attribute__((packed)) bdaddr_t;
+/* BD Address type */
+#define BDADDR_BREDR 0x00
+#define BDADDR_LE_PUBLIC 0x01
+#define BDADDR_LE_RANDOM 0x02
+
#define BDADDR_ANY (&(bdaddr_t) {{0, 0, 0, 0, 0, 0}})
#define BDADDR_ALL (&(bdaddr_t) {{0xff, 0xff, 0xff, 0xff, 0xff, 0xff}})
#define BDADDR_LOCAL (&(bdaddr_t) {{0, 0, 0, 0xff, 0xff, 0xff}})