summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_conn.c
diff options
context:
space:
mode:
authorSpoorthi Ravishankar Koppad <spoorthix.k@intel.com>2019-06-21 14:51:56 +0530
committerMarcel Holtmann <marcel@holtmann.org>2019-07-06 15:29:12 +0200
commit302975cba1a4244d84e645773c82edbcfae1875f (patch)
tree9377409ae491eb590e559a51502b7d611572441f /net/bluetooth/hci_conn.c
parent28261da8a26f4915aa257d12d506c6ba179d961f (diff)
downloadblackbird-op-linux-302975cba1a4244d84e645773c82edbcfae1875f.tar.gz
blackbird-op-linux-302975cba1a4244d84e645773c82edbcfae1875f.zip
Bluetooth: Add support for LE ping feature
Changes made to add HCI Write Authenticated Payload timeout command for LE Ping feature. As per the Core Specification 5.0 Volume 2 Part E Section 7.3.94, the following code changes implements HCI Write Authenticated Payload timeout command for LE Ping feature. Signed-off-by: Spoorthi Ravishankar Koppad <spoorthix.k@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/hci_conn.c')
-rw-r--r--net/bluetooth/hci_conn.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c
index 15d1cb5aee18..17e5111daa11 100644
--- a/net/bluetooth/hci_conn.c
+++ b/net/bluetooth/hci_conn.c
@@ -520,6 +520,9 @@ struct hci_conn *hci_conn_add(struct hci_dev *hdev, int type, bdaddr_t *dst,
set_bit(HCI_CONN_POWER_SAVE, &conn->flags);
conn->disc_timeout = HCI_DISCONN_TIMEOUT;
+ /* Set Default Authenticated payload timeout to 30s */
+ conn->auth_payload_timeout = DEFAULT_AUTH_PAYLOAD_TIMEOUT;
+
if (conn->role == HCI_ROLE_MASTER)
conn->out = true;
OpenPOWER on IntegriCloud