Bluetooth: controller: split: Update lll_conn_flush interface

Updated the lll_conn_flush interface to pass the connection
handle while the LLL connection context stored handle has
been invalidated.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2020-01-17 18:05:43 +05:30 committed by Alberto Escolar
commit c793c0edda
4 changed files with 5 additions and 4 deletions

View file

@ -134,7 +134,7 @@ void lll_conn_isr_abort(void *param);
void lll_conn_rx_pkt_set(struct lll_conn *lll);
void lll_conn_tx_pkt_set(struct lll_conn *lll, struct pdu_data *pdu_data_tx);
void lll_conn_pdu_tx_prep(struct lll_conn *lll, struct pdu_data **pdu_data_tx);
void lll_conn_flush(struct lll_conn *lll);
void lll_conn_flush(u16_t handle, struct lll_conn *lll);
extern void ull_conn_lll_ack_enqueue(u16_t handle, struct node_tx *tx);
extern u16_t ull_conn_lll_max_tx_octets_get(struct lll_conn *lll);

View file

@ -801,7 +801,7 @@ static struct pdu_data *empty_tx_enqueue(struct lll_conn *lll)
return p;
}
void lll_conn_flush(struct lll_conn *lll)
void lll_conn_flush(u16_t handle, struct lll_conn *lll)
{
/* Nothing to be flushed */
}

View file

@ -798,7 +798,7 @@ static struct pdu_data *empty_tx_enqueue(struct lll_conn *lll)
return p;
}
void lll_conn_flush(struct lll_conn *lll)
void lll_conn_flush(u16_t handle, struct lll_conn *lll)
{
/* Nothing to be flushed */
}

View file

@ -1739,12 +1739,13 @@ static void tx_ull_flush(struct ll_conn *conn)
static void tx_lll_flush(void *param)
{
struct ll_conn *conn = (void *)HDR_LLL2EVT(param);
u16_t handle = ll_conn_handle_get(conn);
struct lll_conn *lll = param;
struct node_rx_pdu *rx;
struct node_tx *tx;
memq_link_t *link;
lll_conn_flush(lll);
lll_conn_flush(handle, lll);
link = memq_dequeue(lll->memq_tx.tail, &lll->memq_tx.head,
(void **)&tx);