summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJohan Hedberg2011-11-08 19:40:15 +0100
committerGustavo F. Padovan2011-11-09 15:33:39 +0100
commit2e58ef3e11d0775795345a20185b5a7c4bdae194 (patch)
tree3187787dd2693ad0c43fb3e3c7f5ec959c7713e7 /include
parentBluetooth: Pass full hci_dev struct to mgmt callbacks (diff)
downloadkernel-qcow2-linux-2e58ef3e11d0775795345a20185b5a7c4bdae194.tar.gz
kernel-qcow2-linux-2e58ef3e11d0775795345a20185b5a7c4bdae194.tar.xz
kernel-qcow2-linux-2e58ef3e11d0775795345a20185b5a7c4bdae194.zip
Bluetooth: Move pending management command list into struct hci_dev
This patch moves the pending management command list (previously global to mgmt.c) into struct hci_dev. This makes it possible to do proper locking when accessing it (through the existing hci_dev locks) and thereby avoid race conditions. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include')
-rw-r--r--include/net/bluetooth/hci_core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index 0f35a3900e16..0a5a05d9109c 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -217,6 +217,8 @@ struct hci_dev {
__u16 init_last_cmd;
+ struct list_head mgmt_pending;
+
struct inquiry_cache inq_cache;
struct hci_conn_hash conn_hash;
struct list_head blacklist;