Commit d0f729b8 authored by Marcel Holtmann's avatar Marcel Holtmann Committed by Johan Hedberg

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: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
parent e132f7f6
...@@ -1116,9 +1116,12 @@ static int __hci_init(struct hci_dev *hdev) ...@@ -1116,9 +1116,12 @@ static int __hci_init(struct hci_dev *hdev)
hdev, &sniff_max_interval_fops); 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, debugfs_create_file("static_address", 0444, hdev->debugfs,
hdev, &static_address_fops); hdev, &static_address_fops);
}
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment