]> 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)
commitc631fd5c7da281aad5408b5b559b746d7c71e3f3
tree038703660211649da80f295d588db49fb1284065
parent267d03cc5366695a30c394e9e89d71c24443984d
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