From c682b0872f199b9880060e49bee889e4a600b512 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 31 May 2013 22:16:56 +0300 Subject: [PATCH] tools/l2cap-tester: Use PSM 0x1001 instead of 0x0001 Using the SDP PSM isn't a good idea since bluetoothd could be running and interfere with the test results. --- tools/l2cap-tester.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/l2cap-tester.c b/tools/l2cap-tester.c index 264031440..9466fef0d 100644 --- a/tools/l2cap-tester.c +++ b/tools/l2cap-tester.c @@ -227,19 +227,19 @@ static void test_data_free(void *test_data) } while (0) static const struct l2cap_client_data client_connect_success_test = { - .client_psm = 0x0001, - .server_psm = 0x0001, + .client_psm = 0x1001, + .server_psm = 0x1001, }; static const struct l2cap_client_data client_connect_nval_psm_test = { - .client_psm = 0x0001, + .client_psm = 0x1001, .expect_err = ECONNREFUSED, }; -static const uint8_t l2cap_connect_req[] = { 0x01, 0x00, 0x41, 0x00 }; +static const uint8_t l2cap_connect_req[] = { 0x01, 0x10, 0x41, 0x00 }; static const struct l2cap_server_data l2cap_server_success_test = { - .server_psm = 0x0001, + .server_psm = 0x1001, .send_req_code = BT_L2CAP_PDU_CONN_REQ, .send_req = l2cap_connect_req, .send_req_len = sizeof(l2cap_connect_req), -- 2.47.3