Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
forks
ble
Commits
619ee1f7
Commit
619ee1f7
authored
Jan 29, 2018
by
Kevin Seidel
Browse files
Fix disconnection handling
parent
fe39e478
Changes
1
Hide whitespace changes
Inline
Side-by-side
linux/hci/hci.go
View file @
619ee1f7
...
...
@@ -478,7 +478,8 @@ func (h *HCI) handleDisconnectionComplete(b []byte) error {
return
fmt
.
Errorf
(
"disconnecting an invalid handle %04X"
,
e
.
ConnectionHandle
())
}
close
(
c
.
chInPkt
)
if
c
.
param
.
Role
()
==
roleSlave
{
if
c
.
param
.
Role
()
==
roleMaster
{
// Re-enable advertising, if it was advertising. Refer to the
// handleLEConnectionComplete() for details.
// This may failed with ErrCommandDisallowed, if the controller
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment