Send property change for Modalias only if it changed. This fix sending multiple unneeded property change events during discovery. --- src/device.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/device.c b/src/device.c index 601dfdc..a69cfa6 100644 --- a/src/device.c +++ b/src/device.c @@ -4811,6 +4811,10 @@ gboolean btd_device_remove_attio_callback(struct btd_device *device, guint id) void btd_device_set_pnpid(struct btd_device *device, uint16_t source, uint16_t vendor, uint16_t product, uint16_t version) { + if (device->vendor_src == source && device->version == version && + device->vendor == vendor && device->product == product) + return; + device->vendor_src = source; device->vendor = vendor; device->product = product; -- 1.8.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html