Diff between 5069c5d68c16b0ecd7b6f9adccdf8e84db6f94a4 and 0311740498a2306a6143651a1195e2865c421c60

Changed Files

File Additions Deletions Status
src/device.c +1 -1 modified

Full Patch

diff --git a/src/device.c b/src/device.c
index 74dd67a..ac0b0e0 100644
--- a/src/device.c
+++ b/src/device.c
@@ -7239,7 +7239,7 @@ void btd_device_flags_changed(struct btd_device *dev, uint32_t supported_flags,
 	if (!changed_flags)
 		return;
 
-	if (changed_flags & DEVICE_FLAG_REMOTE_WAKEUP) {
+	if (changed_flags & DEVICE_FLAG_REMOTE_WAKEUP && dev->wake_support) {
 		flag_value = !!(current_flags & DEVICE_FLAG_REMOTE_WAKEUP);
 		dev->pending_wake_allowed = flag_value;