From: Tedd Ho-Jeong An Date: Mon, 4 Oct 2021 17:01:26 +0000 (-0700) Subject: Bluetooth: hci_vhci: Fix to set the force_wakeup value X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8b89637dbac2d73d9f3dadf91b4a7dcdb1fc23af;p=linux.git Bluetooth: hci_vhci: Fix to set the force_wakeup value 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 Signed-off-by: Marcel Holtmann --- diff --git a/drivers/bluetooth/hci_vhci.c b/drivers/bluetooth/hci_vhci.c index 20f8ce995555b..56c6b22be10b6 100644 --- a/drivers/bluetooth/hci_vhci.c +++ b/drivers/bluetooth/hci_vhci.c @@ -182,6 +182,8 @@ static ssize_t force_wakeup_write(struct file *file, if (data->wakeup == enable) return -EALREADY; + data->wakeup = enable; + return count; }