Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
9a5120dd
Commit
9a5120dd
authored
Apr 20, 2009
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
git://git.kernel.org/pub/scm/linux/kernel/git/holtmann/bluetooth-2.6
parents
eb39c57f
9499237a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
11 deletions
+29
-11
net/bluetooth/hci_event.c
net/bluetooth/hci_event.c
+27
-11
net/bluetooth/rfcomm/core.c
net/bluetooth/rfcomm/core.c
+2
-0
No files found.
net/bluetooth/hci_event.c
View file @
9a5120dd
...
@@ -866,8 +866,16 @@ static inline void hci_conn_complete_evt(struct hci_dev *hdev, struct sk_buff *s
...
@@ -866,8 +866,16 @@ static inline void hci_conn_complete_evt(struct hci_dev *hdev, struct sk_buff *s
hci_dev_lock
(
hdev
);
hci_dev_lock
(
hdev
);
conn
=
hci_conn_hash_lookup_ba
(
hdev
,
ev
->
link_type
,
&
ev
->
bdaddr
);
conn
=
hci_conn_hash_lookup_ba
(
hdev
,
ev
->
link_type
,
&
ev
->
bdaddr
);
if
(
!
conn
)
if
(
!
conn
)
{
goto
unlock
;
if
(
ev
->
link_type
!=
SCO_LINK
)
goto
unlock
;
conn
=
hci_conn_hash_lookup_ba
(
hdev
,
ESCO_LINK
,
&
ev
->
bdaddr
);
if
(
!
conn
)
goto
unlock
;
conn
->
type
=
SCO_LINK
;
}
if
(
!
ev
->
status
)
{
if
(
!
ev
->
status
)
{
conn
->
handle
=
__le16_to_cpu
(
ev
->
handle
);
conn
->
handle
=
__le16_to_cpu
(
ev
->
handle
);
...
@@ -1646,20 +1654,28 @@ static inline void hci_sync_conn_complete_evt(struct hci_dev *hdev, struct sk_bu
...
@@ -1646,20 +1654,28 @@ static inline void hci_sync_conn_complete_evt(struct hci_dev *hdev, struct sk_bu
conn
->
type
=
SCO_LINK
;
conn
->
type
=
SCO_LINK
;
}
}
if
(
conn
->
out
&&
ev
->
status
==
0x1c
&&
conn
->
attempt
<
2
)
{
switch
(
ev
->
status
)
{
conn
->
pkt_type
=
(
hdev
->
esco_type
&
SCO_ESCO_MASK
)
|
case
0x00
:
(
hdev
->
esco_type
&
EDR_ESCO_MASK
);
hci_setup_sync
(
conn
,
conn
->
link
->
handle
);
goto
unlock
;
}
if
(
!
ev
->
status
)
{
conn
->
handle
=
__le16_to_cpu
(
ev
->
handle
);
conn
->
handle
=
__le16_to_cpu
(
ev
->
handle
);
conn
->
state
=
BT_CONNECTED
;
conn
->
state
=
BT_CONNECTED
;
hci_conn_add_sysfs
(
conn
);
hci_conn_add_sysfs
(
conn
);
}
else
break
;
case
0x1c
:
/* SCO interval rejected */
case
0x1f
:
/* Unspecified error */
if
(
conn
->
out
&&
conn
->
attempt
<
2
)
{
conn
->
pkt_type
=
(
hdev
->
esco_type
&
SCO_ESCO_MASK
)
|
(
hdev
->
esco_type
&
EDR_ESCO_MASK
);
hci_setup_sync
(
conn
,
conn
->
link
->
handle
);
goto
unlock
;
}
/* fall through */
default:
conn
->
state
=
BT_CLOSED
;
conn
->
state
=
BT_CLOSED
;
break
;
}
hci_proto_connect_cfm
(
conn
,
ev
->
status
);
hci_proto_connect_cfm
(
conn
,
ev
->
status
);
if
(
ev
->
status
)
if
(
ev
->
status
)
...
...
net/bluetooth/rfcomm/core.c
View file @
9a5120dd
...
@@ -1194,6 +1194,8 @@ void rfcomm_dlc_accept(struct rfcomm_dlc *d)
...
@@ -1194,6 +1194,8 @@ void rfcomm_dlc_accept(struct rfcomm_dlc *d)
rfcomm_send_ua
(
d
->
session
,
d
->
dlci
);
rfcomm_send_ua
(
d
->
session
,
d
->
dlci
);
rfcomm_dlc_clear_timer
(
d
);
rfcomm_dlc_lock
(
d
);
rfcomm_dlc_lock
(
d
);
d
->
state
=
BT_CONNECTED
;
d
->
state
=
BT_CONNECTED
;
d
->
state_change
(
d
,
0
);
d
->
state_change
(
d
,
0
);
...
...
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