Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315281
b: refs/heads/master
c: 72b06f7
h: refs/heads/master
i:
  315279: 236ffd0
v: v3
  • Loading branch information
Eric Lapuyade authored and John W. Linville committed Jul 9, 2012
1 parent 5c3b702 commit 3670a5a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1c215d79a18a22fc6c2a9ef8658d426bac492b58
refs/heads/master: 72b06f75fea45fa861f2e137bc94e56aab306c4b
15 changes: 10 additions & 5 deletions trunk/net/nfc/hci/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -717,12 +717,18 @@ void *nfc_hci_get_clientdata(struct nfc_hci_dev *hdev)
}
EXPORT_SYMBOL(nfc_hci_get_clientdata);

void nfc_hci_driver_failure(struct nfc_hci_dev *hdev, int err)
static void nfc_hci_failure(struct nfc_hci_dev *hdev, int err)
{
/* TODO: lower layer has permanent failure.
/*
* TODO: lower layer has permanent failure.
* complete potential HCI command or send an empty tag discovered event
*/
}

void nfc_hci_driver_failure(struct nfc_hci_dev *hdev, int err)
{
nfc_hci_failure(hdev, err);
}
EXPORT_SYMBOL(nfc_hci_driver_failure);

void nfc_hci_recv_frame(struct nfc_hci_dev *hdev, struct sk_buff *skb)
Expand Down Expand Up @@ -755,9 +761,8 @@ void nfc_hci_recv_frame(struct nfc_hci_dev *hdev, struct sk_buff *skb)
hcp_skb = nfc_alloc_recv_skb(NFC_HCI_HCP_PACKET_HEADER_LEN +
msg_len, GFP_KERNEL);
if (hcp_skb == NULL) {
/* TODO ELa: cannot deliver HCP message. How to
* propagate error up?
*/
nfc_hci_failure(hdev, -ENOMEM);
return;
}

*skb_put(hcp_skb, NFC_HCI_HCP_PACKET_HEADER_LEN) = pipe;
Expand Down

0 comments on commit 3670a5a

Please sign in to comment.