Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
38f3106a
Commit
38f3106a
authored
Apr 25, 2014
by
John W. Linville
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-upstream' of
git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth
parents
ffa216bb
1fb4e09a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
6 deletions
+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
No files found.
drivers/bluetooth/ath3k.c
View file @
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
View file @
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
View file @
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
View file @
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment