From 2475bdc197bcf7a6f4f7a8c60a072fde85154235 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Sat, 13 Sep 2014 05:52:40 +0300 Subject: [PATCH] tools/l2cap-tester: Specify explicit IO capability when necessary --- tools/l2cap-tester.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/l2cap-tester.c b/tools/l2cap-tester.c index 07522c3e6..3f6dd2986 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); -- 2.47.3