Bluetooth: controller: split: Add hook for flushing in LLL
Add hook for flushing in LLL to allow clean-up of LLL-specific resources. Signed-off-by: Wolfgang Puffitsch <wopu@demant.com>
This commit is contained in:
parent
d534492bf9
commit
537f06a532
3 changed files with 8 additions and 0 deletions
|
@ -160,5 +160,6 @@ 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);
|
||||
|
||||
extern void ull_conn_lll_ack_enqueue(u16_t handle, struct node_tx *tx);
|
||||
|
|
|
@ -854,3 +854,8 @@ static struct pdu_data *empty_tx_enqueue(struct lll_conn *lll)
|
|||
|
||||
return p;
|
||||
}
|
||||
|
||||
void lll_conn_flush(struct lll_conn *lll)
|
||||
{
|
||||
/* Nothing to be flushed */
|
||||
}
|
||||
|
|
|
@ -1578,6 +1578,8 @@ static void tx_lll_flush(void *param)
|
|||
struct node_tx *tx;
|
||||
memq_link_t *link;
|
||||
|
||||
lll_conn_flush(lll);
|
||||
|
||||
link = memq_dequeue(lll->memq_tx.tail, &lll->memq_tx.head,
|
||||
(void **)&tx);
|
||||
while (link) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue