You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ry...@apache.org on 2019/07/12 13:46:44 UTC
[mynewt-nimble] 07/12: nimble/ll: Fix error handling when sending
chained adv report
This is an automated email from the ASF dual-hosted git repository.
rymek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
commit d1bcaa11a860710def805b4f4bf1da17e3ae1e47
Author: Ćukasz Rymanowski <lu...@codecoup.pl>
AuthorDate: Wed Jul 10 13:41:40 2019 +0200
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.
---
nimble/controller/src/ble_ll_scan.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/nimble/controller/src/ble_ll_scan.c b/nimble/controller/src/ble_ll_scan.c
index 9e755cc..aa87e8a 100644
--- a/nimble/controller/src/ble_ll_scan.c
+++ b/nimble/controller/src/ble_ll_scan.c
@@ -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);