diff options
author | Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com> | 2014-05-08 09:32:08 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-05-08 11:01:57 -0400 |
commit | 5ae76a94150c86a6e0ee84eb74e7f7e1909b8d39 (patch) | |
tree | 4abcdb2d73127eabb1f6d48af20b37cb7725e69b /include/net | |
parent | 38e4a915663f3f3c03b753d90a34fbb6164ea55d (diff) |
Bluetooth: Store RSSI for connection
This patch adds support to store RSSI for connection when reply for
HCI_Read_RSSI is received.
Signed-off-by: Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/bluetooth/hci.h | 10 | ||||
-rw-r--r-- | include/net/bluetooth/hci_core.h | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h index 4261a67682c0..ad2ecc92380d 100644 --- a/include/net/bluetooth/hci.h +++ b/include/net/bluetooth/hci.h | |||
@@ -1064,6 +1064,16 @@ struct hci_rp_read_page_scan_type { | |||
1064 | #define PAGE_SCAN_TYPE_STANDARD 0x00 | 1064 | #define PAGE_SCAN_TYPE_STANDARD 0x00 |
1065 | #define PAGE_SCAN_TYPE_INTERLACED 0x01 | 1065 | #define PAGE_SCAN_TYPE_INTERLACED 0x01 |
1066 | 1066 | ||
1067 | #define HCI_OP_READ_RSSI 0x1405 | ||
1068 | struct hci_cp_read_rssi { | ||
1069 | __le16 handle; | ||
1070 | } __packed; | ||
1071 | struct hci_rp_read_rssi { | ||
1072 | __u8 status; | ||
1073 | __le16 handle; | ||
1074 | __s8 rssi; | ||
1075 | } __packed; | ||
1076 | |||
1067 | #define HCI_OP_READ_LOCAL_AMP_INFO 0x1409 | 1077 | #define HCI_OP_READ_LOCAL_AMP_INFO 0x1409 |
1068 | struct hci_rp_read_local_amp_info { | 1078 | struct hci_rp_read_local_amp_info { |
1069 | __u8 status; | 1079 | __u8 status; |
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index d73f41855ada..0318d5263837 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
@@ -374,6 +374,7 @@ struct hci_conn { | |||
374 | __u16 setting; | 374 | __u16 setting; |
375 | __u16 le_conn_min_interval; | 375 | __u16 le_conn_min_interval; |
376 | __u16 le_conn_max_interval; | 376 | __u16 le_conn_max_interval; |
377 | __s8 rssi; | ||
377 | unsigned long flags; | 378 | unsigned long flags; |
378 | 379 | ||
379 | __u8 remote_cap; | 380 | __u8 remote_cap; |