Bluetooth: Controller: llcp: Add handling of unexpe CTRL PDU by CTE req

There was missing code responsible for handling of unexpected response
for CTE request. The commit adds code that will terminate connection
in case a peer device reposnes with unexpected control PDU that is not
a remote procedure reques.

Signed-off-by: Piotr Pryga <piotr.pryga@nordicsemi.no>
This commit is contained in:
Piotr Pryga 2022-04-29 14:47:41 +02:00 committed by Carles Cufí
commit 9e6f566858

View file

@ -274,7 +274,9 @@ static void lp_comm_complete_cte_req(struct ll_conn *conn, struct proc_ctx *ctx)
ull_cp_cte_req_set_disable(conn);
ctx->state = LP_COMMON_STATE_IDLE;
} else {
/* Illegal response opcode */
/* Illegal response opcode, internally changes state to
* LP_COMMON_STATE_IDLE
*/
lp_comm_terminate_invalid_pdu(conn, ctx);
}
} else {