aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/hci_core.h
diff options
context:
space:
mode:
authorHoward Chung <howardchung@google.com>2021-01-22 16:36:17 +0800
committerMarcel Holtmann <marcel@holtmann.org>2021-01-25 16:07:37 +0100
commitbf6a4e30ffbd9e9ef8934582feb937f6532f8b68 (patch)
treedfb7cd0fab4d130a2aaff2b9cff09bffd681ae66 /include/net/bluetooth/hci_core.h
parentBluetooth: advmon offload MSFT interleave scanning integration (diff)
downloadlinux-dev-bf6a4e30ffbd9e9ef8934582feb937f6532f8b68.tar.xz
linux-dev-bf6a4e30ffbd9e9ef8934582feb937f6532f8b68.zip
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>
Diffstat (limited to 'include/net/bluetooth/hci_core.h')
-rw-r--r--include/net/bluetooth/hci_core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index 29cfc6a2d689..fd1d10fe2f11 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -105,6 +105,8 @@ enum suspend_tasks {
SUSPEND_POWERING_DOWN,
SUSPEND_PREPARE_NOTIFIER,
+
+ SUSPEND_SET_ADV_FILTER,
__SUSPEND_NUM_TASKS
};