Bluetooth: Check for supported white list before issuing commands
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 1 Nov 2015 08:39:48 +0000 (09:39 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 5 Nov 2015 03:03:21 +0000 (04:03 +0100)
commit2ab216a7a9ca89d77388ad3f22a31f752dec5897
tree14e8f93c2dc34092e179b024e5dc19d33a80adf8
parentf6fc86f2c572ff1d192e8b5d5bf339ba06ebe3e4
Bluetooth: Check for supported white list before issuing commands

The white list commands might not be implemented if the controller does
not actually support the white list. So check the supported commands
first before issuing these commands. Not supporting the white list is
the same as supporting a white list with zero size.

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