Diff between 05ede13d22df024a0cdc4d449d8329da36950995 and 41cfe55ea759d528db7a0042056eb39e3bab84a6
Changed Files
| File | Additions | Deletions | Status |
| src/device.c | +4 | -0 | modified |
Full Patch
diff --git a/src/device.c b/src/device.c
index 57577e5..0e563f9 100644
--- a/src/device.c
+++ b/src/device.c
@@ -1628,6 +1628,10 @@ void device_set_wake_allowed(struct btd_device *device, bool wake_allowed,
device->pending_wake_allowed = wake_allowed;
flags = device->current_flags;
+
+ /* Include the pending flags, or they may get overwritten. */
+ flags |= device->pending_flags;
+
if (wake_allowed)
flags |= DEVICE_FLAG_REMOTE_WAKEUP;
else