Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 89842950 authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

Fix incorrect check for empty out-of-band pairing data

Bug: 32780409
Test: try pairing with nRF52DK using OOB LE SC
Change-Id: I3c165843bb76c372b76bdc18a7d9226345d39037
(cherry picked from commit 769318bb)
parent 49b3c1be
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -3404,8 +3404,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;
    }