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
3d02a926
Commit
3d02a926
authored
Oct 15, 2012
by
John W. Linville
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth
parents
ddffeb8c
065a13e2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
net/bluetooth/smp.c
net/bluetooth/smp.c
+4
-2
No files found.
net/bluetooth/smp.c
View file @
3d02a926
...
...
@@ -32,6 +32,8 @@
#define SMP_TIMEOUT msecs_to_jiffies(30000)
#define AUTH_REQ_MASK 0x07
static
inline
void
swap128
(
u8
src
[
16
],
u8
dst
[
16
])
{
int
i
;
...
...
@@ -230,7 +232,7 @@ static void build_pairing_cmd(struct l2cap_conn *conn,
req
->
max_key_size
=
SMP_MAX_ENC_KEY_SIZE
;
req
->
init_key_dist
=
0
;
req
->
resp_key_dist
=
dist_keys
;
req
->
auth_req
=
authreq
;
req
->
auth_req
=
(
authreq
&
AUTH_REQ_MASK
)
;
return
;
}
...
...
@@ -239,7 +241,7 @@ static void build_pairing_cmd(struct l2cap_conn *conn,
rsp
->
max_key_size
=
SMP_MAX_ENC_KEY_SIZE
;
rsp
->
init_key_dist
=
0
;
rsp
->
resp_key_dist
=
req
->
resp_key_dist
&
dist_keys
;
rsp
->
auth_req
=
authreq
;
rsp
->
auth_req
=
(
authreq
&
AUTH_REQ_MASK
)
;
}
static
u8
check_enc_key_size
(
struct
l2cap_conn
*
conn
,
__u8
max_key_size
)
...
...
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