Skip to content

Commit 364a8c2

Browse files
ppryga-nordiccarlescufi
authored andcommitted
Bluetooth: Controller: df: CTE req not disabled if run in single shot
There is an error. CTE request control procedure can be run in single shot or periodic mode. In case of run in single show, it is not disabled after completion. The code responsible for the disable was deleted by commit: ac7d050. The cte_req.is_enabled should be set to zero if the CTE request completes and cte_req.req_interval is zero. Signed-off-by: Piotr Pryga <[email protected]>
1 parent b9dcc3d commit 364a8c2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

subsys/bluetooth/controller/ll_sw/ull_llcp_common.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,11 @@ static void lp_comm_complete_cte_req(struct ll_conn *conn, struct proc_ctx *ctx)
250250
if (conn->llcp.cte_req.req_interval != 0U) {
251251
conn->llcp.cte_req.req_expire =
252252
conn->llcp.cte_req.req_interval;
253+
} else {
254+
/* Disable the CTE request procedure when it is completed in
255+
* case it was executed as non-periodic.
256+
*/
257+
conn->llcp.cte_req.is_enabled = 0U;
253258
}
254259
ctx->state = LP_COMMON_STATE_IDLE;
255260
} else {

0 commit comments

Comments
 (0)