diff options
author | Ilan Elias <ilane@ti.com> | 2011-12-22 04:51:54 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-01-04 14:30:43 -0500 |
commit | 288e0713f469c03dbc412153b5341d6dfc2c9907 (patch) | |
tree | 1155f2d96309acb17a23d4a384417c5de3940647 /include/net | |
parent | 9931df2692ddb7db092550ce063e674730176ecf (diff) |
NFC: Export a new attribute nfcid1 in target info
The nfcid1 is the NFC-A identifier.
It is exported as an attribute of the target info
(returned as a response to NFC_CMD_GET_TARGET).
Signed-off-by: Ilan Elias <ilane@ti.com>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/nfc/nfc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/nfc/nfc.h b/include/net/nfc/nfc.h index ccfe757a94ec..8696b773a695 100644 --- a/include/net/nfc/nfc.h +++ b/include/net/nfc/nfc.h | |||
@@ -65,12 +65,15 @@ struct nfc_ops { | |||
65 | 65 | ||
66 | #define NFC_TARGET_IDX_ANY -1 | 66 | #define NFC_TARGET_IDX_ANY -1 |
67 | #define NFC_MAX_GT_LEN 48 | 67 | #define NFC_MAX_GT_LEN 48 |
68 | #define NFC_MAX_NFCID1_LEN 10 | ||
68 | 69 | ||
69 | struct nfc_target { | 70 | struct nfc_target { |
70 | u32 idx; | 71 | u32 idx; |
71 | u32 supported_protocols; | 72 | u32 supported_protocols; |
72 | u16 sens_res; | 73 | u16 sens_res; |
73 | u8 sel_res; | 74 | u8 sel_res; |
75 | u8 nfcid1_len; | ||
76 | u8 nfcid1[NFC_MAX_NFCID1_LEN]; | ||
74 | }; | 77 | }; |
75 | 78 | ||
76 | struct nfc_genl_data { | 79 | struct nfc_genl_data { |