Diff between d086d9565ab447722934ce750df95a45f649e4ba and 2475bdc197bcf7a6f4f7a8c60a072fde85154235

Changed Files

File Additions Deletions Status
tools/l2cap-tester.c +5 -0 modified

Full Patch

diff --git a/tools/l2cap-tester.c b/tools/l2cap-tester.c
index 07522c3..3f6dd29 100644
--- a/tools/l2cap-tester.c
+++ b/tools/l2cap-tester.c
@@ -73,6 +73,7 @@ struct l2cap_data {
 	const void *write_data;
 
 	bool enable_ssp;
+	uint8_t client_io_cap;
 	int sec_level;
 	bool reject_ssp;
 
@@ -275,6 +276,7 @@ static const struct l2cap_data client_connect_ssp_success_test_2 = {
 	.server_psm = 0x1001,
 	.enable_ssp = true,
 	.sec_level  = BT_SECURITY_HIGH,
+	.client_io_cap = 0x04,
 };
 
 static const struct l2cap_data client_connect_pin_success_test = {
@@ -671,6 +673,9 @@ static void setup_powered_common(void)
 				data->mgmt_index, pin_code_request_callback,
 				data, NULL);
 
+	if (test->client_io_cap)
+		bthost_set_io_capability(bthost, test->client_io_cap);
+
 	if (test && test->client_pin)
 		bthost_set_pin_code(bthost, test->client_pin,
 							test->client_pin_len);