summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_core.c
diff options
context:
space:
mode:
authorLukasz Rymanowski2014-03-27 20:55:20 +0100
committerMarcel Holtmann2014-03-28 08:09:30 +0100
commitb9a7a61e5c3e2f6316c2aedf4ca171bdee7a4804 (patch)
tree23356f501e5552003dcc54c72d3048f5f7078517 /net/bluetooth/hci_core.c
parentBluetooth: Keep msec in DISCOV_INTERLEAVED_TIMEOUT (diff)
downloadkernel-qcow2-linux-b9a7a61e5c3e2f6316c2aedf4ca171bdee7a4804.tar.gz
kernel-qcow2-linux-b9a7a61e5c3e2f6316c2aedf4ca171bdee7a4804.tar.xz
kernel-qcow2-linux-b9a7a61e5c3e2f6316c2aedf4ca171bdee7a4804.zip
Bluetooth: Add new debugfs parameter
With this patch it is possible to control discovery interleaved timeout value from debugfs. It is for fine tuning of this timeout. Signed-off-by: Lukasz Rymanowski <lukasz.rymanowski@tieto.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/hci_core.c')
-rw-r--r--net/bluetooth/hci_core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index 7cf511cb1171..d31f144860d1 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -1823,6 +1823,9 @@ static int __hci_init(struct hci_dev *hdev)
&lowpan_debugfs_fops);
debugfs_create_file("le_auto_conn", 0644, hdev->debugfs, hdev,
&le_auto_conn_fops);
+ debugfs_create_u16("discov_interleaved_timeout", 0644,
+ hdev->debugfs,
+ &hdev->discov_interleaved_timeout);
}
return 0;
@@ -3785,6 +3788,7 @@ struct hci_dev *hci_alloc_dev(void)
hdev->le_conn_max_interval = 0x0038;
hdev->rpa_timeout = HCI_DEFAULT_RPA_TIMEOUT;
+ hdev->discov_interleaved_timeout = DISCOV_INTERLEAVED_TIMEOUT;
mutex_init(&hdev->lock);
mutex_init(&hdev->req_lock);