]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Bluetooth: Update start_discovery to use HCI request
authorAndre Guedes <andre.guedes@openbossa.org>
Tue, 30 Apr 2013 18:29:28 +0000 (15:29 -0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Wed, 29 May 2013 21:43:38 +0000 (18:43 -0300)
commitf1b5d5b1573cf7ba2061b8c76d77cc4aeb3d8231
treec4a7124504b79fc9c10c2a6f50a2c8cc2997db1a
parent08ab765226a533eef8c0c7f661ef1d79b190bc3f
Bluetooth: Update start_discovery to use HCI request

This patch modifies the start_discovery function so it uses the HCI
request framework.

We build the HCI request according to the discovery type (add inquiry
or LE scan HCI commands) and run the HCI request. We also register
the start_discovery_complete callback which handles mgmt command
complete events for this command. This way, we move all start_
discovery mgmt handling code spread in hci_event.c to a single place
in mgmt.c.

This patch also merges the LE-only and interleaved discovery type
cases since these cases are pretty much the same now.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Acked-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/mgmt.c