Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
bbf2e652
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看板
提交
bbf2e652
编写于
8月 10, 2012
作者:
J
John W. Linville
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth
上级
50e2a30c
2096ae6c
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
41 addition
and
18 deletion
+41
-18
drivers/bluetooth/ath3k.c
drivers/bluetooth/ath3k.c
+2
-0
drivers/bluetooth/btusb.c
drivers/bluetooth/btusb.c
+2
-0
net/bluetooth/hci_event.c
net/bluetooth/hci_event.c
+22
-6
net/bluetooth/l2cap_core.c
net/bluetooth/l2cap_core.c
+1
-0
net/bluetooth/l2cap_sock.c
net/bluetooth/l2cap_sock.c
+1
-1
net/bluetooth/sco.c
net/bluetooth/sco.c
+9
-10
net/bluetooth/smp.c
net/bluetooth/smp.c
+4
-1
未找到文件。
drivers/bluetooth/ath3k.c
浏览文件 @
bbf2e652
...
...
@@ -79,6 +79,7 @@ static struct usb_device_id ath3k_table[] = {
{
USB_DEVICE
(
0x13d3
,
0x3362
)
},
{
USB_DEVICE
(
0x0CF3
,
0xE004
)
},
{
USB_DEVICE
(
0x0930
,
0x0219
)
},
{
USB_DEVICE
(
0x0489
,
0xe057
)
},
/* Atheros AR5BBU12 with sflash firmware */
{
USB_DEVICE
(
0x0489
,
0xE02C
)
},
...
...
@@ -104,6 +105,7 @@ static struct usb_device_id ath3k_blist_tbl[] = {
{
USB_DEVICE
(
0x13d3
,
0x3362
),
.
driver_info
=
BTUSB_ATH3012
},
{
USB_DEVICE
(
0x0cf3
,
0xe004
),
.
driver_info
=
BTUSB_ATH3012
},
{
USB_DEVICE
(
0x0930
,
0x0219
),
.
driver_info
=
BTUSB_ATH3012
},
{
USB_DEVICE
(
0x0489
,
0xe057
),
.
driver_info
=
BTUSB_ATH3012
},
/* Atheros AR5BBU22 with sflash firmware */
{
USB_DEVICE
(
0x0489
,
0xE03C
),
.
driver_info
=
BTUSB_ATH3012
},
...
...
drivers/bluetooth/btusb.c
浏览文件 @
bbf2e652
...
...
@@ -98,6 +98,7 @@ static struct usb_device_id btusb_table[] = {
{
USB_DEVICE
(
0x0a5c
,
0x21e6
)
},
{
USB_DEVICE
(
0x0a5c
,
0x21e8
)
},
{
USB_DEVICE
(
0x0a5c
,
0x21f3
)
},
{
USB_DEVICE
(
0x0a5c
,
0x21f4
)
},
{
USB_DEVICE
(
0x413c
,
0x8197
)
},
/* Foxconn - Hon Hai */
...
...
@@ -133,6 +134,7 @@ static struct usb_device_id blacklist_table[] = {
{
USB_DEVICE
(
0x13d3
,
0x3362
),
.
driver_info
=
BTUSB_ATH3012
},
{
USB_DEVICE
(
0x0cf3
,
0xe004
),
.
driver_info
=
BTUSB_ATH3012
},
{
USB_DEVICE
(
0x0930
,
0x0219
),
.
driver_info
=
BTUSB_ATH3012
},
{
USB_DEVICE
(
0x0489
,
0xe057
),
.
driver_info
=
BTUSB_ATH3012
},
/* Atheros AR5BBU12 with sflash firmware */
{
USB_DEVICE
(
0x0489
,
0xe02c
),
.
driver_info
=
BTUSB_IGNORE
},
...
...
net/bluetooth/hci_event.c
浏览文件 @
bbf2e652
...
...
@@ -1365,6 +1365,9 @@ static bool hci_resolve_next_name(struct hci_dev *hdev)
return
false
;
e
=
hci_inquiry_cache_lookup_resolve
(
hdev
,
BDADDR_ANY
,
NAME_NEEDED
);
if
(
!
e
)
return
false
;
if
(
hci_resolve_name
(
hdev
,
e
)
==
0
)
{
e
->
name_state
=
NAME_PENDING
;
return
true
;
...
...
@@ -1393,12 +1396,20 @@ static void hci_check_pending_name(struct hci_dev *hdev, struct hci_conn *conn,
return
;
e
=
hci_inquiry_cache_lookup_resolve
(
hdev
,
bdaddr
,
NAME_PENDING
);
if
(
e
)
{
/* If the device was not found in a list of found devices names of which
* are pending. there is no need to continue resolving a next name as it
* will be done upon receiving another Remote Name Request Complete
* Event */
if
(
!
e
)
return
;
list_del
(
&
e
->
list
);
if
(
name
)
{
e
->
name_state
=
NAME_KNOWN
;
list_del
(
&
e
->
list
);
if
(
name
)
mgmt_remote_name
(
hdev
,
bdaddr
,
ACL_LINK
,
0x00
,
e
->
data
.
rssi
,
name
,
name_len
)
;
mgmt_remote_name
(
hdev
,
bdaddr
,
ACL_LINK
,
0x00
,
e
->
data
.
rssi
,
name
,
name_len
);
}
else
{
e
->
name_state
=
NAME_NOT_KNOWN
;
}
if
(
hci_resolve_next_name
(
hdev
))
...
...
@@ -1762,7 +1773,12 @@ static void hci_conn_complete_evt(struct hci_dev *hdev, struct sk_buff *skb)
if
(
conn
->
type
==
ACL_LINK
)
{
conn
->
state
=
BT_CONFIG
;
hci_conn_hold
(
conn
);
conn
->
disc_timeout
=
HCI_DISCONN_TIMEOUT
;
if
(
!
conn
->
out
&&
!
hci_conn_ssp_enabled
(
conn
)
&&
!
hci_find_link_key
(
hdev
,
&
ev
->
bdaddr
))
conn
->
disc_timeout
=
HCI_PAIRING_TIMEOUT
;
else
conn
->
disc_timeout
=
HCI_DISCONN_TIMEOUT
;
}
else
conn
->
state
=
BT_CONNECTED
;
...
...
net/bluetooth/l2cap_core.c
浏览文件 @
bbf2e652
...
...
@@ -1181,6 +1181,7 @@ static void l2cap_le_conn_ready(struct l2cap_conn *conn)
sk
=
chan
->
sk
;
hci_conn_hold
(
conn
->
hcon
);
conn
->
hcon
->
disc_timeout
=
HCI_DISCONN_TIMEOUT
;
bacpy
(
&
bt_sk
(
sk
)
->
src
,
conn
->
src
);
bacpy
(
&
bt_sk
(
sk
)
->
dst
,
conn
->
dst
);
...
...
net/bluetooth/l2cap_sock.c
浏览文件 @
bbf2e652
...
...
@@ -1174,7 +1174,7 @@ static struct sock *l2cap_sock_alloc(struct net *net, struct socket *sock, int p
chan
=
l2cap_chan_create
();
if
(
!
chan
)
{
l2cap_sock_kill
(
sk
);
sk_free
(
sk
);
return
NULL
;
}
...
...
net/bluetooth/sco.c
浏览文件 @
bbf2e652
...
...
@@ -131,6 +131,15 @@ static int sco_conn_del(struct hci_conn *hcon, int err)
sco_sock_clear_timer
(
sk
);
sco_chan_del
(
sk
,
err
);
bh_unlock_sock
(
sk
);
sco_conn_lock
(
conn
);
conn
->
sk
=
NULL
;
sco_pi
(
sk
)
->
conn
=
NULL
;
sco_conn_unlock
(
conn
);
if
(
conn
->
hcon
)
hci_conn_put
(
conn
->
hcon
);
sco_sock_kill
(
sk
);
}
...
...
@@ -821,16 +830,6 @@ static void sco_chan_del(struct sock *sk, int err)
BT_DBG
(
"sk %p, conn %p, err %d"
,
sk
,
conn
,
err
);
if
(
conn
)
{
sco_conn_lock
(
conn
);
conn
->
sk
=
NULL
;
sco_pi
(
sk
)
->
conn
=
NULL
;
sco_conn_unlock
(
conn
);
if
(
conn
->
hcon
)
hci_conn_put
(
conn
->
hcon
);
}
sk
->
sk_state
=
BT_CLOSED
;
sk
->
sk_err
=
err
;
sk
->
sk_state_change
(
sk
);
...
...
net/bluetooth/smp.c
浏览文件 @
bbf2e652
...
...
@@ -579,8 +579,11 @@ static u8 smp_cmd_pairing_req(struct l2cap_conn *conn, struct sk_buff *skb)
if
(
!
test_and_set_bit
(
HCI_CONN_LE_SMP_PEND
,
&
conn
->
hcon
->
flags
))
smp
=
smp_chan_create
(
conn
);
else
smp
=
conn
->
smp_chan
;
smp
=
conn
->
smp_chan
;
if
(
!
smp
)
return
SMP_UNSPECIFIED
;
smp
->
preq
[
0
]
=
SMP_CMD_PAIRING_REQ
;
memcpy
(
&
smp
->
preq
[
1
],
req
,
sizeof
(
*
req
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录