]> Pileus Git - ~andy/linux/commit
Bluetooth: Reorganize set_connectable HCI command sending
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 14 Oct 2013 13:20:03 +0000 (16:20 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 14 Oct 2013 13:48:08 +0000 (06:48 -0700)
commit9b74246f3a074b6072fa81002805ceaefb87a013
tree038703660211649da80f295d588db49fb1284065
parentd97c899bde330cd1c76c3a162558177563a74362
Bluetooth: Reorganize set_connectable HCI command sending

This patch moves all the decisions of which HCI commands to send (or not
to send) to the code between hci_req_init() and hci_req_run() this
allows us to further extend the request with further commands but still
keep the same logic of handling whether to return a direct mgmt response
in the case that no HCI commands were sent.

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