summaryrefslogtreecommitdiff
path: root/tools/l2cap-tester.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-03-17 22:46:40 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2014-03-17 22:46:40 +0200
commit696e561c08ab4a447422325faf3ecbbda9dc4b6b (patch)
tree8c6fbb3b7d266c62c4376a4fb01c8e519f31f8e8 /tools/l2cap-tester.c
parent7c19e6d2e540690eb1903f05ed7e416caea59c4e (diff)
downloadbluez-696e561c08ab4a447422325faf3ecbbda9dc4b6b.tar.gz
tools/l2cap-tester: Fix setting connectable for LE server tests
Diffstat (limited to 'tools/l2cap-tester.c')
-rw-r--r--tools/l2cap-tester.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/l2cap-tester.c b/tools/l2cap-tester.c
index 13a07e8a9..79362b2fc 100644
--- a/tools/l2cap-tester.c
+++ b/tools/l2cap-tester.c
@@ -718,14 +718,14 @@ static void setup_powered_server(const void *test_data)
tester_print("Powering on controller");
- if (data->hciemu_type == HCIEMU_TYPE_BREDR)
- mgmt_send(data->mgmt, MGMT_OP_SET_CONNECTABLE, data->mgmt_index,
- sizeof(param), param,
- NULL, NULL, NULL);
- else
- mgmt_send(data->mgmt, MGMT_OP_SET_ADVERTISING, data->mgmt_index,
+ mgmt_send(data->mgmt, MGMT_OP_SET_CONNECTABLE, data->mgmt_index,
sizeof(param), param, NULL, NULL, NULL);
+ if (data->hciemu_type != HCIEMU_TYPE_BREDR)
+ mgmt_send(data->mgmt, MGMT_OP_SET_ADVERTISING,
+ 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);