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

Commit 62eb83dd authored by Satish Kodishala's avatar Satish Kodishala Committed by android-build-merger
Browse files

Bluetooth: Handle get RSSI timeout gracefully

am: 72728794

Change-Id: I55f9d891c58b82e12073fe57d1d19bdf64f6019d
parents 1275eff0 72728794
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -2034,9 +2034,12 @@ void btm_read_tx_power_complete(uint8_t* p, bool is_ble) {
 *
 ******************************************************************************/
void btm_read_rssi_timeout(UNUSED_ATTR void* data) {
  tBTM_RSSI_RESULTS  results;
  tBTM_CMPL_CB* p_cb = btm_cb.devcb.p_rssi_cmpl_cb;
  btm_cb.devcb.p_rssi_cmpl_cb = NULL;
  if (p_cb) (*p_cb)((void*)NULL);
  results.status = BTM_DEVICE_TIMEOUT;
  if (p_cb)
      (*p_cb)(&results);
}

/*******************************************************************************