Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
448f2627
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
448f2627
编写于
6月 09, 2011
作者:
G
Gustavo F. Padovan
浏览文件
操作
浏览文件
下载
差异文件
Merge master.kernel.org:/pub/scm/linux/kernel/git/padovan/bluetooth-2.6
Conflicts: net/bluetooth/rfcomm/sock.c
上级
5a9d0a3f
6de6c18d
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
38 addition
and
10 deletion
+38
-10
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
+3
-1
net/bluetooth/sco.c
net/bluetooth/sco.c
+12
-1
未找到文件。
drivers/bluetooth/btmrvl_debugfs.c
浏览文件 @
448f2627
...
...
@@ -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
浏览文件 @
448f2627
...
...
@@ -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
)
{
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 */
}
/* 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
浏览文件 @
448f2627
...
...
@@ -367,6 +367,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
浏览文件 @
448f2627
...
...
@@ -679,7 +679,8 @@ static int rfcomm_sock_setsockopt(struct socket *sock, int level, int optname, c
{
struct
sock
*
sk
=
sock
->
sk
;
struct
bt_security
sec
;
int
len
,
err
=
0
;
int
err
=
0
;
size_t
len
;
u32
opt
;
BT_DBG
(
"sk %p"
,
sk
);
...
...
@@ -785,6 +786,7 @@ static int rfcomm_sock_getsockopt_old(struct socket *sock, int optname, char __u
break
;
}
memset
(
&
cinfo
,
0
,
sizeof
(
cinfo
));
cinfo
.
hci_handle
=
conn
->
hcon
->
handle
;
memcpy
(
cinfo
.
dev_class
,
conn
->
hcon
->
dev_class
,
3
);
...
...
net/bluetooth/sco.c
浏览文件 @
448f2627
...
...
@@ -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,7 +828,9 @@ static void sco_chan_del(struct sock *sk, int err)
conn
->
sk
=
NULL
;
sco_pi
(
sk
)
->
conn
=
NULL
;
sco_conn_unlock
(
conn
);
hci_conn_put
(
conn
->
hcon
);
if
(
conn
->
hcon
)
hci_conn_put
(
conn
->
hcon
);
}
sk
->
sk_state
=
BT_CLOSED
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录