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

@ -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);