Message ID | 20250129172231.329172-1-ludovico.denittis@collabora.com |
---|---|
State | New |
Headers | show |
Series | [BlueZ] device: Clear only the pending flags that have been applied | expand |
diff --git a/src/device.c b/src/device.c index e8bff718c..17d023a61 100644 --- a/src/device.c +++ b/src/device.c @@ -7413,7 +7413,7 @@ void btd_device_flags_changed(struct btd_device *dev, uint32_t supported_flags, dev->supported_flags = supported_flags; dev->current_flags = current_flags; - dev->pending_flags = 0; + dev->pending_flags &= ~current_flags; if (!changed_flags) return;