Message ID | 20250325172846.139431-3-ludovico.denittis@collabora.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | Fix wake_allowed reported error and not being set after pairing | expand |
Context | Check | Description |
---|---|---|
tedd_an/pre-ci_am | success | Success |
diff --git a/src/device.c b/src/device.c index e8bff718c..474ec5763 100644 --- a/src/device.c +++ b/src/device.c @@ -1605,6 +1605,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