]> git.baikalelectronics.ru Git - kernel.git/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)
commite1151121d0be751f95a3521631f89b79f250606c
tree038703660211649da80f295d588db49fb1284065
parent70b3fcb925f347f87bbd7a2473916bca66b3a277
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