Bluetooth: Expose inquiry_cache debugfs only on BR/EDR controllers
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 16 Oct 2013 10:28:55 +0000 (03:28 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 16 Oct 2013 16:53:18 +0000 (19:53 +0300)
commitbaf27f6e0e13b9b7e81fd4c758ac87f165c1a422
tree27c735f616d3a1fb55e79f2da20cc7b812c0d3e8
parent7f59ddada192583aee81ebf0de4cdc5a94642915
Bluetooth: Expose inquiry_cache debugfs only on BR/EDR controllers

The inquiry_cache debugfs entry is only valid for BR/EDR capable
controllers. In case of single mode LE-only controllers that
entry is not valid.

Move the creating of the debugfs entries to the end of controller
init and only create the inquiry_cache entry if BR/EDR is actually
supported.

At the same time this avoids creating any debugfs entries for
AMP controllers since none of the entries are valid there.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/hci_core.c
net/bluetooth/hci_sysfs.c