]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix fast connectable state when enabling page scan
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 15 Mar 2013 22:07:14 +0000 (17:07 -0500)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Mon, 18 Mar 2013 18:36:04 +0000 (15:36 -0300)
commit6b1995480c0a827a3260643ac756f392ddaa19e2
tree276708c633d9b2b3b75cd5bf3e4bbdf708f8412e
parent2a445292034a7f035693cc35a825267083b13517
Bluetooth: Fix fast connectable state when enabling page scan

When powering on or enabling page scan we need to ensure that the page
scan parameters are as they should be. This is because some controllers
do not properly reset these values upon HCI_Reset. Since the
write_scan_parameters function is now called from several new places it
also checks for the >= 1.2 HCI version requirement before sending the
commands.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/mgmt.c