From e34d1c0481e1619c0cb92b89e50203c56f479a0f Mon Sep 17 00:00:00 2001 From: Anderson Lizardo Date: Fri, 24 Jan 2014 21:54:01 -0400 Subject: [PATCH] tools/l2cap-tester: Test setsockopt(BT_SECURITY) on LE client Although setting a security level using setsockopt(BT_SECURITY) is optional for LE sockets (it will default to doing unencrypted/unauthenticated connection), it is a common operation and it is done by BlueZ daemon and some tools. --- tools/l2cap-tester.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/l2cap-tester.c b/tools/l2cap-tester.c index 05202bd96..d541f1b7e 100644 --- a/tools/l2cap-tester.c +++ b/tools/l2cap-tester.c @@ -461,6 +461,7 @@ static const struct l2cap_data le_server_success_test = { static const struct l2cap_data le_att_client_connect_success_test_1 = { .cid = 0x0004, + .sec_level = BT_SECURITY_LOW, }; static const struct l2cap_data le_att_server_success_test_1 = { -- 2.47.3