summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/nfc.h
diff options
context:
space:
mode:
authorChristophe Ricard2014-12-02 21:27:50 +0100
committerSamuel Ortiz2014-12-02 22:47:37 +0100
commit3682f49f32051765ed6eb77fc882f0458f7d44c3 (patch)
tree85e9879918bd3f8498bc265e6885550f1a606aa1 /include/uapi/linux/nfc.h
parentNFC: nci: Add support for different NCI_DEACTIVATE_TYPE (diff)
downloadkernel-qcow2-linux-3682f49f32051765ed6eb77fc882f0458f7d44c3.tar.gz
kernel-qcow2-linux-3682f49f32051765ed6eb77fc882f0458f7d44c3.tar.xz
kernel-qcow2-linux-3682f49f32051765ed6eb77fc882f0458f7d44c3.zip
NFC: netlink: Add new netlink command NFC_CMD_ACTIVATE_TARGET
Some tag might get deactivated after some read or write tentative. This may happen for example with Mifare Ultralight C tag when trying to read the last 4 blocks (starting block 0x2c) configured as write only. NFC_CMD_ACTIVATE_TARGET will try to reselect the tag in order to detect if it got remove from the field or if it is still present. Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/uapi/linux/nfc.h')
-rw-r--r--include/uapi/linux/nfc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/nfc.h b/include/uapi/linux/nfc.h
index 19a75daac14c..3c5efb1bc393 100644
--- a/include/uapi/linux/nfc.h
+++ b/include/uapi/linux/nfc.h
@@ -116,6 +116,7 @@ enum nfc_commands {
NFC_EVENT_SE_TRANSACTION,
NFC_CMD_GET_SE,
NFC_CMD_SE_IO,
+ NFC_CMD_ACTIVATE_TARGET,
/* private: internal use only */
__NFC_CMD_AFTER_LAST
};