Bluetooth: controller: removing unused functionality

Removing llcp_tx_flush() as it turns out it is not needed.

Signed-off-by: Erik Brockhoff <erbr@oticon.com>
This commit is contained in:
Erik Brockhoff 2022-04-06 12:26:28 +02:00 committed by Carles Cufí
commit 0d94ad69f6
3 changed files with 0 additions and 10 deletions

View file

@ -254,11 +254,6 @@ void llcp_tx_resume_data(struct ll_conn *conn, enum llcp_tx_q_pause_data_mask re
}
}
void llcp_tx_flush(struct ll_conn *conn)
{
/* TODO(thoh): do something here to flush the TX Q */
}
/*
* LLCP Procedure Creation
*/

View file

@ -343,7 +343,6 @@ static void lp_enc_st_unencrypted(struct ll_conn *conn, struct proc_ctx *ctx, ui
case LP_ENC_EVT_RUN:
/* Pause Tx data */
llcp_tx_pause_data(conn, LLCP_TX_QUEUE_PAUSE_DATA_ENCRYPTION);
llcp_tx_flush(conn);
lp_enc_send_enc_req(conn, ctx, evt, param);
break;
default:
@ -478,7 +477,6 @@ static void lp_enc_state_encrypted(struct ll_conn *conn, struct proc_ctx *ctx, u
case LP_ENC_EVT_RUN:
/* Pause Tx data */
llcp_tx_pause_data(conn, LLCP_TX_QUEUE_PAUSE_DATA_ENCRYPTION);
llcp_tx_flush(conn);
lp_enc_send_pause_enc_req(conn, ctx, evt, param);
break;
default:
@ -911,7 +909,6 @@ static void rp_enc_state_wait_rx_enc_req(struct ll_conn *conn, struct proc_ctx *
case RP_ENC_EVT_ENC_REQ:
/* Pause Tx data */
llcp_tx_pause_data(conn, LLCP_TX_QUEUE_PAUSE_DATA_ENCRYPTION);
llcp_tx_flush(conn);
/* Pause Rx data */
ull_conn_pause_rx_data(conn);
@ -1054,7 +1051,6 @@ static void rp_enc_state_wait_rx_pause_enc_req(struct ll_conn *conn, struct proc
case RP_ENC_EVT_PAUSE_ENC_REQ:
/* Pause Tx data */
llcp_tx_pause_data(conn, LLCP_TX_QUEUE_PAUSE_DATA_ENCRYPTION);
llcp_tx_flush(conn);
/*
* Pause Rx data; will be resumed when the encapsulated
* Start Procedure is done.

View file

@ -350,7 +350,6 @@ void llcp_proc_ctx_release(struct proc_ctx *ctx);
void llcp_tx_enqueue(struct ll_conn *conn, struct node_tx *tx);
void llcp_tx_pause_data(struct ll_conn *conn, enum llcp_tx_q_pause_data_mask pause_mask);
void llcp_tx_resume_data(struct ll_conn *conn, enum llcp_tx_q_pause_data_mask resume_mask);
void llcp_tx_flush(struct ll_conn *conn);
/*
* LLCP Procedure Response Timeout