Bluetooth: mgmt: Track pending class changes
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 23 Feb 2012 20:54:38 +0000 (22:54 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 23 Feb 2012 22:15:26 +0000 (00:15 +0200)
commitc95f0ba76f902bc8b540468b695bcfe8948e8e46
treec5de0fe26773c40cf93cecca7554af859ecb2601
parent08c79b6133b70a6e3d462d11a89c80259ac66ec7
Bluetooth: mgmt: Track pending class changes

This patch adds a flag to track pending changes to the class of device.
This is needed since we cannot cleanly handle multiple simultaneous
commands and need to return a "busy" error status in the mgmt commands
that might trigger a class change.

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