uint16_t* p_pkt_type);
static void btm_cont_rswitch(tACL_CONN* p, tBTM_SEC_DEV_REC* p_dev_rec);
static void btm_establish_continue(tACL_CONN* p_acl_cb);
-static void btm_pm_sm_alloc(uint8_t ind);
static void btm_read_automatic_flush_timeout_timeout(void* data);
static void btm_read_failed_contact_counter_timeout(void* data);
static void btm_read_remote_features(uint16_t handle);
p->switch_role_failed_attempts = 0;
p->switch_role_state = BTM_ACL_SWKEY_STATE_IDLE;
- btm_pm_sm_alloc(xx);
+ /*******************************************************************************
+ *
+ * Function btm_pm_sm_alloc
+ *
+ * Description This function initializes the control block of an ACL
+ *link. It is called when an ACL connection is created.
+ *
+ * Returns void
+ *
+ ******************************************************************************/
+ tBTM_PM_MCB* p_db = &btm_cb.acl_cb_.pm_mode_db[xx]; /* per ACL link */
+ memset(p_db, 0, sizeof(tBTM_PM_MCB));
+ p_db->state = BTM_PM_ST_ACTIVE;
+#if (BTM_PM_DEBUG == TRUE)
+ BTM_TRACE_DEBUG("btm_pm_sm_alloc ind:%d st:%d", xx, p_db->state);
+#endif // BTM_PM_DEBUG
if (dc) memcpy(p->remote_dc, dc, DEV_CLASS_LEN);
}
}
-/*******************************************************************************
- *
- * Function btm_pm_sm_alloc
- *
- * Description This function initializes the control block of an ACL link.
- * It is called when an ACL connection is created.
- *
- * Returns void
- *
- ******************************************************************************/
-void btm_pm_sm_alloc(uint8_t ind) {
- tBTM_PM_MCB* p_db = &btm_cb.acl_cb_.pm_mode_db[ind]; /* per ACL link */
- memset(p_db, 0, sizeof(tBTM_PM_MCB));
- p_db->state = BTM_PM_ST_ACTIVE;
-#if (BTM_PM_DEBUG == TRUE)
- BTM_TRACE_DEBUG("btm_pm_sm_alloc ind:%d st:%d", ind, p_db->state);
-#endif // BTM_PM_DEBUG
-}
-
bool lmp_version_below(const RawAddress& bda, uint8_t version) {
tACL_CONN* acl = btm_bda_to_acl(bda, BT_TRANSPORT_LE);
if (acl == NULL || acl->lmp_version == 0) {