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

Commit 8f935385 authored by Andre Eisenbach's avatar Andre Eisenbach Committed by Zach Johnson
Browse files

DO NOT MERGE ANYWHERE Remove incorrect assert in btm_read_rssi_cb

|data| may be NULL if the RSSI request times out.
See btm_read_rssi_timeout implementation for details.

Bug: 32587130
Test: manual
Change-Id: Ide9dee819e1db24a39c05b086cd4c0b558ca23ef
parent e3e2dd33
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -494,7 +494,11 @@ UNUSED_ATTR static const char *dump_media_event(UINT16 event)

static void btm_read_rssi_cb(void *data)
{
    assert(data);
    if (data == NULL)
    {
        LOG_ERROR(LOG_TAG, "%s RSSI request timed out", __func__);
        return;
    }

    tBTM_RSSI_RESULTS *result = (tBTM_RSSI_RESULTS*)data;
    if (result->status != BTM_SUCCESS)