diff options
author | Christophe Ricard <christophe.ricard@gmail.com> | 2015-02-01 16:26:17 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2015-02-02 15:50:41 -0500 |
commit | a41bb8448ebaebe1d0d9a268d340fad73c247e09 (patch) | |
tree | 9ea105409bddae8ecc33313fd2da6df9db356aba /net/nfc/nci/ntf.c | |
parent | 447b27c4f29b510b98e99395120d635f009ed563 (diff) |
NFC: nci: Add RF NFCEE action notification support
The NFCC sends an NCI_OP_RF_NFCEE_ACTION_NTF notification
to the host (DH) to let it know that for example an RF
transaction with a payment reader is done.
For now the notification handler is empty.
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc/nci/ntf.c')
-rw-r--r-- | net/nfc/nci/ntf.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net/nfc/nci/ntf.c b/net/nfc/nci/ntf.c index 6e041ac49e17..5924b812fb6a 100644 --- a/net/nfc/nci/ntf.c +++ b/net/nfc/nci/ntf.c | |||
@@ -752,6 +752,12 @@ exit: | |||
752 | nci_req_complete(ndev, status); | 752 | nci_req_complete(ndev, status); |
753 | } | 753 | } |
754 | 754 | ||
755 | static void nci_nfcee_action_ntf_packet(struct nci_dev *ndev, | ||
756 | struct sk_buff *skb) | ||
757 | { | ||
758 | pr_debug("\n"); | ||
759 | } | ||
760 | |||
755 | void nci_ntf_packet(struct nci_dev *ndev, struct sk_buff *skb) | 761 | void nci_ntf_packet(struct nci_dev *ndev, struct sk_buff *skb) |
756 | { | 762 | { |
757 | __u16 ntf_opcode = nci_opcode(skb->data); | 763 | __u16 ntf_opcode = nci_opcode(skb->data); |
@@ -793,6 +799,11 @@ void nci_ntf_packet(struct nci_dev *ndev, struct sk_buff *skb) | |||
793 | case NCI_OP_NFCEE_DISCOVER_NTF: | 799 | case NCI_OP_NFCEE_DISCOVER_NTF: |
794 | nci_nfcee_discover_ntf_packet(ndev, skb); | 800 | nci_nfcee_discover_ntf_packet(ndev, skb); |
795 | break; | 801 | break; |
802 | |||
803 | case NCI_OP_RF_NFCEE_ACTION_NTF: | ||
804 | nci_nfcee_action_ntf_packet(ndev, skb); | ||
805 | break; | ||
806 | |||
796 | default: | 807 | default: |
797 | pr_err("unknown ntf opcode 0x%x\n", ntf_opcode); | 808 | pr_err("unknown ntf opcode 0x%x\n", ntf_opcode); |
798 | break; | 809 | break; |