From f827e9fc320861552d884a2706c5a93fe33c69e3 Mon Sep 17 00:00:00 2001 From: Ugo Yu Date: Mon, 13 Aug 2018 10:12:40 +0800 Subject: [PATCH] Fix wrong UUID mask when doing BLE filter scan bug: 112350218 Test: manual Change-Id: I9e4297b936e7a7db164e7ff3bf680c43600c5bda (cherry picked from commit 04433372392a3c50558cb96f076757472dac2cec) --- stack/btm/btm_ble_adv_filter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stack/btm/btm_ble_adv_filter.cc b/stack/btm/btm_ble_adv_filter.cc index 1f68fb652..54e038efa 100644 --- a/stack/btm/btm_ble_adv_filter.cc +++ b/stack/btm/btm_ble_adv_filter.cc @@ -578,7 +578,7 @@ void BTM_LE_PF_uuid_filter(tBTM_BLE_SCAN_COND_OP action, UINT32_TO_STREAM(p, uuid_mask.As32Bit()); len += Uuid::kNumBytes32; } else if (uuid_len == Uuid::kNumBytes128) { - const auto& tmp = uuid.To128BitLE(); + const auto& tmp = uuid_mask.To128BitLE(); ARRAY_TO_STREAM(p, tmp.data(), (int)Uuid::kNumBytes128); len += Uuid::kNumBytes128; } -- 2.11.0