Bluetooth: Expose white list size information in debugfs
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 18 Oct 2013 22:23:46 +0000 (15:23 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Sat, 19 Oct 2013 13:26:10 +0000 (16:26 +0300)
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>
net/bluetooth/hci_core.c

index ee946cb26906cc30aa3b4a323dd0f6014bfdc162..8710d1febee7ea9a4eba416783b3e3eccf895033 100644 (file)
@@ -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;
 }