Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
4c52d3d3
Commit
4c52d3d3
authored
Feb 04, 2013
by
John W. Linville
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-upstream' of
git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth
parents
8a7d7cbf
4c02e2d4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
net/bluetooth/hci_conn.c
net/bluetooth/hci_conn.c
+3
-3
net/bluetooth/smp.c
net/bluetooth/smp.c
+13
-0
No files found.
net/bluetooth/hci_conn.c
View file @
4c52d3d3
...
@@ -249,12 +249,12 @@ static void hci_conn_disconnect(struct hci_conn *conn)
...
@@ -249,12 +249,12 @@ static void hci_conn_disconnect(struct hci_conn *conn)
__u8
reason
=
hci_proto_disconn_ind
(
conn
);
__u8
reason
=
hci_proto_disconn_ind
(
conn
);
switch
(
conn
->
type
)
{
switch
(
conn
->
type
)
{
case
ACL_LINK
:
hci_acl_disconn
(
conn
,
reason
);
break
;
case
AMP_LINK
:
case
AMP_LINK
:
hci_amp_disconn
(
conn
,
reason
);
hci_amp_disconn
(
conn
,
reason
);
break
;
break
;
default:
hci_acl_disconn
(
conn
,
reason
);
break
;
}
}
}
}
...
...
net/bluetooth/smp.c
View file @
4c52d3d3
...
@@ -859,6 +859,19 @@ int smp_sig_channel(struct l2cap_conn *conn, struct sk_buff *skb)
...
@@ -859,6 +859,19 @@ int smp_sig_channel(struct l2cap_conn *conn, struct sk_buff *skb)
skb_pull
(
skb
,
sizeof
(
code
));
skb_pull
(
skb
,
sizeof
(
code
));
/*
* The SMP context must be initialized for all other PDUs except
* pairing and security requests. If we get any other PDU when
* not initialized simply disconnect (done if this function
* returns an error).
*/
if
(
code
!=
SMP_CMD_PAIRING_REQ
&&
code
!=
SMP_CMD_SECURITY_REQ
&&
!
conn
->
smp_chan
)
{
BT_ERR
(
"Unexpected SMP command 0x%02x. Disconnecting."
,
code
);
kfree_skb
(
skb
);
return
-
ENOTSUPP
;
}
switch
(
code
)
{
switch
(
code
)
{
case
SMP_CMD_PAIRING_REQ
:
case
SMP_CMD_PAIRING_REQ
:
reason
=
smp_cmd_pairing_req
(
conn
,
skb
);
reason
=
smp_cmd_pairing_req
(
conn
,
skb
);
...
...
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