]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Bluetooth: hci_sync: Fix not indicating power state
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 30 Sep 2022 20:12:30 +0000 (13:12 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Oct 2022 07:57:15 +0000 (09:57 +0200)
commit742e595f1949171ddcb1c6560d6619ae61c0e9db
tree61b2f8414cfaa712a7b3a8679b962ad7aec1a5d9
parent37ad7c5990c038060cca8e6a87a93399f5a6dfc2
Bluetooth: hci_sync: Fix not indicating power state

[ Upstream commit 6abf0dae8c3c927f54e62c46faf8aba580ba0d04 ]

When setting power state using legacy/non-mgmt API
(e.g hcitool hci0 up) the likes of mgmt_set_powered_complete won't be
called causing clients of the MGMT API to not be notified of the change
of the state.

Fixes: cf75ad8b41d2 ("Bluetooth: hci_sync: Convert MGMT_SET_POWERED")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tested-by: Tedd Ho-Jeong An <tedd.an@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bluetooth/hci_sync.c