nimble/ll: Fix error handling when sending chained adv report

In case there NimBLE has scheduled for next aux chain which is already
fired, but there was an issue with previous report sending over the HCI,
removing scheduled item from the scheduler will not succeed.

This patch makes sure truncated event will be delivered to the
host in such a case.
This commit is contained in:
Łukasz Rymanowski
2019-07-12 15:46:32 +02:00
parent 03a6288083
commit d1bcaa11a8
+2 -1
View File
@@ -3155,8 +3155,9 @@ ble_ll_scan_rx_pkt_in(uint8_t ptype, struct os_mbuf *om, struct ble_mbuf_hdr *hd
*/
ble_ll_scan_aux_data_unref(aux_data->sch.cb_arg);
aux_data->sch.cb_arg = NULL;
evt_possibly_truncated = 1;
}
evt_possibly_truncated = 1;
}
} else if (!rc && scansm->scan_filt_dups) {
ble_ll_scan_dup_update_ext(ident_addr_type, ident_addr, aux_data);