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

Commit 96e3e6f1 authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

Fix APR crashes in read rssi callback

When read RSSI timeouts, callback is called with NULL result. This was
causing crash.

Bug: 30562545
Change-Id: If379c2de4ceab48c021601851a8c83f995440460
parent a3e59777
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1023,6 +1023,9 @@ static void bta_track_adv_event_cb(tBTA_DM_BLE_TRACK_ADV_DATA *p_track_adv_data)

static void btm_read_rssi_cb (tBTM_RSSI_RESULTS *p_result)
{
    if (!p_result)
      return;

    btif_gattc_cb_t btif_cb;

    bdcpy(btif_cb.bd_addr.address, p_result->rem_bda);