diff options
-rw-r--r-- | include/net/nfc/nci.h | 8 | ||||
-rw-r--r-- | net/nfc/nci/ntf.c | 11 |
2 files changed, 19 insertions, 0 deletions
diff --git a/include/net/nfc/nci.h b/include/net/nfc/nci.h index deac78b9a53c..6c1beb2704b1 100644 --- a/include/net/nfc/nci.h +++ b/include/net/nfc/nci.h | |||
@@ -499,6 +499,14 @@ struct nci_rf_deactivate_ntf { | |||
499 | __u8 reason; | 499 | __u8 reason; |
500 | } __packed; | 500 | } __packed; |
501 | 501 | ||
502 | #define NCI_OP_RF_NFCEE_ACTION_NTF nci_opcode_pack(NCI_GID_RF_MGMT, 0x09) | ||
503 | struct nci_rf_nfcee_action_ntf { | ||
504 | __u8 nfcee_id; | ||
505 | __u8 trigger; | ||
506 | __u8 supported_data_length; | ||
507 | __u8 supported_data[0]; | ||
508 | } __packed; | ||
509 | |||
502 | #define NCI_OP_NFCEE_DISCOVER_NTF nci_opcode_pack(NCI_GID_NFCEE_MGMT, 0x00) | 510 | #define NCI_OP_NFCEE_DISCOVER_NTF nci_opcode_pack(NCI_GID_NFCEE_MGMT, 0x00) |
503 | struct nci_nfcee_supported_protocol { | 511 | struct nci_nfcee_supported_protocol { |
504 | __u8 num_protocol; | 512 | __u8 num_protocol; |
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; |