summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAbhishek Pandit-Subedi <abhishekpandit@chromium.org>2020-08-28 18:02:08 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2020-08-31 10:33:48 -0700
commit35d346609a90112cf5db48e177264ce940f587e2 (patch)
treebfb5dadd204e69fb03aea66d01966815fa7ff2fe /lib
parent4eae282b706a2f38d30968599945331413a92a0d (diff)
downloadbluez-35d346609a90112cf5db48e177264ce940f587e2.tar.gz
mgmt: Add controller suspend and resume events
Add the controller suspend and resume events.
Diffstat (limited to 'lib')
-rw-r--r--lib/mgmt.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/mgmt.h b/lib/mgmt.h
index a800bcab4..46d894ae9 100644
--- a/lib/mgmt.h
+++ b/lib/mgmt.h
@@ -772,6 +772,7 @@ struct mgmt_ev_device_connected {
#define MGMT_DEV_DISCONN_TIMEOUT 0x01
#define MGMT_DEV_DISCONN_LOCAL_HOST 0x02
#define MGMT_DEV_DISCONN_REMOTE 0x03
+#define MGMT_DEV_DISCONN_LOCAL_HOST_SUSPEND 0x05
#define MGMT_EV_DEVICE_DISCONNECTED 0x000C
struct mgmt_ev_device_disconnected {
@@ -959,6 +960,17 @@ struct mgmt_ev_adv_monitor_removed {
uint16_t monitor_handle;
} __packed;
+#define MGMT_EV_CONTROLLER_SUSPEND 0x002d
+struct mgmt_ev_controller_suspend {
+ uint8_t suspend_state;
+} __packed;
+
+#define MGMT_EV_CONTROLLER_RESUME 0x002e
+struct mgmt_ev_controller_resume {
+ struct mgmt_addr_info addr;
+ uint8_t wake_reason;
+} __packed;
+
static const char *mgmt_op[] = {
"<0x0000>",
"Read Version",
@@ -1088,6 +1100,8 @@ static const char *mgmt_ev[] = {
"Device Flags Changed",
"Advertisement Monitor Added", /* 0x002b */
"Advertisement Monitor Removed",
+ "Controller Suspend",
+ "Controller Resume",
};
static const char *mgmt_status[] = {