Bluetooth: Move pending management command list into struct hci_dev
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 8 Nov 2011 18:40:15 +0000 (20:40 +0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Wed, 9 Nov 2011 14:33:39 +0000 (12:33 -0200)
commit2e58ef3e11d0775795345a20185b5a7c4bdae194
tree3187787dd2693ad0c43fb3e3c7f5ec959c7713e7
parent744cf19eadcf4de914394e0eb227f94f4318f5e4
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>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_core.c
net/bluetooth/mgmt.c