Bluetooth: hci_sync: fix BR/EDR wakeup bug
authorclancy shang <clancy.shang@quectel.com>
Mon, 18 Dec 2023 10:24:17 +0000 (18:24 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Feb 2024 20:14:25 +0000 (20:14 +0000)
commite266b7b2d4b5902caaa2f1da73754fee09a894e2
tree60b68daed7ba001730de213b085e4c1f36434535
parent1441054443cb34182f7a04b8ff7e5925eee8d399
Bluetooth: hci_sync: fix BR/EDR wakeup bug

[ Upstream commit d4b70ba1eab450eff9c5ef536f07c01d424b7eda ]

when Bluetooth set the event mask and enter suspend, the controller
has hci mode change event coming, it cause controller can not enter
sleep mode. so it should to set the hci mode change event mask before
enter suspend.

Signed-off-by: clancy shang <clancy.shang@quectel.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bluetooth/hci_sync.c