]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Add support to get connection information
authorAndrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
Wed, 14 May 2014 11:43:03 +0000 (13:43 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 16 May 2014 04:48:06 +0000 (21:48 -0700)
commit8f9cdf9c2162b0ba51357f3fbe055ca0055ef592
tree0c2a6fbbed4ca96a7da57414b36fa191242abcfa
parent96bd549953cc7be8319c090e1672ebcf9892dc71
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>
include/net/bluetooth/hci_core.h
include/net/bluetooth/mgmt.h
net/bluetooth/mgmt.c