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
15c38c6e
Commit
15c38c6e
authored
Feb 13, 2006
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
99e382af
92258063
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
20 deletions
+22
-20
drivers/bluetooth/bt3c_cs.c
drivers/bluetooth/bt3c_cs.c
+4
-13
include/net/bluetooth/rfcomm.h
include/net/bluetooth/rfcomm.h
+1
-1
net/bluetooth/hci_sock.c
net/bluetooth/hci_sock.c
+8
-2
net/bluetooth/rfcomm/core.c
net/bluetooth/rfcomm/core.c
+9
-4
No files found.
drivers/bluetooth/bt3c_cs.c
View file @
15c38c6e
...
...
@@ -474,18 +474,6 @@ static int bt3c_hci_ioctl(struct hci_dev *hdev, unsigned int cmd, unsigned long
/* ======================== Card services HCI interaction ======================== */
static
struct
device
*
bt3c_device
(
void
)
{
static
struct
device
dev
=
{
.
bus_id
=
"pcmcia"
,
};
kobject_set_name
(
&
dev
.
kobj
,
"bt3c"
);
kobject_init
(
&
dev
.
kobj
);
return
&
dev
;
}
static
int
bt3c_load_firmware
(
bt3c_info_t
*
info
,
unsigned
char
*
firmware
,
int
count
)
{
char
*
ptr
=
(
char
*
)
firmware
;
...
...
@@ -574,6 +562,7 @@ static int bt3c_open(bt3c_info_t *info)
{
const
struct
firmware
*
firmware
;
struct
hci_dev
*
hdev
;
client_handle_t
handle
;
int
err
;
spin_lock_init
(
&
(
info
->
lock
));
...
...
@@ -605,8 +594,10 @@ static int bt3c_open(bt3c_info_t *info)
hdev
->
owner
=
THIS_MODULE
;
handle
=
info
->
link
.
handle
;
/* Load firmware */
err
=
request_firmware
(
&
firmware
,
"BT3CPCC.bin"
,
bt3c_device
(
));
err
=
request_firmware
(
&
firmware
,
"BT3CPCC.bin"
,
&
handle_to_dev
(
handle
));
if
(
err
<
0
)
{
BT_ERR
(
"Firmware request failed"
);
goto
error
;
...
...
include/net/bluetooth/rfcomm.h
View file @
15c38c6e
...
...
@@ -33,7 +33,7 @@
#define RFCOMM_DEFAULT_MTU 127
#define RFCOMM_DEFAULT_CREDITS 7
#define RFCOMM_MAX_L2CAP_MTU 10
24
#define RFCOMM_MAX_L2CAP_MTU 10
13
#define RFCOMM_MAX_CREDITS 40
#define RFCOMM_SKB_HEAD_RESERVE 8
...
...
net/bluetooth/hci_sock.c
View file @
15c38c6e
...
...
@@ -143,13 +143,15 @@ void hci_send_to_sock(struct hci_dev *hdev, struct sk_buff *skb)
static
int
hci_sock_release
(
struct
socket
*
sock
)
{
struct
sock
*
sk
=
sock
->
sk
;
struct
hci_dev
*
hdev
=
hci_pi
(
sk
)
->
hdev
;
struct
hci_dev
*
hdev
;
BT_DBG
(
"sock %p sk %p"
,
sock
,
sk
);
if
(
!
sk
)
return
0
;
hdev
=
hci_pi
(
sk
)
->
hdev
;
bt_sock_unlink
(
&
hci_sk_list
,
sk
);
if
(
hdev
)
{
...
...
@@ -311,14 +313,18 @@ static int hci_sock_getname(struct socket *sock, struct sockaddr *addr, int *add
{
struct
sockaddr_hci
*
haddr
=
(
struct
sockaddr_hci
*
)
addr
;
struct
sock
*
sk
=
sock
->
sk
;
struct
hci_dev
*
hdev
=
hci_pi
(
sk
)
->
hdev
;
BT_DBG
(
"sock %p sk %p"
,
sock
,
sk
);
if
(
!
hdev
)
return
-
EBADFD
;
lock_sock
(
sk
);
*
addr_len
=
sizeof
(
*
haddr
);
haddr
->
hci_family
=
AF_BLUETOOTH
;
haddr
->
hci_dev
=
h
ci_pi
(
sk
)
->
h
dev
->
id
;
haddr
->
hci_dev
=
hdev
->
id
;
release_sock
(
sk
);
return
0
;
...
...
net/bluetooth/rfcomm/core.c
View file @
15c38c6e
...
...
@@ -46,13 +46,15 @@
#include <net/bluetooth/l2cap.h>
#include <net/bluetooth/rfcomm.h>
#define VERSION "1.6"
#ifndef CONFIG_BT_RFCOMM_DEBUG
#undef BT_DBG
#define BT_DBG(D...)
#endif
#define VERSION "1.7"
static
unsigned
int
l2cap_mtu
=
RFCOMM_MAX_L2CAP_MTU
;
static
struct
task_struct
*
rfcomm_thread
;
static
DECLARE_MUTEX
(
rfcomm_sem
);
...
...
@@ -623,7 +625,7 @@ static struct rfcomm_session *rfcomm_session_create(bdaddr_t *src, bdaddr_t *dst
/* Set L2CAP options */
sk
=
sock
->
sk
;
lock_sock
(
sk
);
l2cap_pi
(
sk
)
->
imtu
=
RFCOMM_MAX_L2CAP_MTU
;
l2cap_pi
(
sk
)
->
imtu
=
l2cap_mtu
;
release_sock
(
sk
);
s
=
rfcomm_session_add
(
sock
,
BT_BOUND
);
...
...
@@ -1868,7 +1870,7 @@ static int rfcomm_add_listener(bdaddr_t *ba)
/* Set L2CAP options */
sk
=
sock
->
sk
;
lock_sock
(
sk
);
l2cap_pi
(
sk
)
->
imtu
=
RFCOMM_MAX_L2CAP_MTU
;
l2cap_pi
(
sk
)
->
imtu
=
l2cap_mtu
;
release_sock
(
sk
);
/* Start listening on the socket */
...
...
@@ -2070,6 +2072,9 @@ static void __exit rfcomm_exit(void)
module_init
(
rfcomm_init
);
module_exit
(
rfcomm_exit
);
module_param
(
l2cap_mtu
,
uint
,
0644
);
MODULE_PARM_DESC
(
l2cap_mtu
,
"Default MTU for the L2CAP connection"
);
MODULE_AUTHOR
(
"Maxim Krasnyansky <maxk@qualcomm.com>, Marcel Holtmann <marcel@holtmann.org>"
);
MODULE_DESCRIPTION
(
"Bluetooth RFCOMM ver "
VERSION
);
MODULE_VERSION
(
VERSION
);
...
...
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