From 37be50d6793eaf6cfbc72b7dd69e3d57b468db2c Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 3 Nov 2021 17:26:30 -0700 Subject: adapter: Set Device Privacy Mode This adds support for setting Device Privacy flag when enabled in main.conf via Privacy = device,limited-device. --- lib/mgmt.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.1