andrzej-kaczmarek commented on a change in pull request #599: nimble/ll: Fix
crash when scanning for AUX packets
URL: https://github.com/apache/mynewt-nimble/pull/599#discussion_r331680573
##########
File path: nimble/controller/src/ble_ll_scan.c
##########
@@ -182,6 +182,19 @@ static struct os_mempool ext_adv_pool;
static int ble_ll_scan_start(struct ble_ll_scan_sm *scansm,
struct ble_ll_sched_item *sch);
+static void
+ble_ll_aux_scan_drop(struct ble_ll_aux_data *aux_data)
+{
+ struct ble_ll_scan_sm *scansm = &g_ble_ll_scan_sm;
+
+ STATS_INC(ble_ll_stats, aux_scan_drop);
+
+ BLE_LL_ASSERT(aux_data);
+
+ ble_npl_event_set_arg(&scansm->aux_scan_drop_ev, aux_data);
Review comment:
if you have aux scans for 2 separate instances already scheduled then you
may need to drop aux from 2nd chain before event sent for 1st chain was handled
in ll_task
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services