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: ac7d0506f88508e7440288c1ec4319a9f7d0ad44. 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 <piotr.pryga@nordicsemi.no>
This commit is contained in:
parent
b9dcc3d4e4
commit
364a8c2786
|
@ -250,6 +250,11 @@ static void lp_comm_complete_cte_req(struct ll_conn *conn, struct proc_ctx *ctx)
|
|||
if (conn->llcp.cte_req.req_interval != 0U) {
|
||||
conn->llcp.cte_req.req_expire =
|
||||
conn->llcp.cte_req.req_interval;
|
||||
} else {
|
||||
/* Disable the CTE request procedure when it is completed in
|
||||
* case it was executed as non-periodic.
|
||||
*/
|
||||
conn->llcp.cte_req.is_enabled = 0U;
|
||||
}
|
||||
ctx->state = LP_COMMON_STATE_IDLE;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue