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:
parent
3664e6ca68
commit
9e6f566858
1 changed files with 3 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue