Bluetooth: Add discovery state tracking
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 4 Jan 2012 12:23:45 +0000 (14:23 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 13 Feb 2012 15:01:20 +0000 (17:01 +0200)
commitff9ef5787046c3fd20cf9f7ca1cd70260c1eedb9
treeba9d936fd1aa8b3a8f4fe0685b71007f9116f30c
parent30883512be0839349d29c7b0bc31016e0498cf8c
Bluetooth: Add discovery state tracking

This patch adds proper state tracking to the device discovery process.
This makes it possible to return appropriate errors when trying to stop
a non-active discovery or start discovery when it is already ongoing.
Once name resolving is implemented this also makes it possible to know
what the right action to do is when a remote name lookup is cancelled.

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