aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_conn.c
diff options
context:
space:
mode:
authorAndrzej Kaczmarek <andrzej.kaczmarek@tieto.com>2014-05-14 07:43:05 -0400
committerMarcel Holtmann <marcel@holtmann.org>2014-05-16 00:48:07 -0400
commitd0455ed996df84fd2670a655fe13ab72f8264765 (patch)
treeaf606863b3c438b050424272326fbc651232e2aa /net/bluetooth/hci_conn.c
parentf7faab0c9d47f7d3fb25db42eff08497131ec8ba (diff)
Bluetooth: Store max TX power level for connection
This patch adds support to store local maximum 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 'net/bluetooth/hci_conn.c')
-rw-r--r--net/bluetooth/hci_conn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c
index 74b368bfe102..a987e7def025 100644
--- a/net/bluetooth/hci_conn.c
+++ b/net/bluetooth/hci_conn.c
@@ -408,6 +408,7 @@ struct hci_conn *hci_conn_add(struct hci_dev *hdev, int type, bdaddr_t *dst)
408 conn->remote_auth = 0xff; 408 conn->remote_auth = 0xff;
409 conn->key_type = 0xff; 409 conn->key_type = 0xff;
410 conn->tx_power = HCI_TX_POWER_INVALID; 410 conn->tx_power = HCI_TX_POWER_INVALID;
411 conn->max_tx_power = HCI_TX_POWER_INVALID;
411 412
412 set_bit(HCI_CONN_POWER_SAVE, &conn->flags); 413 set_bit(HCI_CONN_POWER_SAVE, &conn->flags);
413 conn->disc_timeout = HCI_DISCONN_TIMEOUT; 414 conn->disc_timeout = HCI_DISCONN_TIMEOUT;