diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2014-09-13 05:52:40 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-09-13 18:04:27 +0300 |
commit | 2475bdc197bcf7a6f4f7a8c60a072fde85154235 (patch) | |
tree | 3a32e3b6a1ac008e94a516dfd282a71673a1be9e /tools/l2cap-tester.c | |
parent | d086d9565ab447722934ce750df95a45f649e4ba (diff) | |
download | bluez-2475bdc197bcf7a6f4f7a8c60a072fde85154235.tar.gz |
tools/l2cap-tester: Specify explicit IO capability when necessary
Diffstat (limited to 'tools/l2cap-tester.c')
-rw-r--r-- | tools/l2cap-tester.c | 5 |
1 files changed, 5 insertions, 0 deletions
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); |