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)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 22 Dec 2023 17:59:22 +0000 (12:59 -0500)
commitd4b70ba1eab450eff9c5ef536f07c01d424b7eda
treeae69e718c9c25bddf1d0a1853a9d6fe540404700
parent3c83800a6c5be446e35648ccaba7da88173acb37
Bluetooth: hci_sync: fix BR/EDR wakeup bug

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>
net/bluetooth/hci_sync.c