Bluetooth: controller: Impl. check for active remote initiated CPR

Checking if a remote initiated CPR is currently active on given conn

Signed-off-by: Erik Brockhoff <erbr@oticon.com>
This commit is contained in:
Erik Brockhoff 2022-04-27 12:42:55 +02:00 committed by Carles Cufí
parent 84a8294624
commit 4ae3dc8cb2
2 changed files with 15 additions and 0 deletions

View file

@ -942,6 +942,15 @@ void ull_cp_conn_param_req_neg_reply(struct ll_conn *conn, uint8_t error_code)
llcp_rp_conn_param_req_neg_reply(conn, ctx);
}
}
uint8_t ull_cp_remote_cpr_pending(struct ll_conn *conn)
{
struct proc_ctx *ctx;
ctx = llcp_rr_peek(conn);
return (ctx && ctx->proc == PROC_CONN_PARAM_REQ);
}
#endif /* CONFIG_BT_CTLR_CONN_PARAM_REQ */
#if defined(CONFIG_BT_CTLR_DF_CONN_CTE_RSP)

View file

@ -135,6 +135,12 @@ void ull_cp_conn_param_req_neg_reply(struct ll_conn *conn, uint8_t error_code);
*/
uint8_t ull_cp_remote_dle_pending(struct ll_conn *conn);
/**
* @brief Check if a remote connection param reg is in the
* works.
*/
uint8_t ull_cp_remote_cpr_pending(struct ll_conn *conn);
/**
* @brief Initiate a Termination Procedure.
*/