Bluetooth: Check HCI_PERIODIC_INQ in start_discovery
authorAndre Guedes <aguedespe@gmail.com>
Wed, 21 Mar 2012 03:03:37 +0000 (00:03 -0300)
committerGustavo Padovan <gustavo@padovan.org>
Wed, 9 May 2012 03:41:34 +0000 (00:41 -0300)
commit642be6c768bd686577ffe6ebcc5e6132a932537b
tree74d65aaac3cb9ef55c7ac33ccc22ba719839b37d
parentae854a70df3e2183a8db7a98a0deceee111c4542
Bluetooth: Check HCI_PERIODIC_INQ in start_discovery

This patch adds a HCI_PERIODIC_INQ check to start_discovery.
If periodic inquiry is enabled, we fail MGMT Start Discovery
command with MGMT_STATUS_BUSY code.

Signed-off-by: Andre Guedes <aguedespe@gmail.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo@padovan.org>
net/bluetooth/mgmt.c