]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: hci_sync: Fix resuming scan after suspend resume
authorZhengping Jiang <jiangzp@google.com>
Tue, 12 Jul 2022 00:05:30 +0000 (17:05 -0700)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 22 Jul 2022 00:08:52 +0000 (17:08 -0700)
commit60a63153a23d567e151cad556926bb460d4b1eba
tree5c92785efb795572875f21b50404bd81a60d509e
parent1ab2e6f9a410f09e7db040e17ba025189716523d
Bluetooth: hci_sync: Fix resuming scan after suspend resume

After resuming, remove setting scanning_paused to false, because it is
checked and set to false in hci_resume_scan_sync. Also move setting
the value to false before updating passive scan, because the value is
used when resuming passive scan.

Fixes: 55d34128519ed (Bluetooth: hci_sync: Fix attempting to suspend with
unfiltered passive scan)

Signed-off-by: Zhengping Jiang <jiangzp@google.com>
Reviewed-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_sync.c