Skip to content
Commit ff7f2926 authored by Vasyl Vavrychuk's avatar Vasyl Vavrychuk Committed by Marcel Holtmann
Browse files

Bluetooth: core: Fix missing power_on work cancel on HCI close



Move power_on work cancel to hci_dev_close_sync to ensure that power_on
work is canceled after HCI interface down, power off, rfkill, etc.

For example, if

    hciconfig hci0 down

is done early enough during boot, it may run before power_on work.
Then, power_on work will actually bring up interface despite above
hciconfig command.

Signed-off-by: default avatarVasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 46225947
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment