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

Commit 00e62dc0 authored by Myles Watson's avatar Myles Watson Committed by android-build-merger
Browse files

Remove LPM code from the stack

am: 856f2d13

Change-Id: I4a3d95d0ed13dff933694adffed018c19e030c5c
parents bd813889 856f2d13
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -221,9 +221,6 @@ void bte_main_boot_entry(void);
void bte_main_enable(void);
void bte_main_disable(void);
void bte_main_cleanup(void);
#if (HCILP_INCLUDED == TRUE)
void bte_main_enable_lpm(bool enable);
#endif
void bte_main_postload_cfg(void);

bt_status_t btif_transfer_context(tBTIF_CBACK* p_cback, uint16_t event,
+0 −7
Original line number Diff line number Diff line
@@ -408,9 +408,6 @@ void btif_enable_bluetooth_evt(tBTA_STATUS status) {
  }

  bte_main_postload_cfg();
#if (HCILP_INCLUDED == TRUE)
  bte_main_enable_lpm(true);
#endif

  /* callback to HAL */
  if (status == BTA_SUCCESS) {
@@ -484,10 +481,6 @@ bt_status_t btif_disable_bluetooth(void) {
void btif_disable_bluetooth_evt(void) {
  BTIF_TRACE_DEBUG("%s", __func__);

#if (HCILP_INCLUDED == TRUE)
  bte_main_enable_lpm(false);
#endif

  bte_main_disable();

  /* callback to HAL */
+0 −1
Original line number Diff line number Diff line
@@ -28,7 +28,6 @@ static_library("hci") {
    "src/hci_layer.cc",
    "src/hci_packet_factory.cc",
    "src/hci_packet_parser.cc",
    "src/low_power_manager.cc",
    "src/packet_fragmenter.cc",
    "src/vendor.cc",
  ]
+0 −10
Original line number Diff line number Diff line
@@ -1457,16 +1457,6 @@ single PDU.
#define MCA_FCR_OPT_MPS_SIZE 1000
#endif

/******************************************************************************
 *
 * Sleep Mode (Low Power Mode)
 *
 *****************************************************************************/

#ifndef HCILP_INCLUDED
#define HCILP_INCLUDED TRUE
#endif

/******************************************************************************
 *
 * BTA
+0 −41
Original line number Diff line number Diff line
@@ -188,47 +188,6 @@ void bte_main_postload_cfg(void) {
  // TODO(eisenbach): [HIDL] DEPRECATE?
}

#if (HCILP_INCLUDED == TRUE)
/******************************************************************************
 *
 * Function         bte_main_enable_lpm
 *
 * Description      BTE MAIN API - Enable/Disable low power mode operation
 *
 * Returns          None
 *
 *****************************************************************************/
void bte_main_enable_lpm(bool enable) {
  // TODO(eisenbach): [HIDL] DEPRECATE?
}

/******************************************************************************
 *
 * Function         bte_main_lpm_allow_bt_device_sleep
 *
 * Description      BTE MAIN API - Allow the BT controller to go to sleep
 *
 * Returns          None
 *
 *****************************************************************************/
void bte_main_lpm_allow_bt_device_sleep() {
  // TODO(eisenbach): [HIDL] DEPRECATE?
}

/******************************************************************************
 *
 * Function         bte_main_lpm_wake_bt_device
 *
 * Description      BTE MAIN API - Wake BT controller up if it is in sleep mode
 *
 * Returns          None
 *
 *****************************************************************************/
void bte_main_lpm_wake_bt_device() {
  // TODO(eisenbach): [HIDL] DEPRECATE?
}
#endif  // HCILP_INCLUDED

/******************************************************************************
 *
 * Function         bte_main_hci_send
Loading