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
d6124baf
Commit
d6124baf
authored
Jun 10, 2011
by
John W. Linville
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/padovan/bluetooth-2.6
parents
51e65257
7f4f0572
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
9 deletions
+36
-9
drivers/bluetooth/btmrvl_debugfs.c
drivers/bluetooth/btmrvl_debugfs.c
+12
-0
net/bluetooth/hci_event.c
net/bluetooth/hci_event.c
+10
-8
net/bluetooth/l2cap_sock.c
net/bluetooth/l2cap_sock.c
+1
-0
net/bluetooth/rfcomm/sock.c
net/bluetooth/rfcomm/sock.c
+1
-0
net/bluetooth/sco.c
net/bluetooth/sco.c
+12
-1
No files found.
drivers/bluetooth/btmrvl_debugfs.c
View file @
d6124baf
...
...
@@ -64,6 +64,8 @@ static ssize_t btmrvl_hscfgcmd_write(struct file *file,
return
-
EFAULT
;
ret
=
strict_strtol
(
buf
,
10
,
&
result
);
if
(
ret
)
return
ret
;
priv
->
btmrvl_dev
.
hscfgcmd
=
result
;
...
...
@@ -108,6 +110,8 @@ static ssize_t btmrvl_psmode_write(struct file *file, const char __user *ubuf,
return
-
EFAULT
;
ret
=
strict_strtol
(
buf
,
10
,
&
result
);
if
(
ret
)
return
ret
;
priv
->
btmrvl_dev
.
psmode
=
result
;
...
...
@@ -147,6 +151,8 @@ static ssize_t btmrvl_pscmd_write(struct file *file, const char __user *ubuf,
return
-
EFAULT
;
ret
=
strict_strtol
(
buf
,
10
,
&
result
);
if
(
ret
)
return
ret
;
priv
->
btmrvl_dev
.
pscmd
=
result
;
...
...
@@ -191,6 +197,8 @@ static ssize_t btmrvl_gpiogap_write(struct file *file, const char __user *ubuf,
return
-
EFAULT
;
ret
=
strict_strtol
(
buf
,
16
,
&
result
);
if
(
ret
)
return
ret
;
priv
->
btmrvl_dev
.
gpio_gap
=
result
;
...
...
@@ -230,6 +238,8 @@ static ssize_t btmrvl_hscmd_write(struct file *file, const char __user *ubuf,
return
-
EFAULT
;
ret
=
strict_strtol
(
buf
,
10
,
&
result
);
if
(
ret
)
return
ret
;
priv
->
btmrvl_dev
.
hscmd
=
result
;
if
(
priv
->
btmrvl_dev
.
hscmd
)
{
...
...
@@ -272,6 +282,8 @@ static ssize_t btmrvl_hsmode_write(struct file *file, const char __user *ubuf,
return
-
EFAULT
;
ret
=
strict_strtol
(
buf
,
10
,
&
result
);
if
(
ret
)
return
ret
;
priv
->
btmrvl_dev
.
hsmode
=
result
;
...
...
net/bluetooth/hci_event.c
View file @
d6124baf
...
...
@@ -477,14 +477,16 @@ static void hci_setup_event_mask(struct hci_dev *hdev)
* command otherwise */
u8
events
[
8
]
=
{
0xff
,
0xff
,
0xfb
,
0xff
,
0x00
,
0x00
,
0x00
,
0x00
};
/* Events for 1.2 and newer controllers */
if
(
hdev
->
lmp_ver
>
1
)
{
/* CSR 1.1 dongles does not accept any bitfield so don't try to set
* any event mask for pre 1.2 devices */
if
(
hdev
->
lmp_ver
<=
1
)
return
;
events
[
4
]
|=
0x01
;
/* Flow Specification Complete */
events
[
4
]
|=
0x02
;
/* Inquiry Result with RSSI */
events
[
4
]
|=
0x04
;
/* Read Remote Extended Features Complete */
events
[
5
]
|=
0x08
;
/* Synchronous Connection Complete */
events
[
5
]
|=
0x10
;
/* Synchronous Connection Changed */
}
if
(
hdev
->
features
[
3
]
&
LMP_RSSI_INQ
)
events
[
4
]
|=
0x04
;
/* Inquiry Result with RSSI */
...
...
net/bluetooth/l2cap_sock.c
View file @
d6124baf
...
...
@@ -413,6 +413,7 @@ static int l2cap_sock_getsockopt_old(struct socket *sock, int optname, char __us
break
;
}
memset
(
&
cinfo
,
0
,
sizeof
(
cinfo
));
cinfo
.
hci_handle
=
chan
->
conn
->
hcon
->
handle
;
memcpy
(
cinfo
.
dev_class
,
chan
->
conn
->
hcon
->
dev_class
,
3
);
...
...
net/bluetooth/rfcomm/sock.c
View file @
d6124baf
...
...
@@ -788,6 +788,7 @@ static int rfcomm_sock_getsockopt_old(struct socket *sock, int optname, char __u
l2cap_sk
=
rfcomm_pi
(
sk
)
->
dlc
->
session
->
sock
->
sk
;
memset
(
&
cinfo
,
0
,
sizeof
(
cinfo
));
cinfo
.
hci_handle
=
conn
->
hcon
->
handle
;
memcpy
(
cinfo
.
dev_class
,
conn
->
hcon
->
dev_class
,
3
);
...
...
net/bluetooth/sco.c
View file @
d6124baf
...
...
@@ -369,6 +369,15 @@ static void __sco_sock_close(struct sock *sk)
case
BT_CONNECTED
:
case
BT_CONFIG
:
if
(
sco_pi
(
sk
)
->
conn
)
{
sk
->
sk_state
=
BT_DISCONN
;
sco_sock_set_timer
(
sk
,
SCO_DISCONN_TIMEOUT
);
hci_conn_put
(
sco_pi
(
sk
)
->
conn
->
hcon
);
sco_pi
(
sk
)
->
conn
->
hcon
=
NULL
;
}
else
sco_chan_del
(
sk
,
ECONNRESET
);
break
;
case
BT_CONNECT
:
case
BT_DISCONN
:
sco_chan_del
(
sk
,
ECONNRESET
);
...
...
@@ -819,6 +828,8 @@ static void sco_chan_del(struct sock *sk, int err)
conn
->
sk
=
NULL
;
sco_pi
(
sk
)
->
conn
=
NULL
;
sco_conn_unlock
(
conn
);
if
(
conn
->
hcon
)
hci_conn_put
(
conn
->
hcon
);
}
...
...
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