summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorIlan Elias <ilane@ti.com>2011-12-20 16:57:41 +0200
committerJohn W. Linville <linville@tuxdriver.com>2012-01-04 14:30:39 -0500
commit004161cb52ac49bc17f6528543c1cecbd728f750 (patch)
tree61701dba816c42e77dc9f941d0e66a8887067919 /include
parent637d85a7cdfe4240a56da7d70cf95cca65ea21d3 (diff)
NFC: Handle error during NCI data exchange
Add support for NCI Interface Error Notification. When this notification is received and we're during a data exchange transaction, indicate an error to the NFC core layer via the data exchange callback. Signed-off-by: Ilan Elias <ilane@ti.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include')
-rw-r--r--include/net/nfc/nci.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/nfc/nci.h b/include/net/nfc/nci.h
index 2a7fdb26561..2be95e2626c 100644
--- a/include/net/nfc/nci.h
+++ b/include/net/nfc/nci.h
@@ -260,6 +260,12 @@ struct nci_core_conn_credit_ntf {
struct conn_credit_entry conn_entries[NCI_MAX_NUM_CONN];
} __packed;
+#define NCI_OP_CORE_INTF_ERROR_NTF nci_opcode_pack(NCI_GID_CORE, 0x08)
+struct nci_core_intf_error_ntf {
+ __u8 status;
+ __u8 conn_id;
+} __packed;
+
#define NCI_OP_RF_INTF_ACTIVATED_NTF nci_opcode_pack(NCI_GID_RF_MGMT, 0x05)
struct rf_tech_specific_params_nfca_poll {
__u16 sens_res;