summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorArchie Pusaka <apusaka@chromium.org>2021-01-15 19:50:34 +0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-01-15 11:54:45 -0800
commita033babc2a9ed7e49cd074f224f38a6065aa5f2f (patch)
tree1bb7d990fa842fd112acef0b5900d835f24514e0 /lib
parent7c88062cd5a448e81db471403b013a6cb7f1303d (diff)
downloadbluez-a033babc2a9ed7e49cd074f224f38a6065aa5f2f.tar.gz
lib/mgmt: Adding Add Adv Patterns Monitor RSSI opcode
The new op is to utilize RSSI in advertisement monitor
Diffstat (limited to 'lib')
-rw-r--r--lib/mgmt.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/mgmt.h b/lib/mgmt.h
index f37f7e654..76a03c9c2 100644
--- a/lib/mgmt.h
+++ b/lib/mgmt.h
@@ -738,6 +738,21 @@ struct mgmt_rp_add_ext_adv_data {
uint8_t instance;
} __packed;
+struct mgmt_adv_rssi_thresholds {
+ int8_t high_threshold;
+ uint16_t high_threshold_timeout;
+ int8_t low_threshold;
+ uint16_t low_threshold_timeout;
+ uint8_t sampling_period;
+} __packed;
+
+#define MGMT_OP_ADD_ADV_PATTERNS_MONITOR_RSSI 0x0056
+struct mgmt_cp_add_adv_patterns_monitor_rssi {
+ struct mgmt_adv_rssi_thresholds rssi;
+ uint8_t pattern_count;
+ struct mgmt_adv_pattern patterns[0];
+} __packed;
+
#define MGMT_EV_CMD_COMPLETE 0x0001
struct mgmt_ev_cmd_complete {
uint16_t opcode;