Bluetooth: tester: Set the required minimim security level of LE COC
With this change, these two tests can be supported: - L2CAP/LE/CFC/BV-11-C - L2CAP/LE/CFC/BV-14-C Signed-off-by: Ryan Chu <ryan.chu@nordicsemi.no>
This commit is contained in:
parent
70a27af090
commit
385000e8d9
@ -19,7 +19,7 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME);
|
||||
#include "bttester.h"
|
||||
|
||||
#define CONTROLLER_INDEX 0
|
||||
#define DATA_MTU 230
|
||||
#define DATA_MTU 264
|
||||
#define CHANNELS 2
|
||||
#define SERVERS 1
|
||||
|
||||
@ -308,6 +308,14 @@ static void listen(uint8_t *data, uint16_t len)
|
||||
server->accept = accept;
|
||||
server->psm = cmd->psm;
|
||||
|
||||
if (server->psm == 0x00F4) {
|
||||
/* TSPX_psm_encryption_key_size_required */
|
||||
server->sec_level = BT_SECURITY_L4;
|
||||
} else if (server->psm == 0x00F2) {
|
||||
/* TSPX_psm_authentication_required */
|
||||
server->sec_level = BT_SECURITY_L3;
|
||||
}
|
||||
|
||||
if (bt_l2cap_server_register(server) < 0) {
|
||||
server->psm = 0U;
|
||||
goto fail;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user