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
5cece708
Commit
5cece708
authored
4 years ago
by
Treehugger Robot
Committed by
Gerrit Code Review
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Remove additional handle mapping between C++ and Python"
parents
1b49d4a3
118f0fbb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
system/gd/hci/facade/le_acl_manager_facade.cc
+1
-5
1 addition, 5 deletions
system/gd/hci/facade/le_acl_manager_facade.cc
with
1 addition
and
5 deletions
system/gd/hci/facade/le_acl_manager_facade.cc
+
1
−
5
View file @
5cece708
...
...
@@ -195,10 +195,6 @@ class LeAclManagerFacadeService : public LeAclManagerFacade::Service, public LeC
return
connection
->
second
.
pending_acl_data_
.
RunLoop
(
context
,
writer
);
}
static
inline
uint16_t
to_handle
(
uint32_t
current_request
)
{
return
(
current_request
+
0x10
)
%
0xe00
;
}
static
inline
std
::
string
builder_to_string
(
std
::
unique_ptr
<
BasePacketBuilder
>
builder
)
{
std
::
vector
<
uint8_t
>
bytes
;
BitInserter
bit_inserter
(
bytes
);
...
...
@@ -222,7 +218,7 @@ class LeAclManagerFacadeService : public LeAclManagerFacade::Service, public LeC
std
::
unique_lock
<
std
::
mutex
>
lock
(
acl_connections_mutex_
);
auto
addr
=
address_with_type
.
GetAddress
();
std
::
shared_ptr
<
LeAclConnection
>
shared_connection
=
std
::
move
(
connection
);
uint16_t
handle
=
to_handle
(
current_connection_request_
);
uint16_t
handle
=
shared_connection
->
GetHandle
(
);
acl_connections_
.
emplace
(
std
::
piecewise_construct
,
std
::
forward_as_tuple
(
handle
),
...
...
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