This adds refreshing of device cache in case if device is not bonded. It affects on TC_GAD_CL_BV_01_C, TC_GAD_CL_BV_02_C and search services PTS test cases. With this patch those PTS tests cases pass. --- android/gatt.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/android/gatt.c b/android/gatt.c index 157ebe6..1c94713 100644 --- a/android/gatt.c +++ b/android/gatt.c @@ -570,6 +570,10 @@ static void connection_cleanup(struct gatt_device *device) bt_le_discovery_stop(NULL); } + /* If device is not bonded service cache should be refreshed */ + if (!bt_device_is_bonded(&device->bdaddr)) + queue_remove_all(device->services, NULL, NULL, destroy_service); + device_set_state(device, DEVICE_DISCONNECTED); } -- 1.9.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