]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Convert Set SC to use HCI Request
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 23 Jan 2015 13:42:46 +0000 (15:42 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 23 Jan 2015 18:07:03 +0000 (19:07 +0100)
commit57dd9fb366aae658dcbd5b212a1264b664085985
tree1c1ff41e6bac931e44c1d8da3b5ccb747fc6a6a1
parentd49b6e2f9e2056b5b62c56c94b5e89de0017a721
Bluetooth: Convert Set SC to use HCI Request

This patch converts the Set Secure Connection HCI handling to use a HCI
request instead of using a hard-coded callback in hci_event.c. This e.g.
ensures that we don't clear the flags incorrectly if something goes
wrong with the power up process (not related to a mgmt Set SC command).

The code can also be simplified a bit since only one pending Set SC
command is allowed, i.e. mgmt_pending_foreach usage is not needed.

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