]> git.baikalelectronics.ru Git - kernel.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)
commit03ff1abc7fa1299743e8e2874d1ceab014f9d0e7
tree8b3619e8b496f390446a72ab58986742e0c71cf6
parent8ccdfe45f32b84e7b6652a5cc34143af8d95f3e3
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