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

Commit 7a1facc5 authored by Chris Manton's avatar Chris Manton
Browse files

Move tACL_CB::tBTM_PM_MCB definition before tACL_CONN

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I544f44c343a15f8737d4da8c34444aa3b10c0291
parent 83112879
Loading
Loading
Loading
Loading
+11 −11
Original line number Diff line number Diff line
@@ -78,6 +78,17 @@ typedef struct {
  uint8_t role;              /* HCI_ROLE_CENTRAL or HCI_ROLE_PERIPHERAL */
} tBTM_ROLE_SWITCH_CMPL;

typedef struct {
  bool chg_ind;
  tBTM_PM_PWR_MD req_mode[BTM_MAX_PM_RECORDS + 1];
  tBTM_PM_PWR_MD set_mode;
  tBTM_PM_STATE state;
  uint16_t interval;
  uint16_t max_lat;
  uint16_t min_loc_to;
  uint16_t min_rmt_to;
} tBTM_PM_MCB;

typedef struct {
  BD_FEATURES peer_le_features;
  bool peer_le_features_valid;
@@ -234,17 +245,6 @@ inline std::string power_mode_state_text(tBTM_PM_STATE state) {
  }
}

typedef struct {
  bool chg_ind;
  tBTM_PM_PWR_MD req_mode[BTM_MAX_PM_RECORDS + 1];
  tBTM_PM_PWR_MD set_mode;
  tBTM_PM_STATE state;
  uint16_t interval;
  uint16_t max_lat;
  uint16_t min_loc_to;
  uint16_t min_rmt_to;
} tBTM_PM_MCB;

/****************************************************
 **      ACL Management API
 ****************************************************/