]> git.karo-electronics.de Git - linux-beck.git/commit
Bluetooth: Expose auto_accept_delay debugfs only when SSP is supported
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 17 Oct 2013 17:54:46 +0000 (10:54 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 17 Oct 2013 20:54:07 +0000 (23:54 +0300)
commitebd1e33bb2167798197e79d277d7ead14013e489
tree8b3619e8b496f390446a72ab58986742e0c71cf6
parentbaf27f6e0e13b9b7e81fd4c758ac87f165c1a422
Bluetooth: Expose auto_accept_delay debugfs only when SSP is supported

The auto_accept_delay debugfs entry is only valid for BR/EDR capable
controllers that also support SSP. If SSP is not available or it is
a LE-only single mode controller this value has no affect and so do
not expose it.

Since the value can be actually changed, switch the permissions
to 0644 to clearly indicate that the value is indeed writeable.

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