Bluetooth: disable advertisement filters during suspend
authorHoward Chung <howardchung@google.com>
Fri, 22 Jan 2021 08:36:17 +0000 (16:36 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 25 Jan 2021 15:07:37 +0000 (16:07 +0100)
commitbf6a4e30ffbd9e9ef8934582feb937f6532f8b68
treedfb7cd0fab4d130a2aaff2b9cff09bffd681ae66
parent58ceb1e6d6aec5b35722446e004851ada0d59656
Bluetooth: disable advertisement filters during suspend

This adds logic to disable and reenable advertisement filters during
suspend and resume. After this patch, we would only receive packets from
devices in allow list during suspend.

Signed-off-by: Howard Chung <howardchung@google.com>
Reviewed-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_request.c
net/bluetooth/msft.c
net/bluetooth/msft.h