[PATCH 2/3] android/tester: Set ssp_request_cb to default value in teardown

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 ce13bf7..be3d785 100644
--- a/android/tester-main.c
+++ b/android/tester-main.c
@@ -1633,6 +1633,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();
 }
-- 
1.9.0

--
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




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux