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
2508d59b
Commit
2508d59b
authored
Sep 15, 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
888e6b9c
3fdd2088
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
11 deletions
+12
-11
drivers/bluetooth/hci_usb.c
drivers/bluetooth/hci_usb.c
+1
-1
net/bluetooth/bnep/core.c
net/bluetooth/bnep/core.c
+1
-1
net/bluetooth/l2cap.c
net/bluetooth/l2cap.c
+10
-9
No files found.
drivers/bluetooth/hci_usb.c
View file @
2508d59b
...
@@ -96,7 +96,7 @@ static struct usb_device_id blacklist_ids[] = {
...
@@ -96,7 +96,7 @@ static struct usb_device_id blacklist_ids[] = {
{
USB_DEVICE
(
0x0a5c
,
0x2033
),
.
driver_info
=
HCI_IGNORE
},
{
USB_DEVICE
(
0x0a5c
,
0x2033
),
.
driver_info
=
HCI_IGNORE
},
/* Broadcom BCM2035 */
/* Broadcom BCM2035 */
{
USB_DEVICE
(
0x0a5c
,
0x200a
),
.
driver_info
=
HCI_RESET
},
{
USB_DEVICE
(
0x0a5c
,
0x200a
),
.
driver_info
=
HCI_RESET
|
HCI_BROKEN_ISOC
},
/* ISSC Bluetooth Adapter v3.1 */
/* ISSC Bluetooth Adapter v3.1 */
{
USB_DEVICE
(
0x1131
,
0x1001
),
.
driver_info
=
HCI_RESET
},
{
USB_DEVICE
(
0x1131
,
0x1001
),
.
driver_info
=
HCI_RESET
},
...
...
net/bluetooth/bnep/core.c
View file @
2508d59b
...
@@ -384,7 +384,7 @@ static inline int bnep_rx_frame(struct bnep_session *s, struct sk_buff *skb)
...
@@ -384,7 +384,7 @@ static inline int bnep_rx_frame(struct bnep_session *s, struct sk_buff *skb)
s
->
stats
.
rx_packets
++
;
s
->
stats
.
rx_packets
++
;
nskb
->
dev
=
dev
;
nskb
->
dev
=
dev
;
nskb
->
ip_summed
=
CHECKSUM_
UNNECESSARY
;
nskb
->
ip_summed
=
CHECKSUM_
NONE
;
nskb
->
protocol
=
eth_type_trans
(
nskb
,
dev
);
nskb
->
protocol
=
eth_type_trans
(
nskb
,
dev
);
netif_rx_ni
(
nskb
);
netif_rx_ni
(
nskb
);
return
0
;
return
0
;
...
...
net/bluetooth/l2cap.c
View file @
2508d59b
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
#define BT_DBG(D...)
#define BT_DBG(D...)
#endif
#endif
#define VERSION "2.
3
"
#define VERSION "2.
4
"
static
struct
proto_ops
l2cap_sock_ops
;
static
struct
proto_ops
l2cap_sock_ops
;
...
@@ -1453,7 +1453,7 @@ static inline int l2cap_connect_rsp(struct l2cap_conn *conn, struct l2cap_cmd_hd
...
@@ -1453,7 +1453,7 @@ static inline int l2cap_connect_rsp(struct l2cap_conn *conn, struct l2cap_cmd_hd
BT_DBG
(
"dcid 0x%4.4x scid 0x%4.4x result 0x%2.2x status 0x%2.2x"
,
dcid
,
scid
,
result
,
status
);
BT_DBG
(
"dcid 0x%4.4x scid 0x%4.4x result 0x%2.2x status 0x%2.2x"
,
dcid
,
scid
,
result
,
status
);
if
(
!
(
sk
=
l2cap_get_chan_by_scid
(
&
conn
->
chan_list
,
scid
)))
if
(
!
(
sk
=
l2cap_get_chan_by_scid
(
&
conn
->
chan_list
,
scid
)))
return
-
ENOENT
;
return
0
;
switch
(
result
)
{
switch
(
result
)
{
case
L2CAP_CR_SUCCESS
:
case
L2CAP_CR_SUCCESS
:
...
@@ -1527,7 +1527,6 @@ static inline int l2cap_config_rsp(struct l2cap_conn *conn, struct l2cap_cmd_hdr
...
@@ -1527,7 +1527,6 @@ static inline int l2cap_config_rsp(struct l2cap_conn *conn, struct l2cap_cmd_hdr
struct
l2cap_conf_rsp
*
rsp
=
(
struct
l2cap_conf_rsp
*
)
data
;
struct
l2cap_conf_rsp
*
rsp
=
(
struct
l2cap_conf_rsp
*
)
data
;
u16
scid
,
flags
,
result
;
u16
scid
,
flags
,
result
;
struct
sock
*
sk
;
struct
sock
*
sk
;
int
err
=
0
;
scid
=
__le16_to_cpu
(
rsp
->
scid
);
scid
=
__le16_to_cpu
(
rsp
->
scid
);
flags
=
__le16_to_cpu
(
rsp
->
flags
);
flags
=
__le16_to_cpu
(
rsp
->
flags
);
...
@@ -1536,7 +1535,7 @@ static inline int l2cap_config_rsp(struct l2cap_conn *conn, struct l2cap_cmd_hdr
...
@@ -1536,7 +1535,7 @@ static inline int l2cap_config_rsp(struct l2cap_conn *conn, struct l2cap_cmd_hdr
BT_DBG
(
"scid 0x%4.4x flags 0x%2.2x result 0x%2.2x"
,
scid
,
flags
,
result
);
BT_DBG
(
"scid 0x%4.4x flags 0x%2.2x result 0x%2.2x"
,
scid
,
flags
,
result
);
if
(
!
(
sk
=
l2cap_get_chan_by_scid
(
&
conn
->
chan_list
,
scid
)))
if
(
!
(
sk
=
l2cap_get_chan_by_scid
(
&
conn
->
chan_list
,
scid
)))
return
-
ENOENT
;
return
0
;
switch
(
result
)
{
switch
(
result
)
{
case
L2CAP_CONF_SUCCESS
:
case
L2CAP_CONF_SUCCESS
:
...
@@ -1581,7 +1580,7 @@ static inline int l2cap_config_rsp(struct l2cap_conn *conn, struct l2cap_cmd_hdr
...
@@ -1581,7 +1580,7 @@ static inline int l2cap_config_rsp(struct l2cap_conn *conn, struct l2cap_cmd_hdr
done:
done:
bh_unlock_sock
(
sk
);
bh_unlock_sock
(
sk
);
return
err
;
return
0
;
}
}
static
inline
int
l2cap_disconnect_req
(
struct
l2cap_conn
*
conn
,
struct
l2cap_cmd_hdr
*
cmd
,
u8
*
data
)
static
inline
int
l2cap_disconnect_req
(
struct
l2cap_conn
*
conn
,
struct
l2cap_cmd_hdr
*
cmd
,
u8
*
data
)
...
@@ -1625,6 +1624,7 @@ static inline int l2cap_disconnect_rsp(struct l2cap_conn *conn, struct l2cap_cmd
...
@@ -1625,6 +1624,7 @@ static inline int l2cap_disconnect_rsp(struct l2cap_conn *conn, struct l2cap_cmd
if
(
!
(
sk
=
l2cap_get_chan_by_scid
(
&
conn
->
chan_list
,
scid
)))
if
(
!
(
sk
=
l2cap_get_chan_by_scid
(
&
conn
->
chan_list
,
scid
)))
return
0
;
return
0
;
l2cap_chan_del
(
sk
,
0
);
l2cap_chan_del
(
sk
,
0
);
bh_unlock_sock
(
sk
);
bh_unlock_sock
(
sk
);
...
@@ -1632,7 +1632,7 @@ static inline int l2cap_disconnect_rsp(struct l2cap_conn *conn, struct l2cap_cmd
...
@@ -1632,7 +1632,7 @@ static inline int l2cap_disconnect_rsp(struct l2cap_conn *conn, struct l2cap_cmd
return
0
;
return
0
;
}
}
static
inline
int
l2cap_info_req
(
struct
l2cap_conn
*
conn
,
struct
l2cap_cmd_hdr
*
cmd
,
u8
*
data
)
static
inline
int
l2cap_info
rmation
_req
(
struct
l2cap_conn
*
conn
,
struct
l2cap_cmd_hdr
*
cmd
,
u8
*
data
)
{
{
struct
l2cap_info_req
*
req
=
(
struct
l2cap_info_req
*
)
data
;
struct
l2cap_info_req
*
req
=
(
struct
l2cap_info_req
*
)
data
;
struct
l2cap_info_rsp
rsp
;
struct
l2cap_info_rsp
rsp
;
...
@@ -1645,10 +1645,11 @@ static inline int l2cap_info_req(struct l2cap_conn *conn, struct l2cap_cmd_hdr *
...
@@ -1645,10 +1645,11 @@ static inline int l2cap_info_req(struct l2cap_conn *conn, struct l2cap_cmd_hdr *
rsp
.
type
=
__cpu_to_le16
(
type
);
rsp
.
type
=
__cpu_to_le16
(
type
);
rsp
.
result
=
__cpu_to_le16
(
L2CAP_IR_NOTSUPP
);
rsp
.
result
=
__cpu_to_le16
(
L2CAP_IR_NOTSUPP
);
l2cap_send_rsp
(
conn
,
cmd
->
ident
,
L2CAP_INFO_RSP
,
sizeof
(
rsp
),
&
rsp
);
l2cap_send_rsp
(
conn
,
cmd
->
ident
,
L2CAP_INFO_RSP
,
sizeof
(
rsp
),
&
rsp
);
return
0
;
return
0
;
}
}
static
inline
int
l2cap_info_rsp
(
struct
l2cap_conn
*
conn
,
struct
l2cap_cmd_hdr
*
cmd
,
u8
*
data
)
static
inline
int
l2cap_info
rmation
_rsp
(
struct
l2cap_conn
*
conn
,
struct
l2cap_cmd_hdr
*
cmd
,
u8
*
data
)
{
{
struct
l2cap_info_rsp
*
rsp
=
(
struct
l2cap_info_rsp
*
)
data
;
struct
l2cap_info_rsp
*
rsp
=
(
struct
l2cap_info_rsp
*
)
data
;
u16
type
,
result
;
u16
type
,
result
;
...
@@ -1721,11 +1722,11 @@ static inline void l2cap_sig_channel(struct l2cap_conn *conn, struct sk_buff *sk
...
@@ -1721,11 +1722,11 @@ static inline void l2cap_sig_channel(struct l2cap_conn *conn, struct sk_buff *sk
break
;
break
;
case
L2CAP_INFO_REQ
:
case
L2CAP_INFO_REQ
:
err
=
l2cap_info_req
(
conn
,
&
cmd
,
data
);
err
=
l2cap_info
rmation
_req
(
conn
,
&
cmd
,
data
);
break
;
break
;
case
L2CAP_INFO_RSP
:
case
L2CAP_INFO_RSP
:
err
=
l2cap_info_rsp
(
conn
,
&
cmd
,
data
);
err
=
l2cap_info
rmation
_rsp
(
conn
,
&
cmd
,
data
);
break
;
break
;
default:
default:
...
...
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