Home
last modified time | relevance | path

Searched hist:ae8853d0a3826bd4c5d3f13ee61c03deb3b74818 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/bluetooth/
H A Dhci_sync.cdiff ae8853d0a3826bd4c5d3f13ee61c03deb3b74818 Mon Jul 15 09:40:03 CDT 2024 Luiz Augusto von Dentz <luiz.von.dentz@intel.com> Bluetooth: hci_sync: Fix suspending with wrong filter policy

[ Upstream commit 96b82af36efaa1787946e021aa3dc5410c05beeb ]

When suspending the scan filter policy cannot be 0x00 (no acceptlist)
since that means the host has to process every advertisement report
waking up the system, so this attempts to check if hdev is marked as
suspended and if the resulting filter policy would be 0x00 (no
acceptlist) then skip passive scanning if thre no devices in the
acceptlist otherwise reset the filter policy to 0x01 so the acceptlist
is used since the devices programmed there can still wakeup be system.

Fixes: 182ee45da083 ("Bluetooth: hci_sync: Rework hci_suspend_notifier")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>