diff options
Diffstat (limited to 'net/bluetooth')
| -rw-r--r-- | net/bluetooth/hci_core.c | 2 | ||||
| -rw-r--r-- | net/bluetooth/hci_event.c | 4 | ||||
| -rw-r--r-- | net/bluetooth/lib.c | 25 | ||||
| -rw-r--r-- | net/bluetooth/rfcomm/core.c | 4 |
4 files changed, 3 insertions, 32 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index fb5524365bc2..ffa26c10bfe8 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c | |||
| @@ -299,7 +299,6 @@ struct hci_dev *hci_dev_get(int index) | |||
| 299 | read_unlock(&hci_dev_list_lock); | 299 | read_unlock(&hci_dev_list_lock); |
| 300 | return hdev; | 300 | return hdev; |
| 301 | } | 301 | } |
| 302 | EXPORT_SYMBOL(hci_dev_get); | ||
| 303 | 302 | ||
| 304 | /* ---- Inquiry support ---- */ | 303 | /* ---- Inquiry support ---- */ |
| 305 | static void inquiry_cache_flush(struct hci_dev *hdev) | 304 | static void inquiry_cache_flush(struct hci_dev *hdev) |
| @@ -1042,7 +1041,6 @@ int hci_send_cmd(struct hci_dev *hdev, __u16 ogf, __u16 ocf, __u32 plen, void *p | |||
| 1042 | 1041 | ||
| 1043 | return 0; | 1042 | return 0; |
| 1044 | } | 1043 | } |
| 1045 | EXPORT_SYMBOL(hci_send_cmd); | ||
| 1046 | 1044 | ||
| 1047 | /* Get data from the previously sent command */ | 1045 | /* Get data from the previously sent command */ |
| 1048 | void *hci_sent_cmd_data(struct hci_dev *hdev, __u16 ogf, __u16 ocf) | 1046 | void *hci_sent_cmd_data(struct hci_dev *hdev, __u16 ogf, __u16 ocf) |
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index c4b592b4ef10..46367bd129c3 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c | |||
| @@ -1035,9 +1035,11 @@ void hci_si_event(struct hci_dev *hdev, int type, int dlen, void *data) | |||
| 1035 | ev->type = type; | 1035 | ev->type = type; |
| 1036 | memcpy(ev->data, data, dlen); | 1036 | memcpy(ev->data, data, dlen); |
| 1037 | 1037 | ||
| 1038 | bt_cb(skb)->incoming = 1; | ||
| 1039 | do_gettimeofday(&skb->stamp); | ||
| 1040 | |||
| 1038 | skb->pkt_type = HCI_EVENT_PKT; | 1041 | skb->pkt_type = HCI_EVENT_PKT; |
| 1039 | skb->dev = (void *) hdev; | 1042 | skb->dev = (void *) hdev; |
| 1040 | hci_send_to_sock(hdev, skb); | 1043 | hci_send_to_sock(hdev, skb); |
| 1041 | kfree_skb(skb); | 1044 | kfree_skb(skb); |
| 1042 | } | 1045 | } |
| 1043 | EXPORT_SYMBOL(hci_si_event); | ||
diff --git a/net/bluetooth/lib.c b/net/bluetooth/lib.c index 9efb0a093612..ee6a66979913 100644 --- a/net/bluetooth/lib.c +++ b/net/bluetooth/lib.c | |||
| @@ -34,31 +34,6 @@ | |||
| 34 | 34 | ||
| 35 | #include <net/bluetooth/bluetooth.h> | 35 | #include <net/bluetooth/bluetooth.h> |
| 36 | 36 | ||
| 37 | void bt_dump(char *pref, __u8 *buf, int count) | ||
| 38 | { | ||
| 39 | char *ptr; | ||
| 40 | char line[100]; | ||
| 41 | unsigned int i; | ||
| 42 | |||
| 43 | printk(KERN_INFO "%s: dump, len %d\n", pref, count); | ||
| 44 | |||
| 45 | ptr = line; | ||
| 46 | *ptr = 0; | ||
| 47 | for (i = 0; i < count; i++) { | ||
| 48 | ptr += sprintf(ptr, " %2.2X", buf[i]); | ||
| 49 | |||
| 50 | if (i && !((i + 1) % 20)) { | ||
| 51 | printk(KERN_INFO "%s:%s\n", pref, line); | ||
| 52 | ptr = line; | ||
| 53 | *ptr = 0; | ||
| 54 | } | ||
| 55 | } | ||
| 56 | |||
| 57 | if (line[0]) | ||
| 58 | printk(KERN_INFO "%s:%s\n", pref, line); | ||
| 59 | } | ||
| 60 | EXPORT_SYMBOL(bt_dump); | ||
| 61 | |||
| 62 | void baswap(bdaddr_t *dst, bdaddr_t *src) | 37 | void baswap(bdaddr_t *dst, bdaddr_t *src) |
| 63 | { | 38 | { |
| 64 | unsigned char *d = (unsigned char *) dst; | 39 | unsigned char *d = (unsigned char *) dst; |
diff --git a/net/bluetooth/rfcomm/core.c b/net/bluetooth/rfcomm/core.c index e9e6fda66f1a..27bf5047cd33 100644 --- a/net/bluetooth/rfcomm/core.c +++ b/net/bluetooth/rfcomm/core.c | |||
| @@ -389,8 +389,6 @@ static int __rfcomm_dlc_close(struct rfcomm_dlc *d, int err) | |||
| 389 | rfcomm_dlc_unlock(d); | 389 | rfcomm_dlc_unlock(d); |
| 390 | 390 | ||
| 391 | skb_queue_purge(&d->tx_queue); | 391 | skb_queue_purge(&d->tx_queue); |
| 392 | rfcomm_session_put(s); | ||
| 393 | |||
| 394 | rfcomm_dlc_unlink(d); | 392 | rfcomm_dlc_unlink(d); |
| 395 | } | 393 | } |
| 396 | 394 | ||
| @@ -600,8 +598,6 @@ static struct rfcomm_session *rfcomm_session_create(bdaddr_t *src, bdaddr_t *dst | |||
| 600 | goto failed; | 598 | goto failed; |
| 601 | } | 599 | } |
| 602 | 600 | ||
| 603 | rfcomm_session_hold(s); | ||
| 604 | |||
| 605 | s->initiator = 1; | 601 | s->initiator = 1; |
| 606 | 602 | ||
| 607 | bacpy(&addr.l2_bdaddr, dst); | 603 | bacpy(&addr.l2_bdaddr, dst); |
