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
9763152c
Commit
9763152c
authored
Dec 19, 2011
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/padovan/bluetooth
parents
78feb35b
d7660918
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
2 deletions
+13
-2
net/bluetooth/hci_conn.c
net/bluetooth/hci_conn.c
+1
-1
net/bluetooth/l2cap_core.c
net/bluetooth/l2cap_core.c
+11
-1
net/bluetooth/rfcomm/core.c
net/bluetooth/rfcomm/core.c
+1
-0
No files found.
net/bluetooth/hci_conn.c
View file @
9763152c
...
@@ -673,7 +673,7 @@ int hci_conn_security(struct hci_conn *conn, __u8 sec_level, __u8 auth_type)
...
@@ -673,7 +673,7 @@ 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
;
if
(
!
hci_conn_auth
(
conn
,
sec_level
,
auth_type
))
if
(
!
hci_conn_auth
(
conn
,
sec_level
,
auth_type
))
...
...
net/bluetooth/l2cap_core.c
View file @
9763152c
...
@@ -2152,7 +2152,7 @@ static int l2cap_parse_conf_rsp(struct l2cap_chan *chan, void *rsp, int len, voi
...
@@ -2152,7 +2152,7 @@ static int l2cap_parse_conf_rsp(struct l2cap_chan *chan, void *rsp, int len, voi
void
*
ptr
=
req
->
data
;
void
*
ptr
=
req
->
data
;
int
type
,
olen
;
int
type
,
olen
;
unsigned
long
val
;
unsigned
long
val
;
struct
l2cap_conf_rfc
rfc
;
struct
l2cap_conf_rfc
rfc
=
{
.
mode
=
L2CAP_MODE_BASIC
}
;
BT_DBG
(
"chan %p, rsp %p, len %d, req %p"
,
chan
,
rsp
,
len
,
data
);
BT_DBG
(
"chan %p, rsp %p, len %d, req %p"
,
chan
,
rsp
,
len
,
data
);
...
@@ -2271,6 +2271,16 @@ static void l2cap_conf_rfc_get(struct l2cap_chan *chan, void *rsp, int len)
...
@@ -2271,6 +2271,16 @@ static void l2cap_conf_rfc_get(struct l2cap_chan *chan, void *rsp, int len)
}
}
}
}
/* Use sane default values in case a misbehaving remote device
* did not send an RFC option.
*/
rfc
.
mode
=
chan
->
mode
;
rfc
.
retrans_timeout
=
cpu_to_le16
(
L2CAP_DEFAULT_RETRANS_TO
);
rfc
.
monitor_timeout
=
cpu_to_le16
(
L2CAP_DEFAULT_MONITOR_TO
);
rfc
.
max_pdu_size
=
cpu_to_le16
(
chan
->
imtu
);
BT_ERR
(
"Expected RFC option was not found, using defaults"
);
done:
done:
switch
(
rfc
.
mode
)
{
switch
(
rfc
.
mode
)
{
case
L2CAP_MODE_ERTM
:
case
L2CAP_MODE_ERTM
:
...
...
net/bluetooth/rfcomm/core.c
View file @
9763152c
...
@@ -1146,6 +1146,7 @@ static int rfcomm_recv_ua(struct rfcomm_session *s, u8 dlci)
...
@@ -1146,6 +1146,7 @@ static int rfcomm_recv_ua(struct rfcomm_session *s, u8 dlci)
if
(
list_empty
(
&
s
->
dlcs
))
{
if
(
list_empty
(
&
s
->
dlcs
))
{
s
->
state
=
BT_DISCONN
;
s
->
state
=
BT_DISCONN
;
rfcomm_send_disc
(
s
,
0
);
rfcomm_send_disc
(
s
,
0
);
rfcomm_session_clear_timer
(
s
);
}
}
break
;
break
;
...
...
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