Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
platform_packages_modules_Bluetooth
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LMODroid
platform_packages_modules_Bluetooth
Commits
14646e60
Commit
14646e60
authored
4 years ago
by
Treehugger Robot
Committed by
Gerrit Code Review
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Move acl allocator into proper file"
parents
074cf7ab
980d633b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
system/stack/acl/btm_acl.cc
+20
-1
20 additions, 1 deletion
system/stack/acl/btm_acl.cc
system/stack/btm/btm_int.h
+0
-1
0 additions, 1 deletion
system/stack/btm/btm_int.h
system/stack/btm/btm_pm.cc
+0
-19
0 additions, 19 deletions
system/stack/btm/btm_pm.cc
with
20 additions
and
21 deletions
system/stack/acl/btm_acl.cc
+
20
−
1
View file @
14646e60
...
...
@@ -61,7 +61,6 @@ void btm_acl_update_busy_level(tBTM_BLI_EVENT event);
void
btm_ble_refresh_local_resolvable_private_addr
(
const
RawAddress
&
pseudo_addr
,
const
RawAddress
&
local_rpa
);
void
btm_establish_continue
(
tACL_CONN
*
p_acl_cb
);
void
btm_pm_sm_alloc
(
uint8_t
ind
);
void
btm_read_automatic_flush_timeout_timeout
(
void
*
data
);
void
btm_read_failed_contact_counter_timeout
(
void
*
data
);
void
btm_read_rssi_timeout
(
void
*
data
);
...
...
@@ -71,6 +70,7 @@ void btm_sec_dev_rec_cback_event(tBTM_SEC_DEV_REC* p_dev_rec, uint8_t res,
void
btm_sec_set_peer_sec_caps
(
tACL_CONN
*
p_acl_cb
,
tBTM_SEC_DEV_REC
*
p_dev_rec
);
static
void
btm_pm_sm_alloc
(
uint8_t
ind
);
static
void
btm_read_remote_features
(
uint16_t
handle
);
static
void
btm_read_remote_ext_features
(
uint16_t
handle
,
uint8_t
page_number
);
static
void
btm_process_remote_ext_features
(
tACL_CONN
*
p_acl_cb
,
...
...
@@ -2450,3 +2450,22 @@ void btm_acl_chk_peer_pkt_type_support(tACL_CONN* p, uint16_t* p_pkt_type) {
(
BTM_ACL_PKT_TYPES_MASK_NO_2_DH5
+
BTM_ACL_PKT_TYPES_MASK_NO_3_DH5
);
}
}
/*******************************************************************************
*
* 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
.
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
}
This diff is collapsed.
Click to expand it.
system/stack/btm/btm_int.h
+
0
−
1
View file @
14646e60
...
...
@@ -132,7 +132,6 @@ extern void btm_acl_update_conn_addr(uint16_t conn_handle,
const
RawAddress
&
address
);
extern
void
btm_pm_reset
(
void
);
extern
void
btm_pm_sm_alloc
(
uint8_t
ind
);
extern
void
btm_pm_proc_cmd_status
(
uint8_t
status
);
extern
void
btm_pm_proc_mode_change
(
uint8_t
hci_status
,
uint16_t
hci_handle
,
uint8_t
mode
,
uint16_t
interval
);
...
...
This diff is collapsed.
Click to expand it.
system/stack/btm/btm_pm.cc
+
0
−
19
View file @
14646e60
...
...
@@ -365,25 +365,6 @@ void btm_pm_reset(void) {
btm_cb
.
acl_cb_
.
pm_pend_link
=
MAX_L2CAP_LINKS
;
}
/*******************************************************************************
*
* 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
.
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
}
/*******************************************************************************
*
* Function btm_pm_find_acl_ind
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment