Bluetooth: controller: implementing state check for ENC reply API
Now checking that encryption procedure is in correct state to accept a reply from host. Signed-off-by: Erik Brockhoff <erbr@oticon.com>
This commit is contained in:
parent
06078ee54e
commit
025b9745d3
5 changed files with 21 additions and 22 deletions
|
@ -1200,6 +1200,11 @@ void llcp_rp_enc_ltk_req_neg_reply(struct ll_conn *conn, struct proc_ctx *ctx)
|
|||
rp_enc_execute_fsm(conn, ctx, RP_ENC_EVT_LTK_REQ_NEG_REPLY, NULL);
|
||||
}
|
||||
|
||||
bool llcp_rp_enc_ltk_req_reply_allowed(struct ll_conn *conn, struct proc_ctx *ctx)
|
||||
{
|
||||
return (ctx->state == RP_ENC_STATE_WAIT_LTK_REPLY);
|
||||
}
|
||||
|
||||
void llcp_rp_enc_run(struct ll_conn *conn, struct proc_ctx *ctx, void *param)
|
||||
{
|
||||
rp_enc_execute_fsm(conn, ctx, RP_ENC_EVT_RUN, param);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue