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

Commit b6e3c301 authored by Jacky Cheung's avatar Jacky Cheung Committed by android-build-merger
Browse files

Default missing DevType and DevClass in NVRAM.

am: 297a73c7

* commit '297a73c7':
  Default missing DevType and DevClass in NVRAM.
parents 45c9d36c 297a73c7
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -871,7 +871,6 @@ bt_status_t btif_storage_load_bonded_devices(void)
    uint32_t disc_timeout;
    bt_uuid_t local_uuids[BT_MAX_NUM_UUIDS];
    bt_uuid_t remote_uuids[BT_MAX_NUM_UUIDS];
    uint32_t cod, devtype;

    btif_in_fetch_bonded_devices(&bonded_devices, 1);

@@ -936,6 +935,12 @@ bt_status_t btif_storage_load_bonded_devices(void)
        {
            bt_bdaddr_t *p_remote_addr;

            /*
             * TODO: improve handling of missing fields in NVRAM.
             */
            uint32_t cod = 0;
            uint32_t devtype = 0;

            num_props = 0;
            p_remote_addr = &bonded_devices.devices[i];
            memset(remote_properties, 0, sizeof(remote_properties));