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)
commit4c01f8b845238710ff4b6c7fa8148ca52613f199
tree276708c633d9b2b3b75cd5bf3e4bbdf708f8412e
parentbd98b9966f915411a32ecee3fa434cb051167d8a
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