summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-11-03 17:26:30 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-11-09 14:45:51 -0800
commit37be50d6793eaf6cfbc72b7dd69e3d57b468db2c (patch)
tree9f346b3023b37e67ab3b8ef7b458d643d24fd4c9 /lib
parent20adf23209c8848fe60742eeedcb714bf92eec2e (diff)
downloadbluez-37be50d6793eaf6cfbc72b7dd69e3d57b468db2c.tar.gz
adapter: Set Device Privacy Mode
This adds support for setting Device Privacy flag when enabled in main.conf via Privacy = device,limited-device.
Diffstat (limited to 'lib')
-rw-r--r--lib/mgmt.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/mgmt.h b/lib/mgmt.h
index 0d1678f01..400167e9b 100644
--- a/lib/mgmt.h
+++ b/lib/mgmt.h
@@ -665,7 +665,8 @@ struct mgmt_rp_get_device_flags {
uint32_t current_flags;
} __packed;
-#define DEVICE_FLAG_REMOTE_WAKEUP (1 << 0)
+#define DEVICE_FLAG_REMOTE_WAKEUP BIT(0)
+#define DEVICE_FLAG_DEVICE_PRIVACY BIT(1)
#define MGMT_OP_SET_DEVICE_FLAGS 0x0050
#define MGMT_SET_DEVICE_FLAGS_SIZE 11