From a638cc509bf8fe4157c0aa5d3e39011063d3587a Mon Sep 17 00:00:00 2001 From: Jakub Pawlowski Date: Thu, 10 Nov 2016 15:56:46 -0800 Subject: [PATCH] Fix incorrect check for empty out-of-band pairing data Bug: 32780409 Test: try pairing with nRF52DK using OOB LE SC Change-Id: I3c165843bb76c372b76bdc18a7d9226345d39037 --- btif/src/btif_dm.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/btif/src/btif_dm.cc b/btif/src/btif_dm.cc index 6bff863fb..194ffa099 100644 --- a/btif/src/btif_dm.cc +++ b/btif/src/btif_dm.cc @@ -3220,8 +3220,9 @@ static void btif_dm_ble_sc_oob_req_evt(tBTA_DM_SP_RMT_OOB* req_oob_type) { * btif_dm_set_oob_for_le_io_req, but check here again. If it's not present * do nothing, pairing will timeout. */ - if (!is_empty_128bit(oob_cb.oob_data.le_sc_c) && - !is_empty_128bit(oob_cb.oob_data.le_sc_r)) { + if (is_empty_128bit(oob_cb.oob_data.le_sc_c) && + is_empty_128bit(oob_cb.oob_data.le_sc_r)) { + BTIF_TRACE_WARNING("%s: LE SC OOB data is empty", __func__); return; } -- 2.11.0