]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: pause/resume advertising around suspend
authorDaniel Winkler <danielwinkler@google.com>
Tue, 15 Sep 2020 21:14:27 +0000 (14:14 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 14 Sep 2020 18:22:40 +0000 (20:22 +0200)
commit53274477acf23a7995428e981924e56379778874
treee9a74727e6d41ba53422bf386ef03f27c0906a99
parente91172151a40d16d978a76159a07ec5c7be5de32
Bluetooth: pause/resume advertising around suspend

Currently, the controller will continue advertising when the system
enters suspend. This patch makes sure that all advertising instances are
paused when entering suspend, and resumed when suspend exits.

The Advertising and Suspend/Resume test suites were both run on this
change on 4.19 kernel with both hardware offloaded multi-advertising and
software rotated multi-advertising. In addition, a new test was added
that performs the following steps:
* Register 3 advertisements via bluez RegisterAdvertisement
* Verify reception of all advertisements by remote peer
* Enter suspend on DUT
* Verify failure to receive all advertisements by remote peer
* Exit suspend on DUT
* Verify reception of all advertisements by remote peer

Signed-off-by: Daniel Winkler <danielwinkler@google.com>
Reviewed-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_request.c