2022-02-09 13:07:53

by Joseph Hwang

[permalink] [raw]
Subject: [BlueZ PATCH v3 6/9] lib: Add structure and constant for MGMT_OP_SET_QUALITY_REPORT

This patch adds the struct and constant for
MGMT_OP_SET_QUALITY_REPORT.

Signed-off-by: Joseph Hwang <[email protected]>
---

Changes in v3:
- This is a new patch that adds the structure and constant for
MGMT_OP_SET_QUALITY_REPORT.

lib/mgmt.h | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/lib/mgmt.h b/lib/mgmt.h
index db9a24cd6..2741d5d66 100644
--- a/lib/mgmt.h
+++ b/lib/mgmt.h
@@ -96,6 +96,7 @@ struct mgmt_rp_read_index_list {
#define MGMT_SETTING_STATIC_ADDRESS 0x00008000
#define MGMT_SETTING_PHY_CONFIGURATION 0x00010000
#define MGMT_SETTING_WIDEBAND_SPEECH 0x00020000
+#define MGMT_SETTING_QUALITY_REPORT 0x00040000

#define MGMT_OP_READ_INFO 0x0004
struct mgmt_rp_read_info {
@@ -757,6 +758,11 @@ struct mgmt_cp_add_adv_patterns_monitor_rssi {
struct mgmt_adv_pattern patterns[0];
} __packed;

+#define MGMT_OP_SET_QUALITY_REPORT 0x0057
+struct mgmt_cp_set_quality_report {
+ uint8_t action;
+} __packed;
+
#define MGMT_EV_CMD_COMPLETE 0x0001
struct mgmt_ev_cmd_complete {
uint16_t opcode;
--
2.35.0.263.gb82422642f-goog