From 7261e5d87f06cc63c88b615b83714ded87b44320 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 7 Aug 2019 16:36:43 +0200 Subject: [PATCH] hci: set default le scan params (regression from 63270faae) --- src/hci.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hci.c b/src/hci.c index 252124263..a55f9692e 100644 --- a/src/hci.c +++ b/src/hci.c @@ -2798,6 +2798,10 @@ void hci_init(const hci_transport_t *transport, const void *config){ hci_stack->le_supervision_timeout = 0x0048; // 720 ms hci_stack->le_minimum_ce_length = 2; // 1.25 ms hci_stack->le_maximum_ce_length = 0x0030; // 30 ms + + // default LE Scanning + hci_stack->le_scan_interval = 0x1e0; + hci_stack->le_scan_window = 0x30; #endif #ifdef ENABLE_LE_PERIPHERAL