Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
c0068c85
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
c0068c85
编写于
8月 05, 2010
作者:
J
John W. Linville
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
git://git.kernel.org/pub/scm/linux/kernel/git/holtmann/bluetooth-next-2.6
上级
2411054a
adb08ede
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
28 addition
and
13 deletion
+28
-13
include/net/bluetooth/hci_core.h
include/net/bluetooth/hci_core.h
+1
-1
net/bluetooth/hci_core.c
net/bluetooth/hci_core.c
+1
-1
net/bluetooth/hci_sock.c
net/bluetooth/hci_sock.c
+3
-5
net/bluetooth/hci_sysfs.c
net/bluetooth/hci_sysfs.c
+1
-2
net/bluetooth/l2cap.c
net/bluetooth/l2cap.c
+21
-3
net/bluetooth/rfcomm/tty.c
net/bluetooth/rfcomm/tty.c
+1
-1
未找到文件。
include/net/bluetooth/hci_core.h
浏览文件 @
c0068c85
...
...
@@ -132,7 +132,7 @@ struct hci_dev {
struct
inquiry_cache
inq_cache
;
struct
hci_conn_hash
conn_hash
;
struct
bdaddr_list
blacklist
;
struct
list_head
blacklist
;
struct
hci_dev_stats
stat
;
...
...
net/bluetooth/hci_core.c
浏览文件 @
c0068c85
...
...
@@ -924,7 +924,7 @@ int hci_register_dev(struct hci_dev *hdev)
hci_conn_hash_init
(
hdev
);
INIT_LIST_HEAD
(
&
hdev
->
blacklist
.
list
);
INIT_LIST_HEAD
(
&
hdev
->
blacklist
);
memset
(
&
hdev
->
stat
,
0
,
sizeof
(
struct
hci_dev_stats
));
...
...
net/bluetooth/hci_sock.c
浏览文件 @
c0068c85
...
...
@@ -168,9 +168,8 @@ static int hci_sock_release(struct socket *sock)
struct
bdaddr_list
*
hci_blacklist_lookup
(
struct
hci_dev
*
hdev
,
bdaddr_t
*
bdaddr
)
{
struct
list_head
*
p
;
struct
bdaddr_list
*
blacklist
=
&
hdev
->
blacklist
;
list_for_each
(
p
,
&
blacklist
->
list
)
{
list_for_each
(
p
,
&
hdev
->
black
list
)
{
struct
bdaddr_list
*
b
;
b
=
list_entry
(
p
,
struct
bdaddr_list
,
list
);
...
...
@@ -202,7 +201,7 @@ static int hci_blacklist_add(struct hci_dev *hdev, void __user *arg)
bacpy
(
&
entry
->
bdaddr
,
&
bdaddr
);
list_add
(
&
entry
->
list
,
&
hdev
->
blacklist
.
list
);
list_add
(
&
entry
->
list
,
&
hdev
->
blacklist
);
return
0
;
}
...
...
@@ -210,9 +209,8 @@ static int hci_blacklist_add(struct hci_dev *hdev, void __user *arg)
int
hci_blacklist_clear
(
struct
hci_dev
*
hdev
)
{
struct
list_head
*
p
,
*
n
;
struct
bdaddr_list
*
blacklist
=
&
hdev
->
blacklist
;
list_for_each_safe
(
p
,
n
,
&
blacklist
->
list
)
{
list_for_each_safe
(
p
,
n
,
&
hdev
->
black
list
)
{
struct
bdaddr_list
*
b
;
b
=
list_entry
(
p
,
struct
bdaddr_list
,
list
);
...
...
net/bluetooth/hci_sysfs.c
浏览文件 @
c0068c85
...
...
@@ -439,12 +439,11 @@ static const struct file_operations inquiry_cache_fops = {
static
int
blacklist_show
(
struct
seq_file
*
f
,
void
*
p
)
{
struct
hci_dev
*
hdev
=
f
->
private
;
struct
bdaddr_list
*
blacklist
=
&
hdev
->
blacklist
;
struct
list_head
*
l
;
hci_dev_lock_bh
(
hdev
);
list_for_each
(
l
,
&
blacklist
->
list
)
{
list_for_each
(
l
,
&
hdev
->
black
list
)
{
struct
bdaddr_list
*
b
;
bdaddr_t
bdaddr
;
...
...
net/bluetooth/l2cap.c
浏览文件 @
c0068c85
...
...
@@ -2527,6 +2527,10 @@ static int l2cap_build_conf_req(struct sock *sk, void *data)
if
(
pi
->
imtu
!=
L2CAP_DEFAULT_MTU
)
l2cap_add_conf_opt
(
&
ptr
,
L2CAP_CONF_MTU
,
2
,
pi
->
imtu
);
if
(
!
(
pi
->
conn
->
feat_mask
&
L2CAP_FEAT_ERTM
)
&&
!
(
pi
->
conn
->
feat_mask
&
L2CAP_FEAT_STREAMING
))
break
;
rfc
.
mode
=
L2CAP_MODE_BASIC
;
rfc
.
txwin_size
=
0
;
rfc
.
max_transmit
=
0
;
...
...
@@ -2534,6 +2538,8 @@ static int l2cap_build_conf_req(struct sock *sk, void *data)
rfc
.
monitor_timeout
=
0
;
rfc
.
max_pdu_size
=
0
;
l2cap_add_conf_opt
(
&
ptr
,
L2CAP_CONF_RFC
,
sizeof
(
rfc
),
(
unsigned
long
)
&
rfc
);
break
;
case
L2CAP_MODE_ERTM
:
...
...
@@ -2546,6 +2552,9 @@ static int l2cap_build_conf_req(struct sock *sk, void *data)
if
(
L2CAP_DEFAULT_MAX_PDU_SIZE
>
pi
->
conn
->
mtu
-
10
)
rfc
.
max_pdu_size
=
cpu_to_le16
(
pi
->
conn
->
mtu
-
10
);
l2cap_add_conf_opt
(
&
ptr
,
L2CAP_CONF_RFC
,
sizeof
(
rfc
),
(
unsigned
long
)
&
rfc
);
if
(
!
(
pi
->
conn
->
feat_mask
&
L2CAP_FEAT_FCS
))
break
;
...
...
@@ -2566,6 +2575,9 @@ static int l2cap_build_conf_req(struct sock *sk, void *data)
if
(
L2CAP_DEFAULT_MAX_PDU_SIZE
>
pi
->
conn
->
mtu
-
10
)
rfc
.
max_pdu_size
=
cpu_to_le16
(
pi
->
conn
->
mtu
-
10
);
l2cap_add_conf_opt
(
&
ptr
,
L2CAP_CONF_RFC
,
sizeof
(
rfc
),
(
unsigned
long
)
&
rfc
);
if
(
!
(
pi
->
conn
->
feat_mask
&
L2CAP_FEAT_FCS
))
break
;
...
...
@@ -2577,9 +2589,6 @@ static int l2cap_build_conf_req(struct sock *sk, void *data)
break
;
}
l2cap_add_conf_opt
(
&
ptr
,
L2CAP_CONF_RFC
,
sizeof
(
rfc
),
(
unsigned
long
)
&
rfc
);
/* FIXME: Need actual value of the flush timeout */
//if (flush_to != L2CAP_DEFAULT_FLUSH_TO)
// l2cap_add_conf_opt(&ptr, L2CAP_CONF_FLUSH_TO, 2, pi->flush_to);
...
...
@@ -3339,6 +3348,15 @@ static inline int l2cap_information_rsp(struct l2cap_conn *conn, struct l2cap_cm
del_timer
(
&
conn
->
info_timer
);
if
(
result
!=
L2CAP_IR_SUCCESS
)
{
conn
->
info_state
|=
L2CAP_INFO_FEAT_MASK_REQ_DONE
;
conn
->
info_ident
=
0
;
l2cap_conn_start
(
conn
);
return
0
;
}
if
(
type
==
L2CAP_IT_FEAT_MASK
)
{
conn
->
feat_mask
=
get_unaligned_le32
(
rsp
->
data
);
...
...
net/bluetooth/rfcomm/tty.c
浏览文件 @
c0068c85
...
...
@@ -1183,7 +1183,7 @@ int __init rfcomm_init_ttys(void)
return
0
;
}
void
__exit
rfcomm_cleanup_ttys
(
void
)
void
rfcomm_cleanup_ttys
(
void
)
{
tty_unregister_driver
(
rfcomm_tty_driver
);
put_tty_driver
(
rfcomm_tty_driver
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录