nimble/ll: Fix not updating aux_received stat correctly
aux_received was incorectly updated also for scan rsp received.
@@ -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;
