diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2013-09-25 13:26:06 +0300 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2013-09-25 14:30:10 -0300 |
commit | 87b95ba64efcfcf70a9f9933297994aada64cd74 (patch) | |
tree | d9eab0dd5aa4dbd23acd881e078cfd93800e2d82 /arch/h8300/Kconfig.cpu | |
parent | 970871bc9cb2f5f783cb7cca31ff223c44662327 (diff) |
Bluetooth: Fix busy return for mgmt_set_powered in some cases
We should return a "busy" error always when there is another
mgmt_set_powered operation in progress. Previously when powering on
while the auto off timer was still set the code could have let two or
more pending power on commands to be queued. This patch fixes the issue
by moving the check for duplicate commands to an earlier point in the
set_powered handler.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'arch/h8300/Kconfig.cpu')
0 files changed, 0 insertions, 0 deletions