]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Bluetooth: Add channel parameter to mgmt_pending_find() API
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 17 Mar 2015 11:48:47 +0000 (13:48 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 17 Mar 2015 17:03:08 +0000 (18:03 +0100)
commit333ae95d054519f64303f0e149b4b9653cc4635b
treeca7cdc3bfba16614e8652c0b23a21e7a9ec80c9c
parentd0f172b14afa7e0d8a19db5baa07e20b3ec8dcc8
Bluetooth: Add channel parameter to mgmt_pending_find() API

To be able to have pending commands for different HCI channels we need
to be able to distinguish for which channel a command was sent to. The
channel information is already part of the socket data and can be
fetched using the recently added hci_sock_get_channel() function. To not
require all mgmt.c code to pass an extra channel parameter this patch
also adds a helper pending_find() & pending_find_data() functions which
act as a wrapper to the new mgmt_pending_find() & mgmt_pending_find_data()
APIs.

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