Bluetooth: hci_vhci: Fix to set the force_wakeup value
authorTedd Ho-Jeong An <tedd.an@intel.com>
Mon, 4 Oct 2021 17:01:26 +0000 (10:01 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 7 Oct 2021 15:57:23 +0000 (17:57 +0200)
This patch sets the wakeup state of the vhci driver when the
force_wakeup is updated.

Fixes: 60edfad4fd0b6 ("Bluetooth: hci_vhci: Add force_prevent_wake entry")
Signed-off-by: Tedd Ho-Jeong An <tedd.an@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_vhci.c

index 20f8ce995555be82569fbb6b6eaf255672fea1ed..56c6b22be10b636d295073aeb20b8e3ddaac8899 100644 (file)
@@ -182,6 +182,8 @@ static ssize_t force_wakeup_write(struct file *file,
        if (data->wakeup == enable)
                return -EALREADY;
 
+       data->wakeup = enable;
+
        return count;
 }