When a new HID or HOG device is in range, Bluez reports the following error: ``` src/device.c:set_wake_allowed_complete() Set device flags return status: Invalid Parameters ``` Also, a side effect of that issue, when pairing a HID or HOG device, the wake_allowed property doesn't get enabled by default, as expected. It requires a Bluez restart in order to get that property correctly set. This patch series addresses those issues. Ludovico de Nittis (3): adapter: Preserve pending flags when setting the Device Privacy Mode device: Preserve pending flags when setting the wake allowed device: Try to set the wake_allowed property only for bonded devices src/adapter.c | 5 ++++- src/device.c | 19 +++++++++++++++---- 2 files changed, 19 insertions(+), 5 deletions(-) -- 2.49.0