Bluetooth: Check capabilities in BR/EDR and LE-Only discovery
authorAndre Guedes <andre.guedes@openbossa.org>
Thu, 23 Feb 2012 21:09:27 +0000 (18:09 -0300)
committerGustavo F. Padovan <padovan@profusion.mobi>
Thu, 1 Mar 2012 15:12:53 +0000 (12:12 -0300)
commit8b90129cc5789a4c65547c91c9a7b1fd3a4d56a4
tree16e8be2df2d6bb0de2c5b13bacbb2023d300bdcc
parent1de028ceb54ccd28cc96f1530a195ae1b6a6d5b5
Bluetooth: Check capabilities in BR/EDR and LE-Only discovery

This patch add an extra check for BR/EDR and LE-Only discovery.
This way, we are able to return error immediately if the discovery
type requested is not supported by the device.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/mgmt.c