summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/btif/src/btif_dm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/btif/src/btif_dm.c b/system/btif/src/btif_dm.c
index ab74dab03c..357ce0c9fd 100644
--- a/system/btif/src/btif_dm.c
+++ b/system/btif/src/btif_dm.c
@@ -1406,9 +1406,9 @@ static void btif_dm_search_devices_evt (UINT16 event, char *p_param)
/* Verify if the device is dual mode in NVRAM */
int stored_device_type = 0;
if (btif_get_device_type(bdaddr.address, &stored_device_type) &&
- ((stored_device_type == BT_DEVICE_TYPE_BLE &&
+ ((stored_device_type != BT_DEVICE_TYPE_BREDR &&
p_search_data->inq_res.device_type == BT_DEVICE_TYPE_BREDR) ||
- (stored_device_type == BT_DEVICE_TYPE_BREDR &&
+ (stored_device_type != BT_DEVICE_TYPE_BLE &&
p_search_data->inq_res.device_type == BT_DEVICE_TYPE_BLE))) {
dev_type = BT_DEVICE_TYPE_DUMO;
} else {