]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Bluetooth: mgmt: Fix enabling SSP while powered off
authorAndrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
Wed, 29 Aug 2012 08:02:08 +0000 (10:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Oct 2012 17:39:24 +0000 (10:39 -0700)
commit8c5aef4e6205321a9811caa9f69b9f42dd79317c
tree4406d3076e642603ef0681cadd704be2cfb98cc9
parent7c0bd09175067fdd190ebe8b2e6757d9d9cb7efe
Bluetooth: mgmt: Fix enabling SSP while powered off

commit 3d1cbdd6aefff711bcf389fdabc4af9bc22e8201 upstream.

When new BT USB adapter is plugged in it's configured while still being powered
off (HCI_AUTO_OFF flag is set), thus Set SSP will only set dev_flags but won't
write changes to controller. As a result remote devices won't use Secure Simple
Pairing with our device due to SSP Host Support flag disabled in extended
features and may also reject SSP attempt from our side (with possible fallback
to legacy pairing).

This patch ensures HCI Write Simple Pairing Mode 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>
Acked-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/bluetooth/mgmt.c