|
@@ -339,7 +339,7 @@ static struct sk_buff *llcp_allocate_pdu(struct nfc_llcp_sock *sock,
|
|
|
return skb;
|
|
|
}
|
|
|
|
|
|
-int nfc_llcp_disconnect(struct nfc_llcp_sock *sock)
|
|
|
+int nfc_llcp_send_disconnect(struct nfc_llcp_sock *sock)
|
|
|
{
|
|
|
struct sk_buff *skb;
|
|
|
struct nfc_dev *dev;
|
|
@@ -630,26 +630,6 @@ int nfc_llcp_send_dm(struct nfc_llcp_local *local, u8 ssap, u8 dsap, u8 reason)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-int nfc_llcp_send_disconnect(struct nfc_llcp_sock *sock)
|
|
|
-{
|
|
|
- struct sk_buff *skb;
|
|
|
- struct nfc_llcp_local *local;
|
|
|
-
|
|
|
- pr_debug("Send DISC\n");
|
|
|
-
|
|
|
- local = sock->local;
|
|
|
- if (local == NULL)
|
|
|
- return -ENODEV;
|
|
|
-
|
|
|
- skb = llcp_allocate_pdu(sock, LLCP_PDU_DISC, 0);
|
|
|
- if (skb == NULL)
|
|
|
- return -ENOMEM;
|
|
|
-
|
|
|
- skb_queue_head(&local->tx_queue, skb);
|
|
|
-
|
|
|
- return 0;
|
|
|
-}
|
|
|
-
|
|
|
int nfc_llcp_send_i_frame(struct nfc_llcp_sock *sock,
|
|
|
struct msghdr *msg, size_t len)
|
|
|
{
|