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

Commit 92d7667a authored by Henri Chataing's avatar Henri Chataing
Browse files

Remove unused symbol btm_ble_periodic_adv_sync_tx_rcvd

Bug: 331817295
Test: m com.android.btservices
Flag: EXEMPT, dead code removal
Change-Id: I4c0a7303022e908c894ba2250e07a50954bbc572
parent 1d2aa8ae
Loading
Loading
Loading
Loading
+0 −40
Original line number Diff line number Diff line
@@ -1413,46 +1413,6 @@ void btm_ble_biginfo_adv_report_rcvd(const uint8_t* p, uint16_t param_len) {
  ps->biginfo_report_cb.Run(sync_handle, encryption ? true : false);
}

/*******************************************************************************
 *
 * Function        btm_ble_periodic_adv_sync_tx_rcvd
 *
 * Description     Host receives this event when the controller receives sync
 *                 info of PA from the connected remote device and successfully
 *                 synced to PA associated with sync handle
 *
 ******************************************************************************/
void btm_ble_periodic_adv_sync_tx_rcvd(const uint8_t* p, uint16_t param_len) {
  log::debug("[PAST]: PAST received, param_len={}", param_len);
  if (param_len < 19) {
    log::error("Insufficient data");
    return;
  }
  uint8_t status, adv_sid, address_type, adv_phy, clk_acc;
  uint16_t pa_int, sync_handle, service_data, conn_handle;
  RawAddress addr;
  STREAM_TO_UINT8(status, p);
  STREAM_TO_UINT16(conn_handle, p);
  STREAM_TO_UINT16(service_data, p);
  STREAM_TO_UINT16(sync_handle, p);
  STREAM_TO_UINT8(adv_sid, p);
  STREAM_TO_UINT8(address_type, p);
  STREAM_TO_BDADDR(addr, p);
  STREAM_TO_UINT8(adv_phy, p);
  STREAM_TO_UINT16(pa_int, p);
  STREAM_TO_UINT8(clk_acc, p);
  log::verbose(
      "[PAST]: status = {}, conn_handle = {}, service_data = {}, sync_handle = "
      "{}, adv_sid = {}, address_type = {}, addr = {}, adv_phy = {}, pa_int = "
      "{}, clk_acc = {}",
      status, conn_handle, service_data, sync_handle, adv_sid, address_type,
      ADDRESS_TO_LOGGABLE_CSTR(addr), adv_phy, pa_int, clk_acc);
  if (syncRcvdCbRegistered) {
    sync_rcvd_cb.Run(status, sync_handle, adv_sid, address_type, addr, adv_phy,
                     pa_int);
  }
}

/*******************************************************************************
 *
 * Function         btm_set_conn_mode_adv_init_addr
+0 −2
Original line number Diff line number Diff line
@@ -429,8 +429,6 @@ void btm_ble_periodic_adv_report(uint16_t sync_handle, uint8_t tx_power,
void btm_ble_periodic_adv_sync_lost(uint16_t sync_handle);

void btm_ble_biginfo_adv_report_rcvd(const uint8_t* param, uint16_t param_len);
void btm_ble_periodic_adv_sync_tx_rcvd(const uint8_t* param,
                                       uint16_t param_len);

/*******************************************************************************
 *
+0 −4
Original line number Diff line number Diff line
@@ -199,10 +199,6 @@ void btm_send_hci_set_scan_params(uint8_t /* scan_type */,
                                  uint8_t /* scan_filter_policy */) {
  inc_func_call_count(__func__);
}
void btm_ble_periodic_adv_sync_tx_rcvd(const uint8_t* /* p */,
                                       uint16_t /* param_len */) {
  inc_func_call_count(__func__);
}
void btm_ble_biginfo_adv_report_rcvd(const uint8_t* /* p */,
                                     uint16_t /* param_len */) {
  inc_func_call_count(__func__);