Bluetooth: Fix check for support for page scan related commands
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 11 Dec 2014 19:21:54 +0000 (20:21 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 11 Dec 2014 19:42:11 +0000 (21:42 +0200)
commit417287de88bfbb724bab2f50782395d2606b28e1
tree1d8b447174a01bcefa081c78ba0b2bba460da279
parent5c1a4c8f28059e592da4fff40c0dc54202fb5cc6
Bluetooth: Fix check for support for page scan related commands

The Read Page Scan Activity and Read Page Scan Type commands are not
supported by all controllers. Move the execution of both commands
into the 3rd phase of the init procedure. And then check the bit
mask of supported commands before adding them to the init sequence.

With this re-ordering of the init sequence, the extra check for
AVM BlueFritz! controllers is no longer needed. They will report
that these two commands are not supported.

This fixes an issue with the Microsoft Corp. Wireless Transceiver
for Bluetooth 2.0 (ID 045e:009c).

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/hci_core.c