Bluetooth: controller: Fix BIG complete event generation

Fix the LE BIG complete event generation to not use the
Sync Established structure to access the status value.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2021-03-10 06:54:44 +05:30 committed by Carles Cufí
commit aff7d83149
3 changed files with 12 additions and 8 deletions

View file

@ -6479,7 +6479,6 @@ static void le_big_complete(struct pdu_data *pdu_data,
struct bt_hci_evt_le_big_complete *sep;
struct ll_adv_iso_set *adv_iso;
struct lll_adv_iso *lll;
struct node_rx_sync *se;
size_t evt_size;
adv_iso = node_rx->hdr.rx_ftr.param;
@ -6489,8 +6488,7 @@ static void le_big_complete(struct pdu_data *pdu_data,
sep = meta_evt(buf, BT_HCI_EVT_LE_BIG_COMPLETE, evt_size);
se = (void *)pdu_data;
sep->status = se->status;
sep->status = BT_HCI_ERR_SUCCESS;
sep->big_handle = sys_cpu_to_le16(node_rx->hdr.handle);
if (sep->status) {