Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
66eb50d5
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 大约 4 年
通知
14
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
66eb50d5
编写于
9月 11, 2007
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
差异文件
Merge master.kernel.org:/pub/scm/linux/kernel/git/holtmann/bluetooth-2.6
上级
fdd8a532
89f2783d
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
28 addition
and
12 deletion
+28
-12
drivers/bluetooth/hci_usb.c
drivers/bluetooth/hci_usb.c
+4
-1
net/bluetooth/hci_core.c
net/bluetooth/hci_core.c
+3
-5
net/bluetooth/hci_sock.c
net/bluetooth/hci_sock.c
+21
-6
未找到文件。
drivers/bluetooth/hci_usb.c
浏览文件 @
66eb50d5
...
...
@@ -691,15 +691,18 @@ static void hci_usb_rx_complete(struct urb *urb)
urb
->
iso_frame_desc
[
i
].
offset
,
urb
->
iso_frame_desc
[
i
].
actual_length
);
if
(
!
urb
->
iso_frame_desc
[
i
].
status
)
if
(
!
urb
->
iso_frame_desc
[
i
].
status
)
{
husb
->
hdev
->
stat
.
byte_rx
+=
urb
->
iso_frame_desc
[
i
].
actual_length
;
hci_recv_fragment
(
husb
->
hdev
,
_urb
->
type
,
urb
->
transfer_buffer
+
urb
->
iso_frame_desc
[
i
].
offset
,
urb
->
iso_frame_desc
[
i
].
actual_length
);
}
}
#else
;
#endif
}
else
{
husb
->
hdev
->
stat
.
byte_rx
+=
count
;
err
=
hci_recv_fragment
(
husb
->
hdev
,
_urb
->
type
,
urb
->
transfer_buffer
,
count
);
if
(
err
<
0
)
{
BT_ERR
(
"%s corrupted packet: type %d count %d"
,
...
...
net/bluetooth/hci_core.c
浏览文件 @
66eb50d5
...
...
@@ -183,6 +183,7 @@ static void hci_init_req(struct hci_dev *hdev, unsigned long opt)
{
struct
sk_buff
*
skb
;
__le16
param
;
__u8
flt_type
;
BT_DBG
(
"%s %ld"
,
hdev
->
name
,
opt
);
...
...
@@ -233,11 +234,8 @@ static void hci_init_req(struct hci_dev *hdev, unsigned long opt)
/* Optional initialization */
/* Clear Event Filters */
{
struct
hci_cp_set_event_flt
cp
;
cp
.
flt_type
=
HCI_FLT_CLEAR_ALL
;
hci_send_cmd
(
hdev
,
OGF_HOST_CTL
,
OCF_SET_EVENT_FLT
,
sizeof
(
cp
),
&
cp
);
}
flt_type
=
HCI_FLT_CLEAR_ALL
;
hci_send_cmd
(
hdev
,
OGF_HOST_CTL
,
OCF_SET_EVENT_FLT
,
1
,
&
flt_type
);
/* Page timeout ~20 secs */
param
=
cpu_to_le16
(
0x8000
);
...
...
net/bluetooth/hci_sock.c
浏览文件 @
66eb50d5
...
...
@@ -37,6 +37,7 @@
#include <linux/skbuff.h>
#include <linux/workqueue.h>
#include <linux/interrupt.h>
#include <linux/compat.h>
#include <linux/socket.h>
#include <linux/ioctl.h>
#include <net/sock.h>
...
...
@@ -70,15 +71,15 @@ static struct hci_sec_filter hci_sec_filter = {
{
{
0x0
},
/* OGF_LINK_CTL */
{
0xbe000006
,
0x00000001
,
0x000000
,
0x00
},
{
0xbe000006
,
0x00000001
,
0x000000
00
,
0x00
},
/* OGF_LINK_POLICY */
{
0x00005200
,
0x00000000
,
0x000000
,
0x00
},
{
0x00005200
,
0x00000000
,
0x000000
00
,
0x00
},
/* OGF_HOST_CTL */
{
0xaab00200
,
0x2b402aaa
,
0x020154
,
0x00
},
{
0xaab00200
,
0x2b402aaa
,
0x0
52
20154
,
0x00
},
/* OGF_INFO_PARAM */
{
0x000002be
,
0x00000000
,
0x000000
,
0x00
},
{
0x000002be
,
0x00000000
,
0x000000
00
,
0x00
},
/* OGF_STATUS_PARAM */
{
0x000000ea
,
0x00000000
,
0x000000
,
0x00
}
{
0x000000ea
,
0x00000000
,
0x000000
00
,
0x00
}
}
};
...
...
@@ -342,9 +343,23 @@ static inline void hci_sock_cmsg(struct sock *sk, struct msghdr *msg, struct sk_
if
(
mask
&
HCI_CMSG_TSTAMP
)
{
struct
timeval
tv
;
void
*
data
;
int
len
;
skb_get_timestamp
(
skb
,
&
tv
);
put_cmsg
(
msg
,
SOL_HCI
,
HCI_CMSG_TSTAMP
,
sizeof
(
tv
),
&
tv
);
if
(
msg
->
msg_flags
&
MSG_CMSG_COMPAT
)
{
struct
compat_timeval
ctv
;
ctv
.
tv_sec
=
tv
.
tv_sec
;
ctv
.
tv_usec
=
tv
.
tv_usec
;
data
=
&
ctv
;
len
=
sizeof
(
ctv
);
}
else
{
data
=
&
tv
;
len
=
sizeof
(
tv
);
}
put_cmsg
(
msg
,
SOL_HCI
,
HCI_CMSG_TSTAMP
,
len
,
data
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录