bluetooth: tester: Fix BTP L2CAP listen command

Fixes regression introduced in 26cf0b6850
"bluetooth: tester: Add support for missing BTP L2CAP listen param".

Success status was missing resulting in BTP to fail for tests that
require success on connection.

Signed-off-by: Szymon Janc <szymon.janc@codecoup.pl>
This commit is contained in:
Szymon Janc 2023-03-16 13:31:34 +01:00 committed by Carles Cufí
parent ba7656d05f
commit 3e7205876c

View file

@ -472,6 +472,8 @@ static uint8_t listen(const void *cmd, uint16_t cmd_len,
server->psm = psm;
switch (cp->response) {
case BTP_L2CAP_CONNECTION_RESPONSE_SUCCESS:
break;
case BTP_L2CAP_CONNECTION_RESPONSE_INSUFF_ENC_KEY:
/* TSPX_psm_encryption_key_size_required */
req_keysize = 16;