mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-10-22 20:47:54 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user