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: 60edfad4fd ("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>
This commit is contained in:
Tedd Ho-Jeong An 2021-10-04 10:01:26 -07:00 committed by Marcel Holtmann
parent 107fe0482b
commit 8b89637dba
1 changed files with 2 additions and 0 deletions

View 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;
}