Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
38f3106a
K
Kernel
项目概览
openeuler
/
Kernel
接近 2 年 前同步成功
通知
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看板
提交
38f3106a
编写于
4月 25, 2014
作者:
J
John W. Linville
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'for-upstream' of
git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth
上级
ffa216bb
1fb4e09a
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
16 addition
and
6 deletion
+16
-6
drivers/bluetooth/ath3k.c
drivers/bluetooth/ath3k.c
+2
-0
drivers/bluetooth/btusb.c
drivers/bluetooth/btusb.c
+2
-3
net/bluetooth/hci_conn.c
net/bluetooth/hci_conn.c
+6
-3
net/bluetooth/hci_event.c
net/bluetooth/hci_event.c
+6
-0
未找到文件。
drivers/bluetooth/ath3k.c
浏览文件 @
38f3106a
...
@@ -82,6 +82,7 @@ static const struct usb_device_id ath3k_table[] = {
...
@@ -82,6 +82,7 @@ static const struct usb_device_id ath3k_table[] = {
{
USB_DEVICE
(
0x04CA
,
0x3004
)
},
{
USB_DEVICE
(
0x04CA
,
0x3004
)
},
{
USB_DEVICE
(
0x04CA
,
0x3005
)
},
{
USB_DEVICE
(
0x04CA
,
0x3005
)
},
{
USB_DEVICE
(
0x04CA
,
0x3006
)
},
{
USB_DEVICE
(
0x04CA
,
0x3006
)
},
{
USB_DEVICE
(
0x04CA
,
0x3007
)
},
{
USB_DEVICE
(
0x04CA
,
0x3008
)
},
{
USB_DEVICE
(
0x04CA
,
0x3008
)
},
{
USB_DEVICE
(
0x04CA
,
0x300b
)
},
{
USB_DEVICE
(
0x04CA
,
0x300b
)
},
{
USB_DEVICE
(
0x0930
,
0x0219
)
},
{
USB_DEVICE
(
0x0930
,
0x0219
)
},
...
@@ -131,6 +132,7 @@ static const struct usb_device_id ath3k_blist_tbl[] = {
...
@@ -131,6 +132,7 @@ static const struct usb_device_id ath3k_blist_tbl[] = {
{
USB_DEVICE
(
0x04ca
,
0x3004
),
.
driver_info
=
BTUSB_ATH3012
},
{
USB_DEVICE
(
0x04ca
,
0x3004
),
.
driver_info
=
BTUSB_ATH3012
},
{
USB_DEVICE
(
0x04ca
,
0x3005
),
.
driver_info
=
BTUSB_ATH3012
},
{
USB_DEVICE
(
0x04ca
,
0x3005
),
.
driver_info
=
BTUSB_ATH3012
},
{
USB_DEVICE
(
0x04ca
,
0x3006
),
.
driver_info
=
BTUSB_ATH3012
},
{
USB_DEVICE
(
0x04ca
,
0x3006
),
.
driver_info
=
BTUSB_ATH3012
},
{
USB_DEVICE
(
0x04ca
,
0x3007
),
.
driver_info
=
BTUSB_ATH3012
},
{
USB_DEVICE
(
0x04ca
,
0x3008
),
.
driver_info
=
BTUSB_ATH3012
},
{
USB_DEVICE
(
0x04ca
,
0x3008
),
.
driver_info
=
BTUSB_ATH3012
},
{
USB_DEVICE
(
0x04ca
,
0x300b
),
.
driver_info
=
BTUSB_ATH3012
},
{
USB_DEVICE
(
0x04ca
,
0x300b
),
.
driver_info
=
BTUSB_ATH3012
},
{
USB_DEVICE
(
0x0930
,
0x0219
),
.
driver_info
=
BTUSB_ATH3012
},
{
USB_DEVICE
(
0x0930
,
0x0219
),
.
driver_info
=
BTUSB_ATH3012
},
...
...
drivers/bluetooth/btusb.c
浏览文件 @
38f3106a
...
@@ -152,6 +152,7 @@ static const struct usb_device_id blacklist_table[] = {
...
@@ -152,6 +152,7 @@ static const struct usb_device_id blacklist_table[] = {
{
USB_DEVICE
(
0x04ca
,
0x3004
),
.
driver_info
=
BTUSB_ATH3012
},
{
USB_DEVICE
(
0x04ca
,
0x3004
),
.
driver_info
=
BTUSB_ATH3012
},
{
USB_DEVICE
(
0x04ca
,
0x3005
),
.
driver_info
=
BTUSB_ATH3012
},
{
USB_DEVICE
(
0x04ca
,
0x3005
),
.
driver_info
=
BTUSB_ATH3012
},
{
USB_DEVICE
(
0x04ca
,
0x3006
),
.
driver_info
=
BTUSB_ATH3012
},
{
USB_DEVICE
(
0x04ca
,
0x3006
),
.
driver_info
=
BTUSB_ATH3012
},
{
USB_DEVICE
(
0x04ca
,
0x3007
),
.
driver_info
=
BTUSB_ATH3012
},
{
USB_DEVICE
(
0x04ca
,
0x3008
),
.
driver_info
=
BTUSB_ATH3012
},
{
USB_DEVICE
(
0x04ca
,
0x3008
),
.
driver_info
=
BTUSB_ATH3012
},
{
USB_DEVICE
(
0x04ca
,
0x300b
),
.
driver_info
=
BTUSB_ATH3012
},
{
USB_DEVICE
(
0x04ca
,
0x300b
),
.
driver_info
=
BTUSB_ATH3012
},
{
USB_DEVICE
(
0x0930
,
0x0219
),
.
driver_info
=
BTUSB_ATH3012
},
{
USB_DEVICE
(
0x0930
,
0x0219
),
.
driver_info
=
BTUSB_ATH3012
},
...
@@ -1485,10 +1486,8 @@ static int btusb_probe(struct usb_interface *intf,
...
@@ -1485,10 +1486,8 @@ static int btusb_probe(struct usb_interface *intf,
if
(
id
->
driver_info
&
BTUSB_BCM92035
)
if
(
id
->
driver_info
&
BTUSB_BCM92035
)
hdev
->
setup
=
btusb_setup_bcm92035
;
hdev
->
setup
=
btusb_setup_bcm92035
;
if
(
id
->
driver_info
&
BTUSB_INTEL
)
{
if
(
id
->
driver_info
&
BTUSB_INTEL
)
usb_enable_autosuspend
(
data
->
udev
);
hdev
->
setup
=
btusb_setup_intel
;
hdev
->
setup
=
btusb_setup_intel
;
}
/* Interface numbers are hardcoded in the specification */
/* Interface numbers are hardcoded in the specification */
data
->
isoc
=
usb_ifnum_to_if
(
data
->
udev
,
1
);
data
->
isoc
=
usb_ifnum_to_if
(
data
->
udev
,
1
);
...
...
net/bluetooth/hci_conn.c
浏览文件 @
38f3106a
...
@@ -819,14 +819,17 @@ static int hci_conn_auth(struct hci_conn *conn, __u8 sec_level, __u8 auth_type)
...
@@ -819,14 +819,17 @@ static int hci_conn_auth(struct hci_conn *conn, __u8 sec_level, __u8 auth_type)
if
(
!
test_and_set_bit
(
HCI_CONN_AUTH_PEND
,
&
conn
->
flags
))
{
if
(
!
test_and_set_bit
(
HCI_CONN_AUTH_PEND
,
&
conn
->
flags
))
{
struct
hci_cp_auth_requested
cp
;
struct
hci_cp_auth_requested
cp
;
/* encrypt must be pending if auth is also pending */
set_bit
(
HCI_CONN_ENCRYPT_PEND
,
&
conn
->
flags
);
cp
.
handle
=
cpu_to_le16
(
conn
->
handle
);
cp
.
handle
=
cpu_to_le16
(
conn
->
handle
);
hci_send_cmd
(
conn
->
hdev
,
HCI_OP_AUTH_REQUESTED
,
hci_send_cmd
(
conn
->
hdev
,
HCI_OP_AUTH_REQUESTED
,
sizeof
(
cp
),
&
cp
);
sizeof
(
cp
),
&
cp
);
/* If we're already encrypted set the REAUTH_PEND flag,
* otherwise set the ENCRYPT_PEND.
*/
if
(
conn
->
key_type
!=
0xff
)
if
(
conn
->
key_type
!=
0xff
)
set_bit
(
HCI_CONN_REAUTH_PEND
,
&
conn
->
flags
);
set_bit
(
HCI_CONN_REAUTH_PEND
,
&
conn
->
flags
);
else
set_bit
(
HCI_CONN_ENCRYPT_PEND
,
&
conn
->
flags
);
}
}
return
0
;
return
0
;
...
...
net/bluetooth/hci_event.c
浏览文件 @
38f3106a
...
@@ -3330,6 +3330,12 @@ static void hci_key_refresh_complete_evt(struct hci_dev *hdev,
...
@@ -3330,6 +3330,12 @@ static void hci_key_refresh_complete_evt(struct hci_dev *hdev,
if
(
!
conn
)
if
(
!
conn
)
goto
unlock
;
goto
unlock
;
/* For BR/EDR the necessary steps are taken through the
* auth_complete event.
*/
if
(
conn
->
type
!=
LE_LINK
)
goto
unlock
;
if
(
!
ev
->
status
)
if
(
!
ev
->
status
)
conn
->
sec_level
=
conn
->
pending_sec_level
;
conn
->
sec_level
=
conn
->
pending_sec_level
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录