Bluetooth: controller: llcp: fix for failing LL qualification tests
Fixes issue re. sending packets after sending TERMINATE_IND. Fixes issue re. erroneous error code on 'timed out' termination (ie when peer does not ack terminate_ind) Signed-off-by: Erik Brockhoff <erbr@oticon.com>
This commit is contained in:
parent
7daba33f2d
commit
25e6279493
2 changed files with 4 additions and 1 deletions
|
@ -514,6 +514,7 @@ static void lp_comm_send_req(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t
|
|||
ctx->state = LP_COMMON_STATE_WAIT_TX;
|
||||
} else {
|
||||
lp_comm_tx(conn, ctx);
|
||||
ctx->data.term.error_code = BT_HCI_ERR_LOCALHOST_TERM_CONN;
|
||||
ctx->state = LP_COMMON_STATE_WAIT_TX_ACK;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue