]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Merge INQUIRY and LE_SCAN discovery states
authorAndre Guedes <andre.guedes@openbossa.org>
Fri, 17 Feb 2012 23:39:37 +0000 (20:39 -0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Sun, 19 Feb 2012 10:34:09 +0000 (12:34 +0200)
commit870bd0f18ac7a4c05e44ba5e770007f5b0b508b3
tree7597224c044e879c31bda46e32dd5a3f256ffd1b
parent1f19aa857a888171d37871fb2252b94944492491
Bluetooth: Merge INQUIRY and LE_SCAN discovery states

This patch merges DISCOVERY_INQUIRY and DISCOVERY_LE_SCAN states
into a new state called DISCOVERY_FINDING.

From the discovery perspective, we are pretty much worried about
to know just if we are finding devices than what exactly phase of
"finding devices" (inquiry or LE scan) we are currently running.
Besides, to know if the controller is performing inquiry or LE scan
we should check HCI_INQUIRY or HCI_LE_SCAN bits in hdev flags.

Moreover, merging this two states will simplify the discovery state
machine and will keep interleaved discovery implementation simpler.

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>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_core.c
net/bluetooth/hci_event.c
net/bluetooth/mgmt.c