]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Pause discovery and advertising during suspend
authorAbhishek Pandit-Subedi <abhishekpandit@chromium.org>
Wed, 11 Mar 2020 15:54:03 +0000 (08:54 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 11 Mar 2020 17:03:49 +0000 (18:03 +0100)
commit3cc569c1b38d961350499863467331220490cd4f
tree71455be1f23360b56b6db5aa130d9e9101215d72
parent0f0e60379e2f7db8a653bd7c83400c1af4a32cce
Bluetooth: Pause discovery and advertising during suspend

To prevent spurious wake ups, we disable any discovery or advertising
when we enter suspend and restore it when we exit suspend. While paused,
we disable any management requests to modify discovery or advertising.

Signed-off-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/mgmt.c