Skip to content

Commit 9e6f566

Browse files
ppryga-nordiccarlescufi
authored andcommitted
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 <[email protected]>
1 parent 3664e6c commit 9e6f566

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

subsys/bluetooth/controller/ll_sw/ull_llcp_common.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,9 @@ static void lp_comm_complete_cte_req(struct ll_conn *conn, struct proc_ctx *ctx)
274274
ull_cp_cte_req_set_disable(conn);
275275
ctx->state = LP_COMMON_STATE_IDLE;
276276
} else {
277-
/* Illegal response opcode */
277+
/* Illegal response opcode, internally changes state to
278+
* LP_COMMON_STATE_IDLE
279+
*/
278280
lp_comm_terminate_invalid_pdu(conn, ctx);
279281
}
280282
} else {

0 commit comments

Comments
 (0)