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
02160d32
Commit
02160d32
authored
Jul 31, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge
http://linux-mh.bkbits.net/bluetooth-2.6
into nuts.davemloft.net:/disk1/BK/net-2.6
parents
d9fde4ea
1317c324
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
14 deletions
+27
-14
drivers/bluetooth/hci_usb.c
drivers/bluetooth/hci_usb.c
+4
-1
net/bluetooth/bnep/core.c
net/bluetooth/bnep/core.c
+23
-13
No files found.
drivers/bluetooth/hci_usb.c
View file @
02160d32
...
...
@@ -65,7 +65,7 @@
#define URB_ZERO_PACKET 0
#endif
#define VERSION "2.
6
"
#define VERSION "2.
7
"
static
struct
usb_driver
hci_usb_driver
;
...
...
@@ -98,6 +98,9 @@ static struct usb_device_id blacklist_ids[] = {
/* Broadcom BCM2035 */
{
USB_DEVICE
(
0x0a5c
,
0x200a
),
.
driver_info
=
HCI_RESET
},
/* ISSC Bluetooth Adapter v3.1 */
{
USB_DEVICE
(
0x1131
,
0x1001
),
.
driver_info
=
HCI_RESET
},
/* Digianswer device */
{
USB_DEVICE
(
0x08fd
,
0x0001
),
.
driver_info
=
HCI_DIGIANSWER
},
...
...
net/bluetooth/bnep/core.c
View file @
02160d32
...
...
@@ -61,7 +61,7 @@
#define BT_DBG(D...)
#endif
#define VERSION "1.
0
"
#define VERSION "1.
2
"
static
LIST_HEAD
(
bnep_session_list
);
static
DECLARE_RWSEM
(
bnep_session_sem
);
...
...
@@ -113,6 +113,21 @@ static int bnep_send_rsp(struct bnep_session *s, u8 ctrl, u16 resp)
return
bnep_send
(
s
,
&
rsp
,
sizeof
(
rsp
));
}
#ifdef CONFIG_BT_BNEP_PROTO_FILTER
static
inline
void
bnep_set_default_proto_filter
(
struct
bnep_session
*
s
)
{
/* (IPv4, ARP) */
s
->
proto_filter
[
0
].
start
=
htons
(
0x0800
);
s
->
proto_filter
[
0
].
end
=
htons
(
0x0806
);
/* (RARP, AppleTalk) */
s
->
proto_filter
[
1
].
start
=
htons
(
0x8035
);
s
->
proto_filter
[
1
].
end
=
htons
(
0x80F3
);
/* (IPX, IPv6) */
s
->
proto_filter
[
2
].
start
=
htons
(
0x8137
);
s
->
proto_filter
[
2
].
end
=
htons
(
0x86DD
);
}
#endif
static
int
bnep_ctrl_set_netfilter
(
struct
bnep_session
*
s
,
u16
*
data
,
int
len
)
{
int
n
;
...
...
@@ -141,9 +156,13 @@ static int bnep_ctrl_set_netfilter(struct bnep_session *s, u16 *data, int len)
BT_DBG
(
"proto filter start %d end %d"
,
f
[
i
].
start
,
f
[
i
].
end
);
}
if
(
i
<
BNEP_MAX_PROTO_FILTERS
)
memset
(
f
+
i
,
0
,
sizeof
(
*
f
));
if
(
n
==
0
)
bnep_set_default_proto_filter
(
s
);
bnep_send_rsp
(
s
,
BNEP_FILTER_NET_TYPE_RSP
,
BNEP_SUCCESS
);
}
else
{
bnep_send_rsp
(
s
,
BNEP_FILTER_NET_TYPE_RSP
,
BNEP_FILTER_LIMIT_REACHED
);
...
...
@@ -547,16 +566,7 @@ int bnep_add_connection(struct bnep_connadd_req *req, struct socket *sock)
#ifdef CONFIG_BT_BNEP_PROTO_FILTER
/* Set default protocol filter */
/* (IPv4, ARP) */
s
->
proto_filter
[
0
].
start
=
htons
(
0x0800
);
s
->
proto_filter
[
0
].
end
=
htons
(
0x0806
);
/* (RARP, AppleTalk) */
s
->
proto_filter
[
1
].
start
=
htons
(
0x8035
);
s
->
proto_filter
[
1
].
end
=
htons
(
0x80F3
);
/* (IPX, IPv6) */
s
->
proto_filter
[
2
].
start
=
htons
(
0x8137
);
s
->
proto_filter
[
2
].
end
=
htons
(
0x86DD
);
bnep_set_default_proto_filter
(
s
);
#endif
err
=
register_netdev
(
dev
);
...
...
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