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
acce2edf
Commit
acce2edf
authored
1 year ago
by
Ying Hsu
Committed by
Gerrit Code Review
1 year ago
Browse files
Options
Downloads
Plain Diff
Merge "floss: Reset BT controller on HW error event" into main
parents
9a4cff38
dc27b22b
No related branches found
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/hci_layer.cc
+12
-0
12 additions, 0 deletions
system/gd/hci/hci_layer.cc
with
12 additions
and
0 deletions
system/gd/hci/hci_layer.cc
+
12
−
0
View file @
acce2edf
...
...
@@ -16,6 +16,10 @@
#include
"hci/hci_layer.h"
#ifdef TARGET_FLOSS
#include
<signal.h>
#endif
#include
"common/bind.h"
#include
"common/init_flags.h"
#include
"common/stop_watch.h"
...
...
@@ -443,7 +447,15 @@ struct HciLayer::impl {
void
on_hardware_error
(
EventView
event
)
{
HardwareErrorView
event_view
=
HardwareErrorView
::
Create
(
event
);
ASSERT
(
event_view
.
IsValid
());
#ifdef TARGET_FLOSS
LOG_WARN
(
"Hardware Error Event with code 0x%02x"
,
event_view
.
GetHardwareCode
());
// Sending SIGINT to process the exception from BT controller.
// The Floss daemon will be restarted. HCI reset during restart will clear the
// error state of the BT controller.
kill
(
getpid
(),
SIGINT
);
#else
LOG_ALWAYS_FATAL
(
"Hardware Error Event with code 0x%02x"
,
event_view
.
GetHardwareCode
());
#endif
}
void
on_le_meta_event
(
EventView
event
)
{
...
...
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