From a96960c947177f0f542387025d5a63036920bc4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Rymanowski?= Date: Thu, 25 Oct 2018 13:05:59 +0200 Subject: [PATCH] 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 8b4849134..901fa184e 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;