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
d7105887
Commit
d7105887
authored
Dec 16, 2002
by
Maksim Krasnyanskiy
Browse files
Options
Browse Files
Download
Plain Diff
Merge qualcomm.com:/usr/src/bt-2.5 into qualcomm.com:/usr/src/linux-2.5
parents
735fe7c5
abdff039
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
24 deletions
+23
-24
drivers/bluetooth/Kconfig
drivers/bluetooth/Kconfig
+6
-6
drivers/bluetooth/btuart_cs.c
drivers/bluetooth/btuart_cs.c
+0
-2
net/bluetooth/rfcomm/core.c
net/bluetooth/rfcomm/core.c
+13
-12
net/bluetooth/rfcomm/sock.c
net/bluetooth/rfcomm/sock.c
+3
-3
net/bluetooth/rfcomm/tty.c
net/bluetooth/rfcomm/tty.c
+1
-1
No files found.
drivers/bluetooth/Kconfig
View file @
d7105887
...
...
@@ -100,7 +100,7 @@ config BT_HCIBLUECARD
help
Bluetooth HCI BlueCard (PC Card) driver.
This driver provides support for Bluetooth PCMCIA devices with
Anycom BlueCard interface:
Anycom BlueCard interface:
Anycom Bluetooth PC Card
Anycom Bluetooth CF Card
...
...
@@ -114,11 +114,11 @@ config BT_HCIBTUART
Bluetooth HCI UART (PC Card) driver.
This driver provides support for Bluetooth PCMCIA devices with
an UART interface:
Xircom CreditCard Bluetooth Adapter
Xircom RealPort2 Bluetooth Adapter
Sphinx PICO Card
H-Soft blue+Card
Cyber-blue Compact Flash Card
Xircom CreditCard Bluetooth Adapter
Xircom RealPort2 Bluetooth Adapter
Sphinx PICO Card
H-Soft blue+Card
Cyber-blue Compact Flash Card
Say Y here to compile support for HCI UART devices into the
kernel or say M to compile it as module (btuart_cs.o).
...
...
drivers/bluetooth/btuart_cs.c
View file @
d7105887
...
...
@@ -903,5 +903,3 @@ void __exit exit_btuart_cs(void)
module_init
(
init_btuart_cs
);
module_exit
(
exit_btuart_cs
);
EXPORT_NO_SYMBOLS
;
net/bluetooth/rfcomm/core.c
View file @
d7105887
...
...
@@ -263,7 +263,7 @@ static void rfcomm_dlc_unlink(struct rfcomm_dlc *d)
rfcomm_session_put
(
s
);
}
static
struct
rfcomm_dlc
*
rfcomm_dlc_get
(
struct
rfcomm_session
*
s
,
int
dlci
)
static
struct
rfcomm_dlc
*
rfcomm_dlc_get
(
struct
rfcomm_session
*
s
,
u8
dlci
)
{
struct
rfcomm_dlc
*
d
;
struct
list_head
*
p
;
...
...
@@ -279,7 +279,8 @@ static struct rfcomm_dlc *rfcomm_dlc_get(struct rfcomm_session *s, int dlci)
static
int
__rfcomm_dlc_open
(
struct
rfcomm_dlc
*
d
,
bdaddr_t
*
src
,
bdaddr_t
*
dst
,
u8
channel
)
{
struct
rfcomm_session
*
s
;
int
err
=
0
,
dlci
=
__dlci
(
0
,
channel
);
u8
dlci
=
__dlci
(
0
,
channel
);
int
err
=
0
;
BT_DBG
(
"dlc %p state %ld %s %s channel %d dlci %d"
,
d
,
d
->
state
,
batostr
(
src
),
batostr
(
dst
),
channel
,
dlci
);
...
...
@@ -923,7 +924,7 @@ static void rfcomm_make_uih(struct sk_buff *skb, u8 addr)
}
/* ---- RFCOMM frame reception ---- */
static
int
rfcomm_recv_ua
(
struct
rfcomm_session
*
s
,
int
dlci
)
static
int
rfcomm_recv_ua
(
struct
rfcomm_session
*
s
,
u8
dlci
)
{
BT_DBG
(
"session %p state %ld dlci %d"
,
s
,
s
->
state
,
dlci
);
...
...
@@ -964,7 +965,7 @@ static int rfcomm_recv_ua(struct rfcomm_session *s, int dlci)
return
0
;
}
static
int
rfcomm_recv_dm
(
struct
rfcomm_session
*
s
,
int
dlci
)
static
int
rfcomm_recv_dm
(
struct
rfcomm_session
*
s
,
u8
dlci
)
{
int
err
=
0
;
...
...
@@ -994,7 +995,7 @@ static int rfcomm_recv_dm(struct rfcomm_session *s, int dlci)
return
0
;
}
static
int
rfcomm_recv_disc
(
struct
rfcomm_session
*
s
,
int
dlci
)
static
int
rfcomm_recv_disc
(
struct
rfcomm_session
*
s
,
u8
dlci
)
{
int
err
=
0
;
...
...
@@ -1030,10 +1031,10 @@ static int rfcomm_recv_disc(struct rfcomm_session *s, int dlci)
return
0
;
}
static
int
rfcomm_recv_sabm
(
struct
rfcomm_session
*
s
,
int
dlci
)
static
int
rfcomm_recv_sabm
(
struct
rfcomm_session
*
s
,
u8
dlci
)
{
struct
rfcomm_dlc
*
d
;
int
channel
;
u8
channel
;
BT_DBG
(
"session %p state %ld dlci %d"
,
s
,
s
->
state
,
dlci
);
...
...
@@ -1116,7 +1117,7 @@ static int rfcomm_recv_pn(struct rfcomm_session *s, int cr, struct sk_buff *skb)
{
struct
rfcomm_pn
*
pn
=
(
void
*
)
skb
->
data
;
struct
rfcomm_dlc
*
d
;
int
dlci
=
pn
->
dlci
;
u8
dlci
=
pn
->
dlci
;
BT_DBG
(
"session %p state %ld dlci %d"
,
s
,
s
->
state
,
dlci
);
...
...
@@ -1141,7 +1142,7 @@ static int rfcomm_recv_pn(struct rfcomm_session *s, int cr, struct sk_buff *skb)
}
}
}
else
{
int
channel
=
__srv_channel
(
dlci
);
u8
channel
=
__srv_channel
(
dlci
);
if
(
!
cr
)
return
0
;
...
...
@@ -1167,7 +1168,7 @@ static int rfcomm_recv_pn(struct rfcomm_session *s, int cr, struct sk_buff *skb)
static
int
rfcomm_recv_rpn
(
struct
rfcomm_session
*
s
,
int
cr
,
int
len
,
struct
sk_buff
*
skb
)
{
struct
rfcomm_rpn
*
rpn
=
(
void
*
)
skb
->
data
;
int
dlci
=
__get_dlci
(
rpn
->
dlci
);
u8
dlci
=
__get_dlci
(
rpn
->
dlci
);
u8
bit_rate
=
0
;
u8
data_bits
=
0
;
...
...
@@ -1257,7 +1258,7 @@ static int rfcomm_recv_msc(struct rfcomm_session *s, int cr, struct sk_buff *skb
{
struct
rfcomm_msc
*
msc
=
(
void
*
)
skb
->
data
;
struct
rfcomm_dlc
*
d
;
int
dlci
=
__get_dlci
(
msc
->
dlci
);
u8
dlci
=
__get_dlci
(
msc
->
dlci
);
BT_DBG
(
"dlci %d cr %d v24 0x%x"
,
dlci
,
cr
,
msc
->
v24_sig
);
...
...
@@ -1323,7 +1324,7 @@ static int rfcomm_recv_mcc(struct rfcomm_session *s, struct sk_buff *skb)
return
0
;
}
static
int
rfcomm_recv_data
(
struct
rfcomm_session
*
s
,
int
dlci
,
int
pf
,
struct
sk_buff
*
skb
)
static
int
rfcomm_recv_data
(
struct
rfcomm_session
*
s
,
u8
dlci
,
int
pf
,
struct
sk_buff
*
skb
)
{
struct
rfcomm_dlc
*
d
;
...
...
net/bluetooth/rfcomm/sock.c
View file @
d7105887
...
...
@@ -112,7 +112,7 @@ static void rfcomm_sk_state_change(struct rfcomm_dlc *d, int err)
}
/* ---- Socket functions ---- */
static
struct
sock
*
__rfcomm_get_sock_by_addr
(
int
channel
,
bdaddr_t
*
src
)
static
struct
sock
*
__rfcomm_get_sock_by_addr
(
u8
channel
,
bdaddr_t
*
src
)
{
struct
sock
*
sk
;
...
...
@@ -128,7 +128,7 @@ static struct sock *__rfcomm_get_sock_by_addr(int channel, bdaddr_t *src)
/* Find socket with channel and source bdaddr.
* Returns closest match.
*/
static
struct
sock
*
__rfcomm_get_sock_by_channel
(
int
state
,
__u16
channel
,
bdaddr_t
*
src
)
static
struct
sock
*
__rfcomm_get_sock_by_channel
(
int
state
,
u8
channel
,
bdaddr_t
*
src
)
{
struct
sock
*
sk
,
*
sk1
=
NULL
;
...
...
@@ -151,7 +151,7 @@ static struct sock *__rfcomm_get_sock_by_channel(int state, __u16 channel, bdadd
/* Find socket with given address (channel, src).
* Returns locked socket */
static
inline
struct
sock
*
rfcomm_get_sock_by_channel
(
int
state
,
__u16
channel
,
bdaddr_t
*
src
)
static
inline
struct
sock
*
rfcomm_get_sock_by_channel
(
int
state
,
u8
channel
,
bdaddr_t
*
src
)
{
struct
sock
*
s
;
read_lock
(
&
rfcomm_sk_list
.
lock
);
...
...
net/bluetooth/rfcomm/tty.c
View file @
d7105887
...
...
@@ -854,7 +854,7 @@ static struct tty_driver rfcomm_tty_driver = {
#ifdef CONFIG_DEVFS_FS
.
name
=
"bluetooth/rfcomm/%d"
,
#else
.
name
=
"rfcomm
%d
"
,
.
name
=
"rfcomm"
,
#endif
.
major
=
RFCOMM_TTY_MAJOR
,
.
minor_start
=
RFCOMM_TTY_MINOR
,
...
...
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