Commit 3848734e authored by Marcel Holtmann's avatar Marcel Holtmann

Merge hostme.bitkeeper.com:/ua/repos/l/linux-bt/bt-2.5

into hostme.bitkeeper.com:/ua/repos/l/linux-bt/marcel-2.5
parents ecf2c214 7d1c8951
...@@ -456,27 +456,27 @@ static void bluecard_receive(bluecard_info_t *info, unsigned int offset) ...@@ -456,27 +456,27 @@ static void bluecard_receive(bluecard_info_t *info, unsigned int offset)
if (info->rx_count == 0) { if (info->rx_count == 0) {
int dlen; int dlen;
hci_event_hdr *eh; struct hci_event_hdr *eh;
hci_acl_hdr *ah; struct hci_acl_hdr *ah;
hci_sco_hdr *sh; struct hci_sco_hdr *sh;
switch (info->rx_state) { switch (info->rx_state) {
case RECV_WAIT_EVENT_HEADER: case RECV_WAIT_EVENT_HEADER:
eh = (hci_event_hdr *)(info->rx_skb->data); eh = (struct hci_event_hdr *)(info->rx_skb->data);
info->rx_state = RECV_WAIT_DATA; info->rx_state = RECV_WAIT_DATA;
info->rx_count = eh->plen; info->rx_count = eh->plen;
break; break;
case RECV_WAIT_ACL_HEADER: case RECV_WAIT_ACL_HEADER:
ah = (hci_acl_hdr *)(info->rx_skb->data); ah = (struct hci_acl_hdr *)(info->rx_skb->data);
dlen = __le16_to_cpu(ah->dlen); dlen = __le16_to_cpu(ah->dlen);
info->rx_state = RECV_WAIT_DATA; info->rx_state = RECV_WAIT_DATA;
info->rx_count = dlen; info->rx_count = dlen;
break; break;
case RECV_WAIT_SCO_HEADER: case RECV_WAIT_SCO_HEADER:
sh = (hci_sco_hdr *)(info->rx_skb->data); sh = (struct hci_sco_hdr *)(info->rx_skb->data);
info->rx_state = RECV_WAIT_DATA; info->rx_state = RECV_WAIT_DATA;
info->rx_count = sh->dlen; info->rx_count = sh->dlen;
break; break;
......
...@@ -318,27 +318,27 @@ static void bt3c_receive(bt3c_info_t *info) ...@@ -318,27 +318,27 @@ static void bt3c_receive(bt3c_info_t *info)
if (info->rx_count == 0) { if (info->rx_count == 0) {
int dlen; int dlen;
hci_event_hdr *eh; struct hci_event_hdr *eh;
hci_acl_hdr *ah; struct hci_acl_hdr *ah;
hci_sco_hdr *sh; struct hci_sco_hdr *sh;
switch (info->rx_state) { switch (info->rx_state) {
case RECV_WAIT_EVENT_HEADER: case RECV_WAIT_EVENT_HEADER:
eh = (hci_event_hdr *)(info->rx_skb->data); eh = (struct hci_event_hdr *)(info->rx_skb->data);
info->rx_state = RECV_WAIT_DATA; info->rx_state = RECV_WAIT_DATA;
info->rx_count = eh->plen; info->rx_count = eh->plen;
break; break;
case RECV_WAIT_ACL_HEADER: case RECV_WAIT_ACL_HEADER:
ah = (hci_acl_hdr *)(info->rx_skb->data); ah = (struct hci_acl_hdr *)(info->rx_skb->data);
dlen = __le16_to_cpu(ah->dlen); dlen = __le16_to_cpu(ah->dlen);
info->rx_state = RECV_WAIT_DATA; info->rx_state = RECV_WAIT_DATA;
info->rx_count = dlen; info->rx_count = dlen;
break; break;
case RECV_WAIT_SCO_HEADER: case RECV_WAIT_SCO_HEADER:
sh = (hci_sco_hdr *)(info->rx_skb->data); sh = (struct hci_sco_hdr *)(info->rx_skb->data);
info->rx_state = RECV_WAIT_DATA; info->rx_state = RECV_WAIT_DATA;
info->rx_count = sh->dlen; info->rx_count = sh->dlen;
break; break;
......
...@@ -702,16 +702,14 @@ int bnep_get_coninfo(struct bnep_coninfo *ci) ...@@ -702,16 +702,14 @@ int bnep_get_coninfo(struct bnep_coninfo *ci)
static int __init bnep_init_module(void) static int __init bnep_init_module(void)
{ {
BT_INFO("BNEP: BNEP2 ver %s\n"
"BNEP: Copyright (C) 2002 Inventel\n"
"BNEP: Written 2001,2002 by\n"
"BNEP: \tClement Moreau <clement.moreau@inventel.fr> "
"David Libault <david.libault@inventel.fr>\n"
"BNEP: Copyright (C) 2002 Maxim Krasnyanskiy <maxk@qualcomm.com>",
VERSION);
bnep_sock_init(); bnep_sock_init();
BT_INFO("Bluetooth BNEP ver %s", VERSION);
BT_INFO("Copyright (C) 2001,2002 Inventel Systemes");
BT_INFO("Written 2001,2002 by Clement Moreau <clement.moreau@inventel.fr>");
BT_INFO("Written 2001,2002 by David Libault <david.libault@inventel.fr>");
BT_INFO("Copyright (C) 2002 Maxim Krasnyanskiy <maxk@qualcomm.com>");
return 0; return 0;
} }
...@@ -723,6 +721,6 @@ static void __exit bnep_cleanup_module(void) ...@@ -723,6 +721,6 @@ static void __exit bnep_cleanup_module(void)
module_init(bnep_init_module); module_init(bnep_init_module);
module_exit(bnep_cleanup_module); module_exit(bnep_cleanup_module);
MODULE_DESCRIPTION("BNEP ver " VERSION); MODULE_DESCRIPTION("Bluetooth BNEP ver " VERSION);
MODULE_AUTHOR("David Libault <david.libault@inventel.fr> Maxim Krasnyanskiy <maxk@qualcomm.com>"); MODULE_AUTHOR("David Libault <david.libault@inventel.fr>, Maxim Krasnyanskiy <maxk@qualcomm.com>");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment