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
05558911
Commit
05558911
authored
Jun 21, 2011
by
Gustavo F. Padovan
Browse files
Options
Browse Files
Download
Plain Diff
Merge master.kernel.org:/pub/scm/linux/kernel/git/padovan/bluetooth-2.6
Conflicts: net/bluetooth/l2cap_core.c
parents
e13e21dc
33060542
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
10 deletions
+19
-10
net/bluetooth/hci_conn.c
net/bluetooth/hci_conn.c
+3
-3
net/bluetooth/l2cap_core.c
net/bluetooth/l2cap_core.c
+16
-7
No files found.
net/bluetooth/hci_conn.c
View file @
05558911
...
@@ -670,10 +670,10 @@ int hci_conn_security(struct hci_conn *conn, __u8 sec_level, __u8 auth_type)
...
@@ -670,10 +670,10 @@ int hci_conn_security(struct hci_conn *conn, __u8 sec_level, __u8 auth_type)
goto
encrypt
;
goto
encrypt
;
auth:
auth:
if
(
test_
and_set_
bit
(
HCI_CONN_ENCRYPT_PEND
,
&
conn
->
pend
))
if
(
test_bit
(
HCI_CONN_ENCRYPT_PEND
,
&
conn
->
pend
))
return
0
;
return
0
;
hci_conn_auth
(
conn
,
sec_level
,
auth_type
);
if
(
!
hci_conn_auth
(
conn
,
sec_level
,
auth_type
))
return
0
;
return
0
;
encrypt:
encrypt:
...
...
net/bluetooth/l2cap_core.c
View file @
05558911
...
@@ -4212,21 +4212,30 @@ static int l2cap_security_cfm(struct hci_conn *hcon, u8 status, u8 encrypt)
...
@@ -4212,21 +4212,30 @@ static int l2cap_security_cfm(struct hci_conn *hcon, u8 status, u8 encrypt)
}
}
}
else
if
(
chan
->
state
==
BT_CONNECT2
)
{
}
else
if
(
chan
->
state
==
BT_CONNECT2
)
{
struct
l2cap_conn_rsp
rsp
;
struct
l2cap_conn_rsp
rsp
;
__u16
res
ul
t
;
__u16
res
,
sta
t
;
if
(
!
status
)
{
if
(
!
status
)
{
if
(
bt_sk
(
sk
)
->
defer_setup
)
{
struct
sock
*
parent
=
bt_sk
(
sk
)
->
parent
;
res
=
L2CAP_CR_PEND
;
stat
=
L2CAP_CS_AUTHOR_PEND
;
parent
->
sk_data_ready
(
parent
,
0
);
}
else
{
l2cap_state_change
(
chan
,
BT_CONFIG
);
l2cap_state_change
(
chan
,
BT_CONFIG
);
result
=
L2CAP_CR_SUCCESS
;
res
=
L2CAP_CR_SUCCESS
;
stat
=
L2CAP_CS_NO_INFO
;
}
}
else
{
}
else
{
l2cap_state_change
(
chan
,
BT_DISCONN
);
l2cap_state_change
(
chan
,
BT_DISCONN
);
__set_chan_timer
(
chan
,
HZ
/
10
);
__set_chan_timer
(
chan
,
HZ
/
10
);
result
=
L2CAP_CR_SEC_BLOCK
;
res
=
L2CAP_CR_SEC_BLOCK
;
stat
=
L2CAP_CS_NO_INFO
;
}
}
rsp
.
scid
=
cpu_to_le16
(
chan
->
dcid
);
rsp
.
scid
=
cpu_to_le16
(
chan
->
dcid
);
rsp
.
dcid
=
cpu_to_le16
(
chan
->
scid
);
rsp
.
dcid
=
cpu_to_le16
(
chan
->
scid
);
rsp
.
result
=
cpu_to_le16
(
res
ult
);
rsp
.
result
=
cpu_to_le16
(
res
);
rsp
.
status
=
cpu_to_le16
(
L2CAP_CS_NO_INFO
);
rsp
.
status
=
cpu_to_le16
(
stat
);
l2cap_send_cmd
(
conn
,
chan
->
ident
,
L2CAP_CONN_RSP
,
l2cap_send_cmd
(
conn
,
chan
->
ident
,
L2CAP_CONN_RSP
,
sizeof
(
rsp
),
&
rsp
);
sizeof
(
rsp
),
&
rsp
);
}
}
...
@@ -4365,7 +4374,7 @@ static int l2cap_debugfs_show(struct seq_file *f, void *p)
...
@@ -4365,7 +4374,7 @@ static int l2cap_debugfs_show(struct seq_file *f, void *p)
c
->
state
,
__le16_to_cpu
(
c
->
psm
),
c
->
state
,
__le16_to_cpu
(
c
->
psm
),
c
->
scid
,
c
->
dcid
,
c
->
imtu
,
c
->
omtu
,
c
->
scid
,
c
->
dcid
,
c
->
imtu
,
c
->
omtu
,
c
->
sec_level
,
c
->
mode
);
c
->
sec_level
,
c
->
mode
);
}
}
read_unlock_bh
(
&
chan_list_lock
);
read_unlock_bh
(
&
chan_list_lock
);
...
...
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