diff options
author | Archie Pusaka <apusaka@chromium.org> | 2021-01-22 16:36:11 +0800 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2021-01-25 16:07:36 +0100 |
commit | b4a221ea8a1f890b50838ef389d016c7ff280abc (patch) | |
tree | e1095d3b99310e45e49c20090d3b0c2fd3995fb6 /include/net/bluetooth/hci_core.h | |
parent | 7f9f2c3f7d99b8ae773459c74ac5e99a0dd46db9 (diff) | |
download | linux-b4a221ea8a1f890b50838ef389d016c7ff280abc.tar.bz2 |
Bluetooth: advmon offload MSFT add rssi support
MSFT needs rssi parameter for monitoring advertisement packet,
therefore we should supply them from mgmt. This adds a new opcode
to add advertisement monitor with rssi parameters.
Signed-off-by: Archie Pusaka <apusaka@chromium.org>
Reviewed-by: Manish Mandlik <mmandlik@chromium.org>
Reviewed-by: Miao-chen Chou <mcchou@chromium.org>
Reviewed-by: Yun-Hao Chung <howardchung@google.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/bluetooth/hci_core.h')
-rw-r--r-- | include/net/bluetooth/hci_core.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index 677a8c50b2ad..8b7cf3620938 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h @@ -250,8 +250,17 @@ struct adv_pattern { __u8 value[HCI_MAX_AD_LENGTH]; }; +struct adv_rssi_thresholds { + __s8 low_threshold; + __s8 high_threshold; + __u16 low_threshold_timeout; + __u16 high_threshold_timeout; + __u8 sampling_period; +}; + struct adv_monitor { struct list_head patterns; + struct adv_rssi_thresholds rssi; bool active; __u16 handle; }; |