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

Commit 297a73c7 authored by Jacky Cheung's avatar Jacky Cheung Committed by Andre Eisenbach
Browse files

Default missing DevType and DevClass in NVRAM.

Missing DevType and DevClass in NVRAM were not properly set to a
default values previously.
parent fd65d7d5
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));