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
66eb50d5
Commit
66eb50d5
authored
Sep 11, 2007
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge master.kernel.org:/pub/scm/linux/kernel/git/holtmann/bluetooth-2.6
parents
fdd8a532
89f2783d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
12 deletions
+28
-12
drivers/bluetooth/hci_usb.c
drivers/bluetooth/hci_usb.c
+4
-1
net/bluetooth/hci_core.c
net/bluetooth/hci_core.c
+3
-5
net/bluetooth/hci_sock.c
net/bluetooth/hci_sock.c
+21
-6
No files found.
drivers/bluetooth/hci_usb.c
View file @
66eb50d5
...
...
@@ -691,15 +691,18 @@ static void hci_usb_rx_complete(struct urb *urb)
urb
->
iso_frame_desc
[
i
].
offset
,
urb
->
iso_frame_desc
[
i
].
actual_length
);
if
(
!
urb
->
iso_frame_desc
[
i
].
status
)
if
(
!
urb
->
iso_frame_desc
[
i
].
status
)
{
husb
->
hdev
->
stat
.
byte_rx
+=
urb
->
iso_frame_desc
[
i
].
actual_length
;
hci_recv_fragment
(
husb
->
hdev
,
_urb
->
type
,
urb
->
transfer_buffer
+
urb
->
iso_frame_desc
[
i
].
offset
,
urb
->
iso_frame_desc
[
i
].
actual_length
);
}
}
#else
;
#endif
}
else
{
husb
->
hdev
->
stat
.
byte_rx
+=
count
;
err
=
hci_recv_fragment
(
husb
->
hdev
,
_urb
->
type
,
urb
->
transfer_buffer
,
count
);
if
(
err
<
0
)
{
BT_ERR
(
"%s corrupted packet: type %d count %d"
,
...
...
net/bluetooth/hci_core.c
View file @
66eb50d5
...
...
@@ -183,6 +183,7 @@ static void hci_init_req(struct hci_dev *hdev, unsigned long opt)
{
struct
sk_buff
*
skb
;
__le16
param
;
__u8
flt_type
;
BT_DBG
(
"%s %ld"
,
hdev
->
name
,
opt
);
...
...
@@ -233,11 +234,8 @@ static void hci_init_req(struct hci_dev *hdev, unsigned long opt)
/* Optional initialization */
/* Clear Event Filters */
{
struct
hci_cp_set_event_flt
cp
;
cp
.
flt_type
=
HCI_FLT_CLEAR_ALL
;
hci_send_cmd
(
hdev
,
OGF_HOST_CTL
,
OCF_SET_EVENT_FLT
,
sizeof
(
cp
),
&
cp
);
}
flt_type
=
HCI_FLT_CLEAR_ALL
;
hci_send_cmd
(
hdev
,
OGF_HOST_CTL
,
OCF_SET_EVENT_FLT
,
1
,
&
flt_type
);
/* Page timeout ~20 secs */
param
=
cpu_to_le16
(
0x8000
);
...
...
net/bluetooth/hci_sock.c
View file @
66eb50d5
...
...
@@ -37,6 +37,7 @@
#include <linux/skbuff.h>
#include <linux/workqueue.h>
#include <linux/interrupt.h>
#include <linux/compat.h>
#include <linux/socket.h>
#include <linux/ioctl.h>
#include <net/sock.h>
...
...
@@ -70,15 +71,15 @@ static struct hci_sec_filter hci_sec_filter = {
{
{
0x0
},
/* OGF_LINK_CTL */
{
0xbe000006
,
0x00000001
,
0x000000
,
0x00
},
{
0xbe000006
,
0x00000001
,
0x000000
00
,
0x00
},
/* OGF_LINK_POLICY */
{
0x00005200
,
0x00000000
,
0x000000
,
0x00
},
{
0x00005200
,
0x00000000
,
0x000000
00
,
0x00
},
/* OGF_HOST_CTL */
{
0xaab00200
,
0x2b402aaa
,
0x020154
,
0x00
},
{
0xaab00200
,
0x2b402aaa
,
0x0
52
20154
,
0x00
},
/* OGF_INFO_PARAM */
{
0x000002be
,
0x00000000
,
0x000000
,
0x00
},
{
0x000002be
,
0x00000000
,
0x000000
00
,
0x00
},
/* OGF_STATUS_PARAM */
{
0x000000ea
,
0x00000000
,
0x000000
,
0x00
}
{
0x000000ea
,
0x00000000
,
0x000000
00
,
0x00
}
}
};
...
...
@@ -342,9 +343,23 @@ static inline void hci_sock_cmsg(struct sock *sk, struct msghdr *msg, struct sk_
if
(
mask
&
HCI_CMSG_TSTAMP
)
{
struct
timeval
tv
;
void
*
data
;
int
len
;
skb_get_timestamp
(
skb
,
&
tv
);
put_cmsg
(
msg
,
SOL_HCI
,
HCI_CMSG_TSTAMP
,
sizeof
(
tv
),
&
tv
);
if
(
msg
->
msg_flags
&
MSG_CMSG_COMPAT
)
{
struct
compat_timeval
ctv
;
ctv
.
tv_sec
=
tv
.
tv_sec
;
ctv
.
tv_usec
=
tv
.
tv_usec
;
data
=
&
ctv
;
len
=
sizeof
(
ctv
);
}
else
{
data
=
&
tv
;
len
=
sizeof
(
tv
);
}
put_cmsg
(
msg
,
SOL_HCI
,
HCI_CMSG_TSTAMP
,
len
,
data
);
}
}
...
...
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