summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorTedd Ho-Jeong An <tedd.an@intel.com>2021-10-04 20:01:26 +0300
committerMarcel Holtmann <marcel@holtmann.org>2021-10-07 18:57:23 +0300
commit8b89637dbac2d73d9f3dadf91b4a7dcdb1fc23af (patch)
treeb66dbf41c8f042240ebb7a065e7410dd67331863 /drivers
parent107fe0482b549a0e43a971e5fd104719c6e495ef (diff)
downloadlinux-8b89637dbac2d73d9f3dadf91b4a7dcdb1fc23af.tar.xz
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 <tedd.an@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/bluetooth/hci_vhci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/bluetooth/hci_vhci.c b/drivers/bluetooth/hci_vhci.c
index 20f8ce995555..56c6b22be10b 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;
}