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

Commit 683672f1 authored by Andre Eisenbach's avatar Andre Eisenbach Committed by Android (Google) Code Review
Browse files

Merge "Add LE device to inquiry DB before pairing" into lmp-dev

parents 79e981f3 451b131c
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -598,9 +598,9 @@ static void btif_dm_cb_create_bond(bt_bdaddr_t *bd_addr, tBTA_TRANSPORT transpor
    int addr_type;
    int addr_type;
    bdstr_t bdstr;
    bdstr_t bdstr;
    bd2str(bd_addr, &bdstr);
    bd2str(bd_addr, &bdstr);
    if(btif_config_get_int("Remote", (char const *)&bdstr,"DevType", &device_type) &&
    if((btif_config_get_int("Remote", (char const *)&bdstr,"DevType", &device_type) &&
       (btif_storage_get_remote_addr_type(bd_addr, &addr_type) == BT_STATUS_SUCCESS) &&
       (btif_storage_get_remote_addr_type(bd_addr, &addr_type) == BT_STATUS_SUCCESS) &&
       (device_type == BT_DEVICE_TYPE_BLE))
       (device_type == BT_DEVICE_TYPE_BLE)) || (transport == BT_TRANSPORT_LE))
    {
    {
        BTA_DmAddBleDevice(bd_addr->address, addr_type, BT_DEVICE_TYPE_BLE);
        BTA_DmAddBleDevice(bd_addr->address, addr_type, BT_DEVICE_TYPE_BLE);
    }
    }