From bde7f5e884003d932fffc9dfdadc3e756e893215 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Sat, 16 Nov 2019 20:51:40 +0100 Subject: [PATCH] nimble/ll: Fix not updating aux_received stat correctly aux_received was incorectly updated also for scan rsp received. --- nimble/controller/src/ble_ll_scan.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nimble/controller/src/ble_ll_scan.c b/nimble/controller/src/ble_ll_scan.c index 8a9c214f4..4275e8411 100644 --- a/nimble/controller/src/ble_ll_scan.c +++ b/nimble/controller/src/ble_ll_scan.c @@ -1680,6 +1680,10 @@ ble_ll_scan_rx_isr_start(uint8_t pdu_type, uint16_t *rxflags) } #endif + if (scansm->cur_aux_data && !scansm->scan_rsp_pending ) { + STATS_INC(ble_ll_stats, aux_received); + } + /* * If this is the first PDU after we sent the scan response (as * denoted by the scan rsp pending flag), we set a bit in the ble @@ -1702,10 +1706,6 @@ ble_ll_scan_rx_isr_start(uint8_t pdu_type, uint16_t *rxflags) } } - if (scansm->cur_aux_data && !scansm->scan_rsp_pending ) { - STATS_INC(ble_ll_stats, aux_received); - } - /* Disable wfr if running */ ble_ll_wfr_disable(); break;