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
Kirill Smelkov
linux
Commits
f84f9653
Commit
f84f9653
authored
Mar 14, 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
53f2191e
93d372ca
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
61 additions
and
51 deletions
+61
-51
drivers/bluetooth/bcm203x.c
drivers/bluetooth/bcm203x.c
+3
-2
drivers/bluetooth/bfusb.c
drivers/bluetooth/bfusb.c
+3
-2
drivers/bluetooth/hci_bcsp.c
drivers/bluetooth/hci_bcsp.c
+1
-1
drivers/bluetooth/hci_ldisc.c
drivers/bluetooth/hci_ldisc.c
+4
-3
drivers/bluetooth/hci_usb.c
drivers/bluetooth/hci_usb.c
+6
-5
net/bluetooth/af_bluetooth.c
net/bluetooth/af_bluetooth.c
+4
-3
net/bluetooth/bnep/core.c
net/bluetooth/bnep/core.c
+7
-6
net/bluetooth/bnep/netdev.c
net/bluetooth/bnep/netdev.c
+1
-1
net/bluetooth/bnep/sock.c
net/bluetooth/bnep/sock.c
+1
-1
net/bluetooth/cmtp/core.c
net/bluetooth/cmtp/core.c
+5
-4
net/bluetooth/hci_event.c
net/bluetooth/hci_event.c
+2
-2
net/bluetooth/l2cap.c
net/bluetooth/l2cap.c
+7
-6
net/bluetooth/rfcomm/core.c
net/bluetooth/rfcomm/core.c
+4
-3
net/bluetooth/sco.c
net/bluetooth/sco.c
+13
-12
No files found.
drivers/bluetooth/bcm203x.c
View file @
f84f9653
...
@@ -296,14 +296,15 @@ static int __init bcm203x_init(void)
...
@@ -296,14 +296,15 @@ static int __init bcm203x_init(void)
return
err
;
return
err
;
}
}
static
void
__exit
bcm203x_
cleanup
(
void
)
static
void
__exit
bcm203x_
exit
(
void
)
{
{
usb_deregister
(
&
bcm203x_driver
);
usb_deregister
(
&
bcm203x_driver
);
}
}
module_init
(
bcm203x_init
);
module_init
(
bcm203x_init
);
module_exit
(
bcm203x_
cleanup
);
module_exit
(
bcm203x_
exit
);
MODULE_AUTHOR
(
"Marcel Holtmann <marcel@holtmann.org>"
);
MODULE_AUTHOR
(
"Marcel Holtmann <marcel@holtmann.org>"
);
MODULE_DESCRIPTION
(
"Broadcom Blutonium firmware driver ver "
VERSION
);
MODULE_DESCRIPTION
(
"Broadcom Blutonium firmware driver ver "
VERSION
);
MODULE_VERSION
(
VERSION
);
MODULE_LICENSE
(
"GPL"
);
MODULE_LICENSE
(
"GPL"
);
drivers/bluetooth/bfusb.c
View file @
f84f9653
...
@@ -779,14 +779,15 @@ static int __init bfusb_init(void)
...
@@ -779,14 +779,15 @@ static int __init bfusb_init(void)
return
err
;
return
err
;
}
}
static
void
__exit
bfusb_
cleanup
(
void
)
static
void
__exit
bfusb_
exit
(
void
)
{
{
usb_deregister
(
&
bfusb_driver
);
usb_deregister
(
&
bfusb_driver
);
}
}
module_init
(
bfusb_init
);
module_init
(
bfusb_init
);
module_exit
(
bfusb_
cleanup
);
module_exit
(
bfusb_
exit
);
MODULE_AUTHOR
(
"Marcel Holtmann <marcel@holtmann.org>"
);
MODULE_AUTHOR
(
"Marcel Holtmann <marcel@holtmann.org>"
);
MODULE_DESCRIPTION
(
"BlueFRITZ! USB driver ver "
VERSION
);
MODULE_DESCRIPTION
(
"BlueFRITZ! USB driver ver "
VERSION
);
MODULE_VERSION
(
VERSION
);
MODULE_LICENSE
(
"GPL"
);
MODULE_LICENSE
(
"GPL"
);
drivers/bluetooth/hci_bcsp.c
View file @
f84f9653
...
@@ -512,7 +512,7 @@ static int bcsp_recv(struct hci_uart *hu, void *data, int count)
...
@@ -512,7 +512,7 @@ static int bcsp_recv(struct hci_uart *hu, void *data, int count)
struct
bcsp_struct
*
bcsp
=
hu
->
priv
;
struct
bcsp_struct
*
bcsp
=
hu
->
priv
;
register
unsigned
char
*
ptr
;
register
unsigned
char
*
ptr
;
BT_DBG
(
"hu %p count %d rx_state %
l
d rx_count %ld"
,
BT_DBG
(
"hu %p count %d rx_state %d rx_count %ld"
,
hu
,
count
,
bcsp
->
rx_state
,
bcsp
->
rx_count
);
hu
,
count
,
bcsp
->
rx_state
,
bcsp
->
rx_count
);
ptr
=
data
;
ptr
=
data
;
...
...
drivers/bluetooth/hci_ldisc.c
View file @
f84f9653
...
@@ -521,7 +521,7 @@ int bcsp_init(void);
...
@@ -521,7 +521,7 @@ int bcsp_init(void);
int
bcsp_deinit
(
void
);
int
bcsp_deinit
(
void
);
#endif
#endif
int
__init
hci_uart_init
(
void
)
static
int
__init
hci_uart_init
(
void
)
{
{
static
struct
tty_ldisc
hci_uart_ldisc
;
static
struct
tty_ldisc
hci_uart_ldisc
;
int
err
;
int
err
;
...
@@ -559,7 +559,7 @@ int __init hci_uart_init(void)
...
@@ -559,7 +559,7 @@ int __init hci_uart_init(void)
return
0
;
return
0
;
}
}
void
hci_uart_cleanup
(
void
)
static
void
__exit
hci_uart_exit
(
void
)
{
{
int
err
;
int
err
;
...
@@ -576,9 +576,10 @@ void hci_uart_cleanup(void)
...
@@ -576,9 +576,10 @@ void hci_uart_cleanup(void)
}
}
module_init
(
hci_uart_init
);
module_init
(
hci_uart_init
);
module_exit
(
hci_uart_
cleanup
);
module_exit
(
hci_uart_
exit
);
MODULE_AUTHOR
(
"Maxim Krasnyansky <maxk@qualcomm.com>"
);
MODULE_AUTHOR
(
"Maxim Krasnyansky <maxk@qualcomm.com>"
);
MODULE_DESCRIPTION
(
"Bluetooth HCI UART driver ver "
VERSION
);
MODULE_DESCRIPTION
(
"Bluetooth HCI UART driver ver "
VERSION
);
MODULE_VERSION
(
VERSION
);
MODULE_LICENSE
(
"GPL"
);
MODULE_LICENSE
(
"GPL"
);
MODULE_ALIAS_LDISC
(
N_HCI
);
MODULE_ALIAS_LDISC
(
N_HCI
);
drivers/bluetooth/hci_usb.c
View file @
f84f9653
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
#include "hci_usb.h"
#include "hci_usb.h"
#ifndef
HCI_
USB_DEBUG
#ifndef
CONFIG_BT_HCI
USB_DEBUG
#undef BT_DBG
#undef BT_DBG
#define BT_DBG( A... )
#define BT_DBG( A... )
#undef BT_DMP
#undef BT_DMP
...
@@ -795,7 +795,7 @@ int hci_usb_probe(struct usb_interface *intf, const struct usb_device_id *id)
...
@@ -795,7 +795,7 @@ int hci_usb_probe(struct usb_interface *intf, const struct usb_device_id *id)
struct
hci_dev
*
hdev
;
struct
hci_dev
*
hdev
;
int
i
,
a
,
e
,
size
,
ifn
,
isoc_ifnum
,
isoc_alts
;
int
i
,
a
,
e
,
size
,
ifn
,
isoc_ifnum
,
isoc_alts
;
BT_DBG
(
"udev %p i
fnum %d"
,
udev
,
ifnum
);
BT_DBG
(
"udev %p i
ntf %p"
,
udev
,
intf
);
if
(
!
id
->
driver_info
)
{
if
(
!
id
->
driver_info
)
{
const
struct
usb_device_id
*
match
;
const
struct
usb_device_id
*
match
;
...
@@ -991,7 +991,7 @@ static struct usb_driver hci_usb_driver = {
...
@@ -991,7 +991,7 @@ static struct usb_driver hci_usb_driver = {
.
id_table
=
bluetooth_ids
,
.
id_table
=
bluetooth_ids
,
};
};
in
t
hci_usb_init
(
void
)
static
int
__ini
t
hci_usb_init
(
void
)
{
{
int
err
;
int
err
;
...
@@ -1003,14 +1003,15 @@ int hci_usb_init(void)
...
@@ -1003,14 +1003,15 @@ int hci_usb_init(void)
return
err
;
return
err
;
}
}
void
hci_usb_cleanup
(
void
)
static
void
__exit
hci_usb_exit
(
void
)
{
{
usb_deregister
(
&
hci_usb_driver
);
usb_deregister
(
&
hci_usb_driver
);
}
}
module_init
(
hci_usb_init
);
module_init
(
hci_usb_init
);
module_exit
(
hci_usb_
cleanup
);
module_exit
(
hci_usb_
exit
);
MODULE_AUTHOR
(
"Maxim Krasnyansky <maxk@qualcomm.com>, Marcel Holtmann <marcel@holtmann.org>"
);
MODULE_AUTHOR
(
"Maxim Krasnyansky <maxk@qualcomm.com>, Marcel Holtmann <marcel@holtmann.org>"
);
MODULE_DESCRIPTION
(
"Bluetooth HCI USB driver ver "
VERSION
);
MODULE_DESCRIPTION
(
"Bluetooth HCI USB driver ver "
VERSION
);
MODULE_VERSION
(
VERSION
);
MODULE_LICENSE
(
"GPL"
);
MODULE_LICENSE
(
"GPL"
);
net/bluetooth/af_bluetooth.c
View file @
f84f9653
...
@@ -323,7 +323,7 @@ int bt_sock_wait_state(struct sock *sk, int state, unsigned long timeo)
...
@@ -323,7 +323,7 @@ int bt_sock_wait_state(struct sock *sk, int state, unsigned long timeo)
return
err
;
return
err
;
}
}
struct
net_proto_family
bt_sock_family_ops
=
{
st
atic
st
ruct
net_proto_family
bt_sock_family_ops
=
{
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
family
=
PF_BLUETOOTH
,
.
family
=
PF_BLUETOOTH
,
.
create
=
bt_sock_create
,
.
create
=
bt_sock_create
,
...
@@ -364,7 +364,7 @@ static int __init bt_init(void)
...
@@ -364,7 +364,7 @@ static int __init bt_init(void)
return
0
;
return
0
;
}
}
static
void
__exit
bt_
cleanup
(
void
)
static
void
__exit
bt_
exit
(
void
)
{
{
hci_sock_cleanup
();
hci_sock_cleanup
();
...
@@ -377,9 +377,10 @@ static void __exit bt_cleanup(void)
...
@@ -377,9 +377,10 @@ static void __exit bt_cleanup(void)
}
}
subsys_initcall
(
bt_init
);
subsys_initcall
(
bt_init
);
module_exit
(
bt_
cleanup
);
module_exit
(
bt_
exit
);
MODULE_AUTHOR
(
"Maxim Krasnyansky <maxk@qualcomm.com>, Marcel Holtmann <marcel@holtmann.org>"
);
MODULE_AUTHOR
(
"Maxim Krasnyansky <maxk@qualcomm.com>, Marcel Holtmann <marcel@holtmann.org>"
);
MODULE_DESCRIPTION
(
"Bluetooth Core ver "
VERSION
);
MODULE_DESCRIPTION
(
"Bluetooth Core ver "
VERSION
);
MODULE_VERSION
(
VERSION
);
MODULE_LICENSE
(
"GPL"
);
MODULE_LICENSE
(
"GPL"
);
MODULE_ALIAS_NETPROTO
(
PF_BLUETOOTH
);
MODULE_ALIAS_NETPROTO
(
PF_BLUETOOTH
);
net/bluetooth/bnep/core.c
View file @
f84f9653
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
Clment Moreau <clement.moreau@inventel.fr>
Clment Moreau <clement.moreau@inventel.fr>
David Libault <david.libault@inventel.fr>
David Libault <david.libault@inventel.fr>
Copyright (C) 2002 Maxim Krasnyansk
i
y <maxk@qualcomm.com>
Copyright (C) 2002 Maxim Krasnyansky <maxk@qualcomm.com>
This program is free software; you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
it under the terms of the GNU General Public License version 2 as
...
@@ -672,7 +672,7 @@ int bnep_get_conninfo(struct bnep_conninfo *ci)
...
@@ -672,7 +672,7 @@ int bnep_get_conninfo(struct bnep_conninfo *ci)
return
err
;
return
err
;
}
}
static
int
__init
bnep_init_module
(
void
)
static
int
__init
bnep_init
(
void
)
{
{
char
flt
[
50
]
=
""
;
char
flt
[
50
]
=
""
;
...
@@ -694,15 +694,16 @@ static int __init bnep_init_module(void)
...
@@ -694,15 +694,16 @@ static int __init bnep_init_module(void)
return
0
;
return
0
;
}
}
static
void
__exit
bnep_
cleanup_module
(
void
)
static
void
__exit
bnep_
exit
(
void
)
{
{
bnep_sock_cleanup
();
bnep_sock_cleanup
();
}
}
module_init
(
bnep_init
_module
);
module_init
(
bnep_init
);
module_exit
(
bnep_
cleanup_module
);
module_exit
(
bnep_
exit
);
MODULE_AUTHOR
(
"David Libault <david.libault@inventel.fr>, Maxim Krasnyansky <maxk@qualcomm.com>"
);
MODULE_DESCRIPTION
(
"Bluetooth BNEP ver "
VERSION
);
MODULE_DESCRIPTION
(
"Bluetooth BNEP ver "
VERSION
);
MODULE_
AUTHOR
(
"David Libault <david.libault@inventel.fr>, Maxim Krasnyanskiy <maxk@qualcomm.com>"
);
MODULE_
VERSION
(
VERSION
);
MODULE_LICENSE
(
"GPL"
);
MODULE_LICENSE
(
"GPL"
);
MODULE_ALIAS
(
"bt-proto-4"
);
MODULE_ALIAS
(
"bt-proto-4"
);
net/bluetooth/bnep/netdev.c
View file @
f84f9653
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
Clment Moreau <clement.moreau@inventel.fr>
Clment Moreau <clement.moreau@inventel.fr>
David Libault <david.libault@inventel.fr>
David Libault <david.libault@inventel.fr>
Copyright (C) 2002 Maxim Krasnyansk
i
y <maxk@qualcomm.com>
Copyright (C) 2002 Maxim Krasnyansky <maxk@qualcomm.com>
This program is free software; you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
it under the terms of the GNU General Public License version 2 as
...
...
net/bluetooth/bnep/sock.c
View file @
f84f9653
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
Written 2001-2002 by
Written 2001-2002 by
David Libault <david.libault@inventel.fr>
David Libault <david.libault@inventel.fr>
Copyright (C) 2002 Maxim Krasnyansk
i
y <maxk@qualcomm.com>
Copyright (C) 2002 Maxim Krasnyansky <maxk@qualcomm.com>
This program is free software; you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
it under the terms of the GNU General Public License version 2 as
...
...
net/bluetooth/cmtp/core.c
View file @
f84f9653
...
@@ -482,7 +482,7 @@ int cmtp_get_conninfo(struct cmtp_conninfo *ci)
...
@@ -482,7 +482,7 @@ int cmtp_get_conninfo(struct cmtp_conninfo *ci)
}
}
int
__init
init_cmtp
(
void
)
static
int
__init
cmtp_init
(
void
)
{
{
l2cap_load
();
l2cap_load
();
...
@@ -493,15 +493,16 @@ int __init init_cmtp(void)
...
@@ -493,15 +493,16 @@ int __init init_cmtp(void)
return
0
;
return
0
;
}
}
void
__exit
exit_cmtp
(
void
)
static
void
__exit
cmtp_exit
(
void
)
{
{
cmtp_cleanup_sockets
();
cmtp_cleanup_sockets
();
}
}
module_init
(
init_cmtp
);
module_init
(
cmtp_init
);
module_exit
(
exit_cmtp
);
module_exit
(
cmtp_exit
);
MODULE_AUTHOR
(
"Marcel Holtmann <marcel@holtmann.org>"
);
MODULE_AUTHOR
(
"Marcel Holtmann <marcel@holtmann.org>"
);
MODULE_DESCRIPTION
(
"Bluetooth CMTP ver "
VERSION
);
MODULE_DESCRIPTION
(
"Bluetooth CMTP ver "
VERSION
);
MODULE_VERSION
(
VERSION
);
MODULE_LICENSE
(
"GPL"
);
MODULE_LICENSE
(
"GPL"
);
MODULE_ALIAS
(
"bt-proto-5"
);
MODULE_ALIAS
(
"bt-proto-5"
);
net/bluetooth/hci_event.c
View file @
f84f9653
...
@@ -222,7 +222,7 @@ static void hci_cc_host_ctl(struct hci_dev *hdev, __u16 ocf, struct sk_buff *skb
...
@@ -222,7 +222,7 @@ static void hci_cc_host_ctl(struct hci_dev *hdev, __u16 ocf, struct sk_buff *skb
vs
=
(
struct
hci_rp_read_voice_setting
*
)
skb
->
data
;
vs
=
(
struct
hci_rp_read_voice_setting
*
)
skb
->
data
;
if
(
vs
->
status
)
{
if
(
vs
->
status
)
{
BT_DBG
(
"%s READ_VOICE_SETTING failed %d"
,
hdev
->
name
,
v
c
->
status
);
BT_DBG
(
"%s READ_VOICE_SETTING failed %d"
,
hdev
->
name
,
v
s
->
status
);
break
;
break
;
}
}
...
@@ -359,7 +359,7 @@ static inline void hci_cs_create_conn(struct hci_dev *hdev, __u8 status)
...
@@ -359,7 +359,7 @@ static inline void hci_cs_create_conn(struct hci_dev *hdev, __u8 status)
conn
=
hci_conn_hash_lookup_ba
(
hdev
,
ACL_LINK
,
&
cp
->
bdaddr
);
conn
=
hci_conn_hash_lookup_ba
(
hdev
,
ACL_LINK
,
&
cp
->
bdaddr
);
BT_DBG
(
"%s status 0x%x bdaddr %s conn %p"
,
hdev
->
name
,
BT_DBG
(
"%s status 0x%x bdaddr %s conn %p"
,
hdev
->
name
,
status
,
batostr
(
&
c
c
->
bdaddr
),
conn
);
status
,
batostr
(
&
c
p
->
bdaddr
),
conn
);
if
(
status
)
{
if
(
status
)
{
if
(
conn
)
{
if
(
conn
)
{
...
...
net/bluetooth/l2cap.c
View file @
f84f9653
...
@@ -535,7 +535,7 @@ static int l2cap_sock_connect(struct socket *sock, struct sockaddr *addr, int al
...
@@ -535,7 +535,7 @@ static int l2cap_sock_connect(struct socket *sock, struct sockaddr *addr, int al
return
err
;
return
err
;
}
}
int
l2cap_sock_listen
(
struct
socket
*
sock
,
int
backlog
)
static
int
l2cap_sock_listen
(
struct
socket
*
sock
,
int
backlog
)
{
{
struct
sock
*
sk
=
sock
->
sk
;
struct
sock
*
sk
=
sock
->
sk
;
int
err
=
0
;
int
err
=
0
;
...
@@ -563,7 +563,7 @@ int l2cap_sock_listen(struct socket *sock, int backlog)
...
@@ -563,7 +563,7 @@ int l2cap_sock_listen(struct socket *sock, int backlog)
return
err
;
return
err
;
}
}
int
l2cap_sock_accept
(
struct
socket
*
sock
,
struct
socket
*
newsock
,
int
flags
)
static
int
l2cap_sock_accept
(
struct
socket
*
sock
,
struct
socket
*
newsock
,
int
flags
)
{
{
DECLARE_WAITQUEUE
(
wait
,
current
);
DECLARE_WAITQUEUE
(
wait
,
current
);
struct
sock
*
sk
=
sock
->
sk
,
*
nsk
;
struct
sock
*
sk
=
sock
->
sk
,
*
nsk
;
...
@@ -1051,7 +1051,7 @@ static void l2cap_chan_ready(struct sock *sk)
...
@@ -1051,7 +1051,7 @@ static void l2cap_chan_ready(struct sock *sk)
}
}
/* Copy frame to all raw sockets on that connection */
/* Copy frame to all raw sockets on that connection */
void
l2cap_raw_recv
(
struct
l2cap_conn
*
conn
,
struct
sk_buff
*
skb
)
static
void
l2cap_raw_recv
(
struct
l2cap_conn
*
conn
,
struct
sk_buff
*
skb
)
{
{
struct
l2cap_chan_list
*
l
=
&
conn
->
chan_list
;
struct
l2cap_chan_list
*
l
=
&
conn
->
chan_list
;
struct
sk_buff
*
nskb
;
struct
sk_buff
*
nskb
;
...
@@ -2153,7 +2153,7 @@ static struct hci_proto l2cap_hci_proto = {
...
@@ -2153,7 +2153,7 @@ static struct hci_proto l2cap_hci_proto = {
.
recv_acldata
=
l2cap_recv_acldata
.
recv_acldata
=
l2cap_recv_acldata
};
};
int
__init
l2cap_init
(
void
)
static
int
__init
l2cap_init
(
void
)
{
{
int
err
;
int
err
;
...
@@ -2175,7 +2175,7 @@ int __init l2cap_init(void)
...
@@ -2175,7 +2175,7 @@ int __init l2cap_init(void)
return
0
;
return
0
;
}
}
void
__exit
l2cap_cleanup
(
void
)
static
void
__exit
l2cap_exit
(
void
)
{
{
l2cap_proc_cleanup
();
l2cap_proc_cleanup
();
...
@@ -2197,9 +2197,10 @@ void l2cap_load(void)
...
@@ -2197,9 +2197,10 @@ void l2cap_load(void)
EXPORT_SYMBOL
(
l2cap_load
);
EXPORT_SYMBOL
(
l2cap_load
);
module_init
(
l2cap_init
);
module_init
(
l2cap_init
);
module_exit
(
l2cap_
cleanup
);
module_exit
(
l2cap_
exit
);
MODULE_AUTHOR
(
"Maxim Krasnyansky <maxk@qualcomm.com>"
);
MODULE_AUTHOR
(
"Maxim Krasnyansky <maxk@qualcomm.com>"
);
MODULE_DESCRIPTION
(
"Bluetooth L2CAP ver "
VERSION
);
MODULE_DESCRIPTION
(
"Bluetooth L2CAP ver "
VERSION
);
MODULE_VERSION
(
VERSION
);
MODULE_LICENSE
(
"GPL"
);
MODULE_LICENSE
(
"GPL"
);
MODULE_ALIAS
(
"bt-proto-0"
);
MODULE_ALIAS
(
"bt-proto-0"
);
net/bluetooth/rfcomm/core.c
View file @
f84f9653
...
@@ -1948,7 +1948,7 @@ static void __exit rfcomm_proc_cleanup(void)
...
@@ -1948,7 +1948,7 @@ static void __exit rfcomm_proc_cleanup(void)
#endif
/* CONFIG_PROC_FS */
#endif
/* CONFIG_PROC_FS */
/* ---- Initialization ---- */
/* ---- Initialization ---- */
int
__init
rfcomm_init
(
void
)
static
int
__init
rfcomm_init
(
void
)
{
{
l2cap_load
();
l2cap_load
();
...
@@ -1967,7 +1967,7 @@ int __init rfcomm_init(void)
...
@@ -1967,7 +1967,7 @@ int __init rfcomm_init(void)
return
0
;
return
0
;
}
}
void
__exit
rfcomm_cleanup
(
void
)
static
void
__exit
rfcomm_exit
(
void
)
{
{
/* Terminate working thread.
/* Terminate working thread.
* ie. Set terminate flag and wake it up */
* ie. Set terminate flag and wake it up */
...
@@ -1988,9 +1988,10 @@ void __exit rfcomm_cleanup(void)
...
@@ -1988,9 +1988,10 @@ void __exit rfcomm_cleanup(void)
}
}
module_init
(
rfcomm_init
);
module_init
(
rfcomm_init
);
module_exit
(
rfcomm_
cleanup
);
module_exit
(
rfcomm_
exit
);
MODULE_AUTHOR
(
"Maxim Krasnyansky <maxk@qualcomm.com>, Marcel Holtmann <marcel@holtmann.org>"
);
MODULE_AUTHOR
(
"Maxim Krasnyansky <maxk@qualcomm.com>, Marcel Holtmann <marcel@holtmann.org>"
);
MODULE_DESCRIPTION
(
"Bluetooth RFCOMM ver "
VERSION
);
MODULE_DESCRIPTION
(
"Bluetooth RFCOMM ver "
VERSION
);
MODULE_VERSION
(
VERSION
);
MODULE_LICENSE
(
"GPL"
);
MODULE_LICENSE
(
"GPL"
);
MODULE_ALIAS
(
"bt-proto-3"
);
MODULE_ALIAS
(
"bt-proto-3"
);
net/bluetooth/sco.c
View file @
f84f9653
...
@@ -194,7 +194,7 @@ static inline int sco_chan_add(struct sco_conn *conn, struct sock *sk, struct so
...
@@ -194,7 +194,7 @@ static inline int sco_chan_add(struct sco_conn *conn, struct sock *sk, struct so
return
err
;
return
err
;
}
}
int
sco_connect
(
struct
sock
*
sk
)
static
int
sco_connect
(
struct
sock
*
sk
)
{
{
bdaddr_t
*
src
=
&
bt_sk
(
sk
)
->
src
;
bdaddr_t
*
src
=
&
bt_sk
(
sk
)
->
src
;
bdaddr_t
*
dst
=
&
bt_sk
(
sk
)
->
dst
;
bdaddr_t
*
dst
=
&
bt_sk
(
sk
)
->
dst
;
...
@@ -533,7 +533,7 @@ static int sco_sock_connect(struct socket *sock, struct sockaddr *addr, int alen
...
@@ -533,7 +533,7 @@ static int sco_sock_connect(struct socket *sock, struct sockaddr *addr, int alen
return
err
;
return
err
;
}
}
int
sco_sock_listen
(
struct
socket
*
sock
,
int
backlog
)
static
int
sco_sock_listen
(
struct
socket
*
sock
,
int
backlog
)
{
{
struct
sock
*
sk
=
sock
->
sk
;
struct
sock
*
sk
=
sock
->
sk
;
int
err
=
0
;
int
err
=
0
;
...
@@ -556,7 +556,7 @@ int sco_sock_listen(struct socket *sock, int backlog)
...
@@ -556,7 +556,7 @@ int sco_sock_listen(struct socket *sock, int backlog)
return
err
;
return
err
;
}
}
int
sco_sock_accept
(
struct
socket
*
sock
,
struct
socket
*
newsock
,
int
flags
)
static
int
sco_sock_accept
(
struct
socket
*
sock
,
struct
socket
*
newsock
,
int
flags
)
{
{
DECLARE_WAITQUEUE
(
wait
,
current
);
DECLARE_WAITQUEUE
(
wait
,
current
);
struct
sock
*
sk
=
sock
->
sk
,
*
ch
;
struct
sock
*
sk
=
sock
->
sk
,
*
ch
;
...
@@ -655,7 +655,7 @@ static int sco_sock_sendmsg(struct kiocb *iocb, struct socket *sock,
...
@@ -655,7 +655,7 @@ static int sco_sock_sendmsg(struct kiocb *iocb, struct socket *sock,
return
err
;
return
err
;
}
}
int
sco_sock_setsockopt
(
struct
socket
*
sock
,
int
level
,
int
optname
,
char
*
optval
,
int
optlen
)
static
int
sco_sock_setsockopt
(
struct
socket
*
sock
,
int
level
,
int
optname
,
char
*
optval
,
int
optlen
)
{
{
struct
sock
*
sk
=
sock
->
sk
;
struct
sock
*
sk
=
sock
->
sk
;
int
err
=
0
;
int
err
=
0
;
...
@@ -674,7 +674,7 @@ int sco_sock_setsockopt(struct socket *sock, int level, int optname, char *optva
...
@@ -674,7 +674,7 @@ int sco_sock_setsockopt(struct socket *sock, int level, int optname, char *optva
return
err
;
return
err
;
}
}
int
sco_sock_getsockopt
(
struct
socket
*
sock
,
int
level
,
int
optname
,
char
*
optval
,
int
*
optlen
)
static
int
sco_sock_getsockopt
(
struct
socket
*
sock
,
int
level
,
int
optname
,
char
*
optval
,
int
*
optlen
)
{
{
struct
sock
*
sk
=
sock
->
sk
;
struct
sock
*
sk
=
sock
->
sk
;
struct
sco_options
opts
;
struct
sco_options
opts
;
...
@@ -835,7 +835,7 @@ static void sco_conn_ready(struct sco_conn *conn)
...
@@ -835,7 +835,7 @@ static void sco_conn_ready(struct sco_conn *conn)
}
}
/* ----- SCO interface with lower layer (HCI) ----- */
/* ----- SCO interface with lower layer (HCI) ----- */
int
sco_connect_ind
(
struct
hci_dev
*
hdev
,
bdaddr_t
*
bdaddr
,
__u8
type
)
static
int
sco_connect_ind
(
struct
hci_dev
*
hdev
,
bdaddr_t
*
bdaddr
,
__u8
type
)
{
{
BT_DBG
(
"hdev %s, bdaddr %s"
,
hdev
->
name
,
batostr
(
bdaddr
));
BT_DBG
(
"hdev %s, bdaddr %s"
,
hdev
->
name
,
batostr
(
bdaddr
));
...
@@ -843,7 +843,7 @@ int sco_connect_ind(struct hci_dev *hdev, bdaddr_t *bdaddr, __u8 type)
...
@@ -843,7 +843,7 @@ int sco_connect_ind(struct hci_dev *hdev, bdaddr_t *bdaddr, __u8 type)
return
HCI_LM_ACCEPT
;
return
HCI_LM_ACCEPT
;
}
}
int
sco_connect_cfm
(
struct
hci_conn
*
hcon
,
__u8
status
)
static
int
sco_connect_cfm
(
struct
hci_conn
*
hcon
,
__u8
status
)
{
{
BT_DBG
(
"hcon %p bdaddr %s status %d"
,
hcon
,
batostr
(
&
hcon
->
dst
),
status
);
BT_DBG
(
"hcon %p bdaddr %s status %d"
,
hcon
,
batostr
(
&
hcon
->
dst
),
status
);
...
@@ -862,7 +862,7 @@ int sco_connect_cfm(struct hci_conn *hcon, __u8 status)
...
@@ -862,7 +862,7 @@ int sco_connect_cfm(struct hci_conn *hcon, __u8 status)
return
0
;
return
0
;
}
}
int
sco_disconn_ind
(
struct
hci_conn
*
hcon
,
__u8
reason
)
static
int
sco_disconn_ind
(
struct
hci_conn
*
hcon
,
__u8
reason
)
{
{
BT_DBG
(
"hcon %p reason %d"
,
hcon
,
reason
);
BT_DBG
(
"hcon %p reason %d"
,
hcon
,
reason
);
...
@@ -873,7 +873,7 @@ int sco_disconn_ind(struct hci_conn *hcon, __u8 reason)
...
@@ -873,7 +873,7 @@ int sco_disconn_ind(struct hci_conn *hcon, __u8 reason)
return
0
;
return
0
;
}
}
int
sco_recv_scodata
(
struct
hci_conn
*
hcon
,
struct
sk_buff
*
skb
)
static
int
sco_recv_scodata
(
struct
hci_conn
*
hcon
,
struct
sk_buff
*
skb
)
{
{
struct
sco_conn
*
conn
=
hcon
->
sco_data
;
struct
sco_conn
*
conn
=
hcon
->
sco_data
;
...
@@ -1013,7 +1013,7 @@ static struct hci_proto sco_hci_proto = {
...
@@ -1013,7 +1013,7 @@ static struct hci_proto sco_hci_proto = {
.
recv_scodata
=
sco_recv_scodata
.
recv_scodata
=
sco_recv_scodata
};
};
int
__init
sco_init
(
void
)
static
int
__init
sco_init
(
void
)
{
{
int
err
;
int
err
;
...
@@ -1035,7 +1035,7 @@ int __init sco_init(void)
...
@@ -1035,7 +1035,7 @@ int __init sco_init(void)
return
0
;
return
0
;
}
}
void
__exit
sco_cleanup
(
void
)
static
void
__exit
sco_exit
(
void
)
{
{
int
err
;
int
err
;
...
@@ -1050,9 +1050,10 @@ void __exit sco_cleanup(void)
...
@@ -1050,9 +1050,10 @@ void __exit sco_cleanup(void)
}
}
module_init
(
sco_init
);
module_init
(
sco_init
);
module_exit
(
sco_
cleanup
);
module_exit
(
sco_
exit
);
MODULE_AUTHOR
(
"Maxim Krasnyansky <maxk@qualcomm.com>"
);
MODULE_AUTHOR
(
"Maxim Krasnyansky <maxk@qualcomm.com>"
);
MODULE_DESCRIPTION
(
"Bluetooth SCO ver "
VERSION
);
MODULE_DESCRIPTION
(
"Bluetooth SCO ver "
VERSION
);
MODULE_VERSION
(
VERSION
);
MODULE_LICENSE
(
"GPL"
);
MODULE_LICENSE
(
"GPL"
);
MODULE_ALIAS
(
"bt-proto-2"
);
MODULE_ALIAS
(
"bt-proto-2"
);
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