WSL2-Linux-Kernel/net/bluetooth
Johan Hedberg 87b95ba64e 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>
2013-09-25 14:30:10 -03:00
..
bnep Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2013-05-01 17:51:54 -07:00
cmtp Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2013-05-01 17:51:54 -07:00
hidp Bluetooth: hidp: remove wrong send_report at init 2013-07-25 14:15:24 +01:00
rfcomm Bluetooth: Fix waiting for clearing of BT_SK_SUSPEND flag 2013-09-18 17:02:59 -05:00
Kconfig Bluetooth: trivial: Remove newline before EOF 2012-10-24 00:42:47 -02:00
Makefile Bluetooth: AMP: Use HCI cmd to Read Loc AMP Assoc 2012-09-27 17:10:32 -03:00
a2mp.c Bluetooth: Replaced kzalloc and memcpy with kmemdup 2013-03-18 14:01:50 -03:00
af_bluetooth.c Bluetooth: Add clarifying comment to bt_sock_wait_state() 2013-09-25 14:30:10 -03:00
amp.c Bluetooth: AMP: Use set_bit / test_bit for amp_mgr state 2013-01-09 17:05:05 -02:00
hci_conn.c Bluetooth: Disable upper layer connections when user channel is active 2013-09-16 14:35:56 -03:00
hci_core.c Bluetooth: Add event mask page 2 setting support 2013-09-19 10:21:44 -05:00
hci_event.c Bluetooth: Add SCO connection fallback 2013-08-21 16:47:13 +02:00
hci_sock.c Bluetooth: Introduce new HCI socket channel for user operation 2013-09-16 14:35:55 -03:00
hci_sysfs.c Bluetooth: Track feature pages in a single table 2013-04-18 00:26:20 -03:00
l2cap_core.c Bluetooth: Fix assignment of 0/1 to bool variables 2013-09-22 16:59:14 -05:00
l2cap_sock.c Bluetooth: Clean up socket locking in l2cap_sock_recvmsg 2013-09-25 14:30:10 -03:00
lib.c bluetooth: Remove unneeded batostr function 2012-09-27 18:10:43 -03:00
mgmt.c Bluetooth: Fix busy return for mgmt_set_powered in some cases 2013-09-25 14:30:10 -03:00
sco.c Bluetooth: Prevent transparent SCO on older devices 2013-08-21 16:47:12 +02:00
smp.c Bluetooth: Fix checks for LE support on LE-only controllers 2013-06-12 10:20:54 -04:00