Merge "Add LE device to inquiry DB before pairing" into lmp-dev
diff --git a/btif/src/btif_dm.c b/btif/src/btif_dm.c
index a4347e7..d85867f 100644
--- a/btif/src/btif_dm.c
+++ b/btif/src/btif_dm.c
@@ -598,9 +598,9 @@
     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);
     }