Bluetooth: Introduce hci_req helper to abort a connection
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 22 Oct 2015 07:49:37 +0000 (10:49 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 22 Oct 2015 09:37:22 +0000 (11:37 +0200)
commitdcc0f0d9ce839e1cc97b95d9dac364047bd1b975
tree776ada825bb3dafaf02520fd95da1397467d8862
parenta1857390e2a626cd44e494968fc1b41891caec66
Bluetooth: Introduce hci_req helper to abort a connection

There are several different places needing to make sure that a
connection gets disconnected or canceled. The exact action needed
depends on the connection state, so centralizing this logic can save
quite a lot of code duplication.

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