diff options
author | Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com> | 2014-05-14 13:43:03 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-05-15 21:48:06 -0700 |
commit | dd9838087b8c2b45c7976e46290749732d7af9d5 (patch) | |
tree | 0c2a6fbbed4ca96a7da57414b36fa191242abcfa /include/net/bluetooth/hci_core.h | |
parent | Bluetooth: Add conn info lifetime parameters to debugfs (diff) | |
download | linux-dev-dd9838087b8c2b45c7976e46290749732d7af9d5.tar.xz linux-dev-dd9838087b8c2b45c7976e46290749732d7af9d5.zip |
Bluetooth: Add support to get connection information
This patch adds support for Get Connection Information mgmt command
which can be used to query for information about connection, i.e. RSSI
and local TX power level.
In general values cached in hci_conn are returned as long as they are
considered valid, i.e. do not exceed age limit set in hdev. This limit
is calculated as random value between min/max values to avoid client
trying to guess when to poll for updated information.
Signed-off-by: Andrzej Kaczmarek <andrzej.kaczmarek@tieto.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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index 4623f45c8892..cbbab6327621 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h @@ -384,6 +384,8 @@ struct hci_conn { __s8 tx_power; unsigned long flags; + unsigned long conn_info_timestamp; + __u8 remote_cap; __u8 remote_auth; __u8 remote_id; |