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>
This commit is contained in:

committed by
Marcel Holtmann

parent
38e4a91566
commit
5ae76a9415
@@ -1064,6 +1064,16 @@ struct hci_rp_read_page_scan_type {
|
||||
#define PAGE_SCAN_TYPE_STANDARD 0x00
|
||||
#define PAGE_SCAN_TYPE_INTERLACED 0x01
|
||||
|
||||
#define HCI_OP_READ_RSSI 0x1405
|
||||
struct hci_cp_read_rssi {
|
||||
__le16 handle;
|
||||
} __packed;
|
||||
struct hci_rp_read_rssi {
|
||||
__u8 status;
|
||||
__le16 handle;
|
||||
__s8 rssi;
|
||||
} __packed;
|
||||
|
||||
#define HCI_OP_READ_LOCAL_AMP_INFO 0x1409
|
||||
struct hci_rp_read_local_amp_info {
|
||||
__u8 status;
|
||||
|
@@ -374,6 +374,7 @@ struct hci_conn {
|
||||
__u16 setting;
|
||||
__u16 le_conn_min_interval;
|
||||
__u16 le_conn_max_interval;
|
||||
__s8 rssi;
|
||||
unsigned long flags;
|
||||
|
||||
__u8 remote_cap;
|
||||
|
Reference in New Issue
Block a user