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
259122f1
Commit
259122f1
authored
8 years ago
by
Treehugger Robot
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Remove GAP_CONN_POST_EVT_INCLUDED"
parents
3dd3956d
8d9e60a3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
system/include/bt_target.h
+0
-5
0 additions, 5 deletions
system/include/bt_target.h
system/stack/gap/gap_conn.cc
+1
-28
1 addition, 28 deletions
system/stack/gap/gap_conn.cc
with
1 addition
and
33 deletions
system/include/bt_target.h
+
0
−
5
View file @
259122f1
...
...
@@ -1273,11 +1273,6 @@
#define GAP_CONN_INCLUDED TRUE
#endif
/* This is set to enable posting event for data write */
#ifndef GAP_CONN_POST_EVT_INCLUDED
#define GAP_CONN_POST_EVT_INCLUDED FALSE
#endif
/* The maximum number of simultaneous GAP L2CAP connections. */
#ifndef GAP_MAX_CONNECTIONS
#define GAP_MAX_CONNECTIONS 30
...
...
This diff is collapsed.
Click to expand it.
system/stack/gap/gap_conn.cc
+
1
−
28
View file @
259122f1
...
...
@@ -526,9 +526,6 @@ uint16_t GAP_ConnWriteData (uint16_t gap_handle, uint8_t *p_data, uint16_t max_l
}
/* Send the buffer through L2CAP */
#if (GAP_CONN_POST_EVT_INCLUDED == TRUE)
gap_send_event
(
gap_handle
);
#else
while
((
p_buf
=
(
BT_HDR
*
)
fixed_queue_try_dequeue
(
p_ccb
->
tx_queue
))
!=
NULL
)
{
uint8_t
status
=
L2CA_DATA_WRITE
(
p_ccb
->
connection_id
,
p_buf
);
...
...
@@ -541,7 +538,7 @@ uint16_t GAP_ConnWriteData (uint16_t gap_handle, uint8_t *p_data, uint16_t max_l
else
if
(
status
!=
L2CAP_DW_SUCCESS
)
return
(
GAP_ERR_BAD_STATE
);
}
#endif
return
(
BT_PASS
);
}
...
...
@@ -1234,28 +1231,4 @@ static void gap_release_ccb (tGAP_CCB *p_ccb)
L2CA_DEREGISTER_COC
(
psm
);
}
#if (GAP_CONN_POST_EVT_INCLUDED == TRUE)
/*******************************************************************************
**
** Function gap_send_event
**
** Description Send BT_EVT_TO_GAP_MSG event to BTU task
**
** Returns None
**
*******************************************************************************/
void
gap_send_event
(
uint16_t
gap_handle
)
{
BT_HDR
*
p_msg
=
(
BT_HDR
*
)
osi_malloc
(
BT_HDR_SIZE
);
p_msg
->
event
=
BT_EVT_TO_GAP_MSG
;
p_msg
->
len
=
0
;
p_msg
->
offset
=
0
;
p_msg
->
layer_specific
=
gap_handle
;
GKI_send_msg
(
BTU_TASK
,
BTU_HCI_RCV_MBOX
,
p_msg
);
}
#endif
/* (GAP_CONN_POST_EVT_INCLUDED == TRUE) */
#endif
/* GAP_CONN_INCLUDED */
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