summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_core.c
diff options
context:
space:
mode:
authorMarcel Holtmann2013-10-19 00:23:46 +0200
committerJohan Hedberg2013-10-19 15:26:10 +0200
commitd0f729b8c1d8be495d3fc5fdeca2a7093280e85e (patch)
tree8544f84cbce4bda4186acb13a88d0fff8caa9f2e /net/bluetooth/hci_core.c
parentBluetooth: Remove bus attribute in favor of hierarchy (diff)
downloadkernel-qcow2-linux-d0f729b8c1d8be495d3fc5fdeca2a7093280e85e.tar.gz
kernel-qcow2-linux-d0f729b8c1d8be495d3fc5fdeca2a7093280e85e.tar.xz
kernel-qcow2-linux-d0f729b8c1d8be495d3fc5fdeca2a7093280e85e.zip
Bluetooth: Expose white list size information in debugfs
Knowing the white list size information is important for debugging. So export it via debugfs. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/hci_core.c')
-rw-r--r--net/bluetooth/hci_core.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index ee946cb26906..8710d1febee7 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -1116,9 +1116,12 @@ static int __hci_init(struct hci_dev *hdev)
hdev, &sniff_max_interval_fops);
}
- if (lmp_le_capable(hdev))
+ if (lmp_le_capable(hdev)) {
+ debugfs_create_u8("white_list_size", 0444, hdev->debugfs,
+ &hdev->le_white_list_size);
debugfs_create_file("static_address", 0444, hdev->debugfs,
hdev, &static_address_fops);
+ }
return 0;
}