diff options
author | Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com> | 2014-05-09 15:35:28 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-05-09 17:16:42 -0400 |
commit | 5a134faeef82b46ff4ad244d11d8c6be41679834 (patch) | |
tree | 5e222abbed314e7a17a1cc67f8be90451577b75c /include/net | |
parent | b75cf9cd162244fe1c29691a21acfb1e657101a7 (diff) |
Bluetooth: Store TX power level for connection
This patch adds support to store local TX power level for connection
when reply for HCI_Read_Transmit_Power_Level 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 | 11 | ||||
-rw-r--r-- | include/net/bluetooth/hci_core.h | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h index ad2ecc92380d..16587dcd6a91 100644 --- a/include/net/bluetooth/hci.h +++ b/include/net/bluetooth/hci.h | |||
@@ -1054,6 +1054,17 @@ struct hci_cp_write_page_scan_activity { | |||
1054 | __le16 window; | 1054 | __le16 window; |
1055 | } __packed; | 1055 | } __packed; |
1056 | 1056 | ||
1057 | #define HCI_OP_READ_TX_POWER 0x0c2d | ||
1058 | struct hci_cp_read_tx_power { | ||
1059 | __le16 handle; | ||
1060 | __u8 type; | ||
1061 | } __packed; | ||
1062 | struct hci_rp_read_tx_power { | ||
1063 | __u8 status; | ||
1064 | __le16 handle; | ||
1065 | __s8 tx_power; | ||
1066 | } __packed; | ||
1067 | |||
1057 | #define HCI_OP_READ_PAGE_SCAN_TYPE 0x0c46 | 1068 | #define HCI_OP_READ_PAGE_SCAN_TYPE 0x0c46 |
1058 | struct hci_rp_read_page_scan_type { | 1069 | struct hci_rp_read_page_scan_type { |
1059 | __u8 status; | 1070 | __u8 status; |
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index 0318d5263837..211bad6a3366 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
@@ -375,6 +375,7 @@ struct hci_conn { | |||
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 | __s8 rssi; |
378 | __s8 tx_power; | ||
378 | unsigned long flags; | 379 | unsigned long flags; |
379 | 380 | ||
380 | __u8 remote_cap; | 381 | __u8 remote_cap; |