Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
cd5098d2
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
cd5098d2
编写于
8月 06, 2005
作者:
L
Linus Torvalds
浏览文件
操作
浏览文件
下载
差异文件
Merge master.kernel.org:/pub/scm/linux/kernel/git/holtmann/bluetooth-2.6
上级
d8588ee5
576c7d85
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
10 addition
and
60 deletion
+10
-60
drivers/bluetooth/bpa10x.c
drivers/bluetooth/bpa10x.c
+2
-5
drivers/bluetooth/hci_bcsp.c
drivers/bluetooth/hci_bcsp.c
+0
-2
drivers/bluetooth/hci_h4.c
drivers/bluetooth/hci_h4.c
+0
-5
drivers/bluetooth/hci_ldisc.c
drivers/bluetooth/hci_ldisc.c
+0
-2
drivers/bluetooth/hci_usb.c
drivers/bluetooth/hci_usb.c
+5
-6
include/net/bluetooth/bluetooth.h
include/net/bluetooth/bluetooth.h
+0
-8
net/bluetooth/hci_core.c
net/bluetooth/hci_core.c
+0
-2
net/bluetooth/hci_event.c
net/bluetooth/hci_event.c
+3
-1
net/bluetooth/lib.c
net/bluetooth/lib.c
+0
-25
net/bluetooth/rfcomm/core.c
net/bluetooth/rfcomm/core.c
+0
-4
未找到文件。
drivers/bluetooth/bpa10x.c
浏览文件 @
cd5098d2
...
...
@@ -367,11 +367,8 @@ static inline void bpa10x_free_urb(struct urb *urb)
if
(
!
urb
)
return
;
if
(
urb
->
setup_packet
)
kfree
(
urb
->
setup_packet
);
if
(
urb
->
transfer_buffer
)
kfree
(
urb
->
transfer_buffer
);
kfree
(
urb
->
setup_packet
);
kfree
(
urb
->
transfer_buffer
);
usb_free_urb
(
urb
);
}
...
...
drivers/bluetooth/hci_bcsp.c
浏览文件 @
cd5098d2
...
...
@@ -58,8 +58,6 @@
#ifndef CONFIG_BT_HCIUART_DEBUG
#undef BT_DBG
#define BT_DBG( A... )
#undef BT_DMP
#define BT_DMP( A... )
#endif
static
int
hciextn
=
1
;
...
...
drivers/bluetooth/hci_h4.c
浏览文件 @
cd5098d2
...
...
@@ -57,8 +57,6 @@
#ifndef CONFIG_BT_HCIUART_DEBUG
#undef BT_DBG
#define BT_DBG( A... )
#undef BT_DMP
#define BT_DMP( A... )
#endif
/* Initialize protocol */
...
...
@@ -125,7 +123,6 @@ static inline int h4_check_data_len(struct h4_struct *h4, int len)
BT_DBG
(
"len %d room %d"
,
len
,
room
);
if
(
!
len
)
{
BT_DMP
(
h4
->
rx_skb
->
data
,
h4
->
rx_skb
->
len
);
hci_recv_frame
(
h4
->
rx_skb
);
}
else
if
(
len
>
room
)
{
BT_ERR
(
"Data length is too large"
);
...
...
@@ -169,8 +166,6 @@ static int h4_recv(struct hci_uart *hu, void *data, int count)
case
H4_W4_DATA
:
BT_DBG
(
"Complete data"
);
BT_DMP
(
h4
->
rx_skb
->
data
,
h4
->
rx_skb
->
len
);
hci_recv_frame
(
h4
->
rx_skb
);
h4
->
rx_state
=
H4_W4_PACKET_TYPE
;
...
...
drivers/bluetooth/hci_ldisc.c
浏览文件 @
cd5098d2
...
...
@@ -57,8 +57,6 @@
#ifndef CONFIG_BT_HCIUART_DEBUG
#undef BT_DBG
#define BT_DBG( A... )
#undef BT_DMP
#define BT_DMP( A... )
#endif
static
int
reset
=
0
;
...
...
drivers/bluetooth/hci_usb.c
浏览文件 @
cd5098d2
...
...
@@ -57,8 +57,6 @@
#ifndef CONFIG_BT_HCIUSB_DEBUG
#undef BT_DBG
#define BT_DBG(D...)
#undef BT_DMP
#define BT_DMP(D...)
#endif
#ifndef CONFIG_BT_HCIUSB_ZERO_PACKET
...
...
@@ -110,6 +108,9 @@ static struct usb_device_id blacklist_ids[] = {
/* Microsoft Wireless Transceiver for Bluetooth 2.0 */
{
USB_DEVICE
(
0x045e
,
0x009c
),
.
driver_info
=
HCI_RESET
},
/* Kensington Bluetooth USB adapter */
{
USB_DEVICE
(
0x047d
,
0x105d
),
.
driver_info
=
HCI_RESET
},
/* ISSC Bluetooth Adapter v3.1 */
{
USB_DEVICE
(
0x1131
,
0x1001
),
.
driver_info
=
HCI_RESET
},
...
...
@@ -387,10 +388,8 @@ static void hci_usb_unlink_urbs(struct hci_usb *husb)
urb
=
&
_urb
->
urb
;
BT_DBG
(
"%s freeing _urb %p type %d urb %p"
,
husb
->
hdev
->
name
,
_urb
,
_urb
->
type
,
urb
);
if
(
urb
->
setup_packet
)
kfree
(
urb
->
setup_packet
);
if
(
urb
->
transfer_buffer
)
kfree
(
urb
->
transfer_buffer
);
kfree
(
urb
->
setup_packet
);
kfree
(
urb
->
transfer_buffer
);
_urb_free
(
_urb
);
}
...
...
include/net/bluetooth/bluetooth.h
浏览文件 @
cd5098d2
...
...
@@ -57,12 +57,6 @@
#define BT_DBG(fmt, arg...) printk(KERN_INFO "%s: " fmt "\n" , __FUNCTION__ , ## arg)
#define BT_ERR(fmt, arg...) printk(KERN_ERR "%s: " fmt "\n" , __FUNCTION__ , ## arg)
#ifdef HCI_DATA_DUMP
#define BT_DMP(buf, len) bt_dump(__FUNCTION__, buf, len)
#else
#define BT_DMP(D...)
#endif
extern
struct
proc_dir_entry
*
proc_bt
;
/* Connection and socket states */
...
...
@@ -174,8 +168,6 @@ static inline int skb_frags_no(struct sk_buff *skb)
return
n
;
}
void
bt_dump
(
char
*
pref
,
__u8
*
buf
,
int
count
);
int
bt_err
(
__u16
code
);
#endif
/* __BLUETOOTH_H */
net/bluetooth/hci_core.c
浏览文件 @
cd5098d2
...
...
@@ -299,7 +299,6 @@ struct hci_dev *hci_dev_get(int index)
read_unlock
(
&
hci_dev_list_lock
);
return
hdev
;
}
EXPORT_SYMBOL
(
hci_dev_get
);
/* ---- Inquiry support ---- */
static
void
inquiry_cache_flush
(
struct
hci_dev
*
hdev
)
...
...
@@ -1042,7 +1041,6 @@ int hci_send_cmd(struct hci_dev *hdev, __u16 ogf, __u16 ocf, __u32 plen, void *p
return
0
;
}
EXPORT_SYMBOL
(
hci_send_cmd
);
/* Get data from the previously sent command */
void
*
hci_sent_cmd_data
(
struct
hci_dev
*
hdev
,
__u16
ogf
,
__u16
ocf
)
...
...
net/bluetooth/hci_event.c
浏览文件 @
cd5098d2
...
...
@@ -1035,9 +1035,11 @@ void hci_si_event(struct hci_dev *hdev, int type, int dlen, void *data)
ev
->
type
=
type
;
memcpy
(
ev
->
data
,
data
,
dlen
);
bt_cb
(
skb
)
->
incoming
=
1
;
do_gettimeofday
(
&
skb
->
stamp
);
skb
->
pkt_type
=
HCI_EVENT_PKT
;
skb
->
dev
=
(
void
*
)
hdev
;
hci_send_to_sock
(
hdev
,
skb
);
kfree_skb
(
skb
);
}
EXPORT_SYMBOL
(
hci_si_event
);
net/bluetooth/lib.c
浏览文件 @
cd5098d2
...
...
@@ -34,31 +34,6 @@
#include <net/bluetooth/bluetooth.h>
void
bt_dump
(
char
*
pref
,
__u8
*
buf
,
int
count
)
{
char
*
ptr
;
char
line
[
100
];
unsigned
int
i
;
printk
(
KERN_INFO
"%s: dump, len %d
\n
"
,
pref
,
count
);
ptr
=
line
;
*
ptr
=
0
;
for
(
i
=
0
;
i
<
count
;
i
++
)
{
ptr
+=
sprintf
(
ptr
,
" %2.2X"
,
buf
[
i
]);
if
(
i
&&
!
((
i
+
1
)
%
20
))
{
printk
(
KERN_INFO
"%s:%s
\n
"
,
pref
,
line
);
ptr
=
line
;
*
ptr
=
0
;
}
}
if
(
line
[
0
])
printk
(
KERN_INFO
"%s:%s
\n
"
,
pref
,
line
);
}
EXPORT_SYMBOL
(
bt_dump
);
void
baswap
(
bdaddr_t
*
dst
,
bdaddr_t
*
src
)
{
unsigned
char
*
d
=
(
unsigned
char
*
)
dst
;
...
...
net/bluetooth/rfcomm/core.c
浏览文件 @
cd5098d2
...
...
@@ -389,8 +389,6 @@ static int __rfcomm_dlc_close(struct rfcomm_dlc *d, int err)
rfcomm_dlc_unlock
(
d
);
skb_queue_purge
(
&
d
->
tx_queue
);
rfcomm_session_put
(
s
);
rfcomm_dlc_unlink
(
d
);
}
...
...
@@ -600,8 +598,6 @@ static struct rfcomm_session *rfcomm_session_create(bdaddr_t *src, bdaddr_t *dst
goto
failed
;
}
rfcomm_session_hold
(
s
);
s
->
initiator
=
1
;
bacpy
(
&
addr
.
l2_bdaddr
,
dst
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录