From 2f061b693db2cbf2f9a9b819f2d1efbcf61333f6 Mon Sep 17 00:00:00 2001 From: Marcin Kraglak Date: Fri, 5 Sep 2014 10:09:55 +0200 Subject: [PATCH] android/tester: Set ssp_request_cb to default value in teardown It could be set te default_ssp_req_cb and should be set again to ssp_request_cb. --- android/tester-main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/android/tester-main.c b/android/tester-main.c index f5f46fbbe..256d5c4ae 100644 --- a/android/tester-main.c +++ b/android/tester-main.c @@ -1613,6 +1613,12 @@ static void teardown(const void *test_data) data->device->close(data->device); audio_hw_device_close(data->audio); + /* + * Ssp_request_cb pointer can be set do default_ssp_req_cb. + * Set it back to ssp_request_cb + */ + bt_callbacks.ssp_request_cb = ssp_request_cb; + if (!data->bluetoothd_pid) tester_teardown_complete(); } -- 2.47.3