diff options
Diffstat (limited to 'net/nfc/llcp_commands.c')
-rw-r--r-- | net/nfc/llcp_commands.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/net/nfc/llcp_commands.c b/net/nfc/llcp_commands.c index c1b23eef83ca..1017894807c0 100644 --- a/net/nfc/llcp_commands.c +++ b/net/nfc/llcp_commands.c | |||
@@ -339,7 +339,7 @@ static struct sk_buff *llcp_allocate_pdu(struct nfc_llcp_sock *sock, | |||
339 | return skb; | 339 | return skb; |
340 | } | 340 | } |
341 | 341 | ||
342 | int nfc_llcp_disconnect(struct nfc_llcp_sock *sock) | 342 | int nfc_llcp_send_disconnect(struct nfc_llcp_sock *sock) |
343 | { | 343 | { |
344 | struct sk_buff *skb; | 344 | struct sk_buff *skb; |
345 | struct nfc_dev *dev; | 345 | struct nfc_dev *dev; |
@@ -630,26 +630,6 @@ int nfc_llcp_send_dm(struct nfc_llcp_local *local, u8 ssap, u8 dsap, u8 reason) | |||
630 | return 0; | 630 | return 0; |
631 | } | 631 | } |
632 | 632 | ||
633 | int nfc_llcp_send_disconnect(struct nfc_llcp_sock *sock) | ||
634 | { | ||
635 | struct sk_buff *skb; | ||
636 | struct nfc_llcp_local *local; | ||
637 | |||
638 | pr_debug("Send DISC\n"); | ||
639 | |||
640 | local = sock->local; | ||
641 | if (local == NULL) | ||
642 | return -ENODEV; | ||
643 | |||
644 | skb = llcp_allocate_pdu(sock, LLCP_PDU_DISC, 0); | ||
645 | if (skb == NULL) | ||
646 | return -ENOMEM; | ||
647 | |||
648 | skb_queue_head(&local->tx_queue, skb); | ||
649 | |||
650 | return 0; | ||
651 | } | ||
652 | |||
653 | int nfc_llcp_send_i_frame(struct nfc_llcp_sock *sock, | 633 | int nfc_llcp_send_i_frame(struct nfc_llcp_sock *sock, |
654 | struct msghdr *msg, size_t len) | 634 | struct msghdr *msg, size_t len) |
655 | { | 635 | { |