]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: mgmt: Fix enabling LE while powered off
authorAndrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
Wed, 29 Aug 2012 08:02:09 +0000 (10:02 +0200)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Tue, 18 Sep 2012 23:07:03 +0000 (20:07 -0300)
commitff5d89d68bcaf70fae0743fc7c4b5b08058b4ead
tree508035b236bc31e516b3a742f5fbc7886efb3b1f
parent425e888e00c6574095d965d4bf49a55350d841bd
Bluetooth: mgmt: Fix enabling LE while powered off

When new BT USB adapter is plugged in it's configured while still being powered
off (HCI_AUTO_OFF flag is set), thus Set LE will only set dev_flags but won't
write changes to controller. As a result it's not possible to start device
discovery session on LE controller as it uses interleaved discovery which
requires LE Supported Host flag in extended features.

This patch ensures HCI Write LE Host Supported is sent when Set Powered is
called to power on controller and clear HCI_AUTO_OFF flag.

Signed-off-by: Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
Cc: stable@vger.kernel.org
Acked-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/mgmt.c