Message ID | 20210303163404.1779850-1-abhishekpandit@chromium.org |
---|---|
Headers | show |
Series | Bluetooth: Suspend improvements | expand |
Hi Abhishek, > During suspend, there are a few scan enable and set event filter > commands that don't need to be sent unless there are actual BR/EDR > devices capable of waking the system. Check the HCI_PSCAN bit before > writing scan enable and use a new dev flag, HCI_EVENT_FILTER_CONFIGURED > to control whether to clear the event filter. > > Signed-off-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org> > Reviewed-by: Archie Pusaka <apusaka@chromium.org> > Reviewed-by: Alain Michaud <alainm@chromium.org> > --- > > Changes in v3: > * Minor change to if statement > > Changes in v2: > * Removed hci_dev_lock from hci_cc_set_event_filter since flags are > set/cleared atomically > > include/net/bluetooth/hci.h | 1 + > net/bluetooth/hci_event.c | 27 +++++++++++++++++++++++ > net/bluetooth/hci_request.c | 44 +++++++++++++++++++++++-------------- > 3 files changed, 55 insertions(+), 17 deletions(-) patch has been applied to bluetooth-next tree. Regards Marcel