nimble/controller: Use scansm from function parameter

Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/ef1b67ff
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/ef1b67ff
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/ef1b67ff

Branch: refs/heads/bluetooth5
Commit: ef1b67ff8700db9e191ec5a67c74c6e29311ff26
Parents: 5ea502c
Author: Łukasz Rymanowski <[email protected]>
Authored: Fri May 5 14:12:47 2017 +0200
Committer: Łukasz Rymanowski <[email protected]>
Committed: Thu May 11 14:16:39 2017 +0200

----------------------------------------------------------------------
 net/nimble/controller/src/ble_ll_scan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/ef1b67ff/net/nimble/controller/src/ble_ll_scan.c
----------------------------------------------------------------------
diff --git a/net/nimble/controller/src/ble_ll_scan.c 
b/net/nimble/controller/src/ble_ll_scan.c
index 7f0c40b..1b540bc 100644
--- a/net/nimble/controller/src/ble_ll_scan.c
+++ b/net/nimble/controller/src/ble_ll_scan.c
@@ -486,7 +486,7 @@ ble_ll_hci_send_adv_report(uint8_t pdu_type, uint8_t txadd, 
uint8_t *rxbuf,
             rc = ble_ll_hci_event_send(orig_evbuf);
             if (!rc) {
                 /* If filtering, add it to list of duplicate addresses */
-                if (g_ble_ll_scan_sm.scan_filt_dups) {
+                if (scansm->scan_filt_dups) {
                     ble_ll_scan_add_dup_adv(adv_addr, txadd, subev);
                 }
             }

Reply via email to