diff options
author | Julien Lefrique <lefrique@marvell.com> | 2014-10-21 10:52:46 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2014-11-28 08:07:51 -0500 |
commit | a99903ec4566eeeaaaf611499cae00abbe844938 (patch) | |
tree | 67fa8332a70691e99011ca0289e25ec227ce3fb7 /include/uapi/linux | |
parent | 90d78c13965859d87622b37a221ebf29522585a8 (diff) |
NFC: NCI: Handle Target mode activation
Changes:
* Extract the Listen mode activation parameters from RF_INTF_ACTIVATED_NTF.
* Store the General Bytes of ATR_REQ.
* Signal that Target mode is activated in case of an activation in NFC-DEP.
* Update the NCI state accordingly.
* Use the various constants defined in nfc.h.
* Fix the ATR_REQ and ATR_RES maximum size. As per NCI 1.0 and NCI 1.1, the
Activation Parameters for both Poll and Listen mode contain all the bytes of
ATR_REQ/ATR_RES starting and including Byte 3 as defined in [DIGITAL].
In [DIGITAL], the maximum size of ATR_REQ/ATR_RES is 64 bytes and they are
numbered starting from Byte 1.
Signed-off-by: Julien Lefrique <lefrique@marvell.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r-- | include/uapi/linux/nfc.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/include/uapi/linux/nfc.h b/include/uapi/linux/nfc.h index 9b19b4461928..19a75daac14c 100644 --- a/include/uapi/linux/nfc.h +++ b/include/uapi/linux/nfc.h | |||
@@ -196,15 +196,17 @@ enum nfc_sdp_attr { | |||
196 | }; | 196 | }; |
197 | #define NFC_SDP_ATTR_MAX (__NFC_SDP_ATTR_AFTER_LAST - 1) | 197 | #define NFC_SDP_ATTR_MAX (__NFC_SDP_ATTR_AFTER_LAST - 1) |
198 | 198 | ||
199 | #define NFC_DEVICE_NAME_MAXSIZE 8 | 199 | #define NFC_DEVICE_NAME_MAXSIZE 8 |
200 | #define NFC_NFCID1_MAXSIZE 10 | 200 | #define NFC_NFCID1_MAXSIZE 10 |
201 | #define NFC_NFCID2_MAXSIZE 8 | 201 | #define NFC_NFCID2_MAXSIZE 8 |
202 | #define NFC_NFCID3_MAXSIZE 10 | 202 | #define NFC_NFCID3_MAXSIZE 10 |
203 | #define NFC_SENSB_RES_MAXSIZE 12 | 203 | #define NFC_SENSB_RES_MAXSIZE 12 |
204 | #define NFC_SENSF_RES_MAXSIZE 18 | 204 | #define NFC_SENSF_RES_MAXSIZE 18 |
205 | #define NFC_GB_MAXSIZE 48 | 205 | #define NFC_ATR_REQ_MAXSIZE 64 |
206 | #define NFC_FIRMWARE_NAME_MAXSIZE 32 | 206 | #define NFC_ATR_RES_MAXSIZE 64 |
207 | #define NFC_ISO15693_UID_MAXSIZE 8 | 207 | #define NFC_GB_MAXSIZE 48 |
208 | #define NFC_FIRMWARE_NAME_MAXSIZE 32 | ||
209 | #define NFC_ISO15693_UID_MAXSIZE 8 | ||
208 | 210 | ||
209 | /* NFC protocols */ | 211 | /* NFC protocols */ |
210 | #define NFC_PROTO_JEWEL 1 | 212 | #define NFC_PROTO_JEWEL 1 |