diff --git a/nimble/controller/src/ble_ll_scan.c b/nimble/controller/src/ble_ll_scan.c index 51fb50d48..06d33ae2a 100644 --- a/nimble/controller/src/ble_ll_scan.c +++ b/nimble/controller/src/ble_ll_scan.c @@ -2988,7 +2988,6 @@ ble_ll_scan_rx_pkt_in(uint8_t ptype, struct os_mbuf *om, struct ble_mbuf_hdr *hd /* Set scan response check flag */ scan_rsp_chk = BLE_MBUF_HDR_SCAN_RSP_RCV(hdr); - /* We dont care about scan requests or connect requests */ if (!BLE_MBUF_HDR_CRC_OK(hdr)) { goto scan_continue; } @@ -3010,6 +3009,7 @@ ble_ll_scan_rx_pkt_in(uint8_t ptype, struct os_mbuf *om, struct ble_mbuf_hdr *hd } #endif + /* We dont care about scan requests or connect requests */ if ((ptype == BLE_ADV_PDU_TYPE_SCAN_REQ) || (ptype == BLE_ADV_PDU_TYPE_CONNECT_IND)) { goto scan_continue; }