This is an automated email from the ASF dual-hosted git repository.

rymek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git

commit a96960c947177f0f542387025d5a63036920bc4b
Author: Ɓukasz Rymanowski <[email protected]>
AuthorDate: Thu Oct 25 13:05:59 2018 +0200

    nimble/ll: Don't send scan request in passive scan
    
    This fix applies only for extended scanner.
---
 nimble/controller/src/ble_ll_scan.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/nimble/controller/src/ble_ll_scan.c 
b/nimble/controller/src/ble_ll_scan.c
index 8b48491..901fa18 100644
--- a/nimble/controller/src/ble_ll_scan.c
+++ b/nimble/controller/src/ble_ll_scan.c
@@ -2122,7 +2122,8 @@ ble_ll_scan_rx_isr_end(struct os_mbuf *rxpdu, uint8_t 
crcok)
             goto scan_rx_isr_exit;
         }
 
-        if (ext_adv_mode == BLE_LL_EXT_ADV_MODE_SCAN) {
+        if ((ext_adv_mode == BLE_LL_EXT_ADV_MODE_SCAN) &&
+                (scanphy->scan_type == BLE_SCAN_TYPE_ACTIVE)) {
             chk_send_req = 1;
         }
         chk_wl = 1;

Reply via email to