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

Commit 890d081c authored by Jacky Cheung's avatar Jacky Cheung
Browse files

DO NOT MERGE ANYWHERE Default missing DevType and DevClass in NVRAM.

Missing DevType and DevClass in NVRAM were not properly set to a
default value previously.

Bug: 26825128

Change-Id: Id91898238f15e0e21780eaef99b97a8127ae5b43
parent bc01456f
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -870,7 +870,6 @@ bt_status_t btif_storage_load_bonded_devices(void)
    bt_bdaddr_t *devices_list;
    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);

@@ -934,6 +933,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));