]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Do not allow LE connection if LE is not enabled
authorLukasz Rymanowski <lukasz.rymanowski@tieto.com>
Wed, 11 Feb 2015 11:31:40 +0000 (12:31 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 14 Feb 2015 04:19:59 +0000 (05:19 +0100)
commit1fd0c373c4d2006bcf3089ab58d86be39b5abc5d
treeb0aebdcceab3a4700813d12dd7114082e9f2e316
parentb1df16a4697b5023f24f0e8d8122a49fdccd848d
Bluetooth: Do not allow LE connection if LE is not enabled

Kernel gives possibility to enable/disable LE host support.
There is flag HCI_LE_ENABLED which is set when this support is enabled
and some parts of the code checks this flag e.g. SMP
However it is still possible to make LE connection if LE Host support is
disabled, what might be confused for remote device.
This patch makes sure that kernel will not send HCI LE Create Connection
if LE HOST support is not enabled.

Signed-off-by: Lukasz Rymanowski <lukasz.rymanowski@tieto.com>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/hci_conn.c