tools/l2cap-tester: Fix missing pairable setting enabling

This commit is contained in:
Johan Hedberg 2014-01-13 16:29:19 +02:00
parent 579876ea9e
commit 9e02000353

View File

@ -491,6 +491,10 @@ static void setup_powered_client(const void *test_data)
tester_print("Powering on controller");
mgmt_send(data->mgmt, MGMT_OP_SET_PAIRABLE, data->mgmt_index,
sizeof(param), param,
NULL, NULL, NULL);
if (data->hciemu_type == HCIEMU_TYPE_LE)
mgmt_send(data->mgmt, MGMT_OP_SET_LE, data->mgmt_index,
sizeof(param), param, NULL, NULL, NULL);
@ -527,6 +531,9 @@ static void setup_powered_server(const void *test_data)
sizeof(param), param, NULL, NULL, NULL);
}
mgmt_send(data->mgmt, MGMT_OP_SET_PAIRABLE, data->mgmt_index,
sizeof(param), param, NULL, NULL, NULL);
mgmt_send(data->mgmt, MGMT_OP_SET_POWERED, data->mgmt_index,
sizeof(param), param, setup_powered_server_callback,
NULL, NULL);