Bluetooth: controller: completing procedure pause handling

Implementing the final parts of procedure pause mechanism
This is needed to bar procedures from generating pdus during encryption
procedure handling

Signed-off-by: Erik Brockhoff <erbr@oticon.com>

wip
This commit is contained in:
Erik Brockhoff 2021-12-14 11:40:51 +01:00 committed by Carles Cufí
commit a148635837
8 changed files with 78 additions and 13 deletions

View file

@ -416,7 +416,7 @@ static void lp_comm_send_req(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t
}
break;
case PROC_TERMINATE:
if (ctx->pause || !llcp_tx_alloc_peek(conn, ctx)) {
if (!llcp_tx_alloc_peek(conn, ctx)) {
ctx->state = LP_COMMON_STATE_WAIT_TX;
} else {
lp_comm_tx(conn, ctx);