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

Commit 451b131c authored by lungtsai_lin's avatar lungtsai_lin Committed by Andre Eisenbach
Browse files

Add LE device to inquiry DB before pairing

There is no remote device type info wgeb OOB pairing LE
devices. Add device type according to transport.

Bug: 17156993
Change-Id: I29182ca13f801f8a7f2c3a95969d6ae23312dd7e
parent dfcf8cfc
Loading
Loading
Loading
Loading
+2 −2
Original line number 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;
    bdstr_t 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) &&
       (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);
    }