diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2013-10-18 18:23:46 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2013-10-19 09:26:10 -0400 |
commit | d0f729b8c1d8be495d3fc5fdeca2a7093280e85e (patch) | |
tree | 8544f84cbce4bda4186acb13a88d0fff8caa9f2e /net/bluetooth | |
parent | e132f7f6a2df7b186563775e79c7ab3612ec8116 (diff) |
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')
-rw-r--r-- | net/bluetooth/hci_core.c | 5 |
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) | |||
1116 | hdev, &sniff_max_interval_fops); | 1116 | hdev, &sniff_max_interval_fops); |
1117 | } | 1117 | } |
1118 | 1118 | ||
1119 | if (lmp_le_capable(hdev)) | 1119 | if (lmp_le_capable(hdev)) { |
1120 | debugfs_create_u8("white_list_size", 0444, hdev->debugfs, | ||
1121 | &hdev->le_white_list_size); | ||
1120 | debugfs_create_file("static_address", 0444, hdev->debugfs, | 1122 | debugfs_create_file("static_address", 0444, hdev->debugfs, |
1121 | hdev, &static_address_fops); | 1123 | hdev, &static_address_fops); |
1124 | } | ||
1122 | 1125 | ||
1123 | return 0; | 1126 | return 0; |
1124 | } | 1127 | } |