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
485f2b7f
Commit
485f2b7f
authored
Nov 14, 2012
by
John W. Linville
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth
parents
e734207f
482049f7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
8 deletions
+12
-8
drivers/bluetooth/ath3k.c
drivers/bluetooth/ath3k.c
+1
-0
drivers/bluetooth/btusb.c
drivers/bluetooth/btusb.c
+1
-0
net/bluetooth/hci_core.c
net/bluetooth/hci_core.c
+2
-2
net/bluetooth/mgmt.c
net/bluetooth/mgmt.c
+7
-5
net/bluetooth/smp.c
net/bluetooth/smp.c
+1
-1
No files found.
drivers/bluetooth/ath3k.c
View file @
485f2b7f
...
@@ -67,6 +67,7 @@ static struct usb_device_id ath3k_table[] = {
...
@@ -67,6 +67,7 @@ static struct usb_device_id ath3k_table[] = {
{
USB_DEVICE
(
0x13d3
,
0x3304
)
},
{
USB_DEVICE
(
0x13d3
,
0x3304
)
},
{
USB_DEVICE
(
0x0930
,
0x0215
)
},
{
USB_DEVICE
(
0x0930
,
0x0215
)
},
{
USB_DEVICE
(
0x0489
,
0xE03D
)
},
{
USB_DEVICE
(
0x0489
,
0xE03D
)
},
{
USB_DEVICE
(
0x0489
,
0xE027
)
},
/* Atheros AR9285 Malbec with sflash firmware */
/* Atheros AR9285 Malbec with sflash firmware */
{
USB_DEVICE
(
0x03F0
,
0x311D
)
},
{
USB_DEVICE
(
0x03F0
,
0x311D
)
},
...
...
drivers/bluetooth/btusb.c
View file @
485f2b7f
...
@@ -124,6 +124,7 @@ static struct usb_device_id blacklist_table[] = {
...
@@ -124,6 +124,7 @@ static struct usb_device_id blacklist_table[] = {
{
USB_DEVICE
(
0x13d3
,
0x3304
),
.
driver_info
=
BTUSB_IGNORE
},
{
USB_DEVICE
(
0x13d3
,
0x3304
),
.
driver_info
=
BTUSB_IGNORE
},
{
USB_DEVICE
(
0x0930
,
0x0215
),
.
driver_info
=
BTUSB_IGNORE
},
{
USB_DEVICE
(
0x0930
,
0x0215
),
.
driver_info
=
BTUSB_IGNORE
},
{
USB_DEVICE
(
0x0489
,
0xe03d
),
.
driver_info
=
BTUSB_IGNORE
},
{
USB_DEVICE
(
0x0489
,
0xe03d
),
.
driver_info
=
BTUSB_IGNORE
},
{
USB_DEVICE
(
0x0489
,
0xe027
),
.
driver_info
=
BTUSB_IGNORE
},
/* Atheros AR9285 Malbec with sflash firmware */
/* Atheros AR9285 Malbec with sflash firmware */
{
USB_DEVICE
(
0x03f0
,
0x311d
),
.
driver_info
=
BTUSB_IGNORE
},
{
USB_DEVICE
(
0x03f0
,
0x311d
),
.
driver_info
=
BTUSB_IGNORE
},
...
...
net/bluetooth/hci_core.c
View file @
485f2b7f
...
@@ -1754,11 +1754,11 @@ int hci_register_dev(struct hci_dev *hdev)
...
@@ -1754,11 +1754,11 @@ int hci_register_dev(struct hci_dev *hdev)
if
(
hdev
->
dev_type
!=
HCI_AMP
)
if
(
hdev
->
dev_type
!=
HCI_AMP
)
set_bit
(
HCI_AUTO_OFF
,
&
hdev
->
dev_flags
);
set_bit
(
HCI_AUTO_OFF
,
&
hdev
->
dev_flags
);
schedule_work
(
&
hdev
->
power_on
);
hci_notify
(
hdev
,
HCI_DEV_REG
);
hci_notify
(
hdev
,
HCI_DEV_REG
);
hci_dev_hold
(
hdev
);
hci_dev_hold
(
hdev
);
schedule_work
(
&
hdev
->
power_on
);
return
id
;
return
id
;
err_wqueue:
err_wqueue:
...
...
net/bluetooth/mgmt.c
View file @
485f2b7f
...
@@ -326,7 +326,7 @@ static int read_index_list(struct sock *sk, struct hci_dev *hdev, void *data,
...
@@ -326,7 +326,7 @@ static int read_index_list(struct sock *sk, struct hci_dev *hdev, void *data,
struct
hci_dev
*
d
;
struct
hci_dev
*
d
;
size_t
rp_len
;
size_t
rp_len
;
u16
count
;
u16
count
;
int
i
,
err
;
int
err
;
BT_DBG
(
"sock %p"
,
sk
);
BT_DBG
(
"sock %p"
,
sk
);
...
@@ -347,9 +347,7 @@ static int read_index_list(struct sock *sk, struct hci_dev *hdev, void *data,
...
@@ -347,9 +347,7 @@ static int read_index_list(struct sock *sk, struct hci_dev *hdev, void *data,
return
-
ENOMEM
;
return
-
ENOMEM
;
}
}
rp
->
num_controllers
=
cpu_to_le16
(
count
);
count
=
0
;
i
=
0
;
list_for_each_entry
(
d
,
&
hci_dev_list
,
list
)
{
list_for_each_entry
(
d
,
&
hci_dev_list
,
list
)
{
if
(
test_bit
(
HCI_SETUP
,
&
d
->
dev_flags
))
if
(
test_bit
(
HCI_SETUP
,
&
d
->
dev_flags
))
continue
;
continue
;
...
@@ -357,10 +355,13 @@ static int read_index_list(struct sock *sk, struct hci_dev *hdev, void *data,
...
@@ -357,10 +355,13 @@ static int read_index_list(struct sock *sk, struct hci_dev *hdev, void *data,
if
(
!
mgmt_valid_hdev
(
d
))
if
(
!
mgmt_valid_hdev
(
d
))
continue
;
continue
;
rp
->
index
[
i
++
]
=
cpu_to_le16
(
d
->
id
);
rp
->
index
[
count
++
]
=
cpu_to_le16
(
d
->
id
);
BT_DBG
(
"Added hci%u"
,
d
->
id
);
BT_DBG
(
"Added hci%u"
,
d
->
id
);
}
}
rp
->
num_controllers
=
cpu_to_le16
(
count
);
rp_len
=
sizeof
(
*
rp
)
+
(
2
*
count
);
read_unlock
(
&
hci_dev_list_lock
);
read_unlock
(
&
hci_dev_list_lock
);
err
=
cmd_complete
(
sk
,
MGMT_INDEX_NONE
,
MGMT_OP_READ_INDEX_LIST
,
0
,
rp
,
err
=
cmd_complete
(
sk
,
MGMT_INDEX_NONE
,
MGMT_OP_READ_INDEX_LIST
,
0
,
rp
,
...
@@ -1366,6 +1367,7 @@ static int remove_uuid(struct sock *sk, struct hci_dev *hdev, void *data,
...
@@ -1366,6 +1367,7 @@ static int remove_uuid(struct sock *sk, struct hci_dev *hdev, void *data,
continue
;
continue
;
list_del
(
&
match
->
list
);
list_del
(
&
match
->
list
);
kfree
(
match
);
found
++
;
found
++
;
}
}
...
...
net/bluetooth/smp.c
View file @
485f2b7f
...
@@ -267,7 +267,7 @@ static void smp_failure(struct l2cap_conn *conn, u8 reason, u8 send)
...
@@ -267,7 +267,7 @@ static void smp_failure(struct l2cap_conn *conn, u8 reason, u8 send)
clear_bit
(
HCI_CONN_ENCRYPT_PEND
,
&
conn
->
hcon
->
flags
);
clear_bit
(
HCI_CONN_ENCRYPT_PEND
,
&
conn
->
hcon
->
flags
);
mgmt_auth_failed
(
conn
->
hcon
->
hdev
,
conn
->
dst
,
hcon
->
type
,
mgmt_auth_failed
(
conn
->
hcon
->
hdev
,
conn
->
dst
,
hcon
->
type
,
hcon
->
dst_type
,
reason
);
hcon
->
dst_type
,
HCI_ERROR_AUTH_FAILURE
);
cancel_delayed_work_sync
(
&
conn
->
security_timer
);
cancel_delayed_work_sync
(
&
conn
->
security_timer
);
...
...
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