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

Commit ab81d5f8 authored by Subramanian Srinivasan's avatar Subramanian Srinivasan Committed by android-build-merger
Browse files

Update device type in NVRAM correctly during inquiry

am: de320229

* commit 'de320229':
  Update device type in NVRAM correctly during inquiry
parents b6e3c301 de320229
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 {