Service discovery is performed after reconnect and after receiving service changed indication. In current implementation Bluez does not remove cached services if they were not found in next discovery and no new services were put in their range. This patch set removes services which were previously found in range but were not found in current service discovery. Marcin Kraglak (2): shared/gatt-db: Remove services with match function shared/gatt-client: Validate services src/shared/gatt-client.c | 76 ++++++++++++++++++++++++++++++++++++++++++++++++ src/shared/gatt-db.c | 41 ++++++++++++++++++++++++++ src/shared/gatt-db.h | 7 +++++ 3 files changed, 124 insertions(+) -- 2.4.3 -- 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