hci.c (d58ff35122847a83ba55394e2ae3a1527b6febf5) hci.c (634fef61076d644b989b86abc2f560d81a089a31)
1/*
2 * The NFC Controller Interface is the communication protocol between an
3 * NFC Controller (NFCC) and a Device Host (DH).
4 * This is the HCI over NCI implementation, as specified in the 10.2
5 * section of the NCI 1.1 specification.
6 *
7 * Copyright (C) 2014 STMicroelectronics SAS. All rights reserved.
8 *

--- 458 unchanged lines hidden (view full) ---

467
468 hcp_skb = nfc_alloc_recv_skb(NCI_HCI_HCP_PACKET_HEADER_LEN +
469 msg_len, GFP_KERNEL);
470 if (!hcp_skb) {
471 nci_req_complete(ndev, -ENOMEM);
472 return;
473 }
474
1/*
2 * The NFC Controller Interface is the communication protocol between an
3 * NFC Controller (NFCC) and a Device Host (DH).
4 * This is the HCI over NCI implementation, as specified in the 10.2
5 * section of the NCI 1.1 specification.
6 *
7 * Copyright (C) 2014 STMicroelectronics SAS. All rights reserved.
8 *

--- 458 unchanged lines hidden (view full) ---

467
468 hcp_skb = nfc_alloc_recv_skb(NCI_HCI_HCP_PACKET_HEADER_LEN +
469 msg_len, GFP_KERNEL);
470 if (!hcp_skb) {
471 nci_req_complete(ndev, -ENOMEM);
472 return;
473 }
474
475 *(u8 *)skb_put(hcp_skb, NCI_HCI_HCP_PACKET_HEADER_LEN) = pipe;
475 skb_put_u8(hcp_skb, pipe);
476
477 skb_queue_walk(&ndev->hci_dev->rx_hcp_frags, frag_skb) {
478 msg_len = frag_skb->len - NCI_HCI_HCP_PACKET_HEADER_LEN;
479 skb_put_data(hcp_skb,
480 frag_skb->data + NCI_HCI_HCP_PACKET_HEADER_LEN,
481 msg_len);
482 }
483

--- 318 unchanged lines hidden ---
476
477 skb_queue_walk(&ndev->hci_dev->rx_hcp_frags, frag_skb) {
478 msg_len = frag_skb->len - NCI_HCI_HCP_PACKET_HEADER_LEN;
479 skb_put_data(hcp_skb,
480 frag_skb->data + NCI_HCI_HCP_PACKET_HEADER_LEN,
481 msg_len);
482 }
483

--- 318 unchanged lines hidden ---