diff options
author | Christophe Ricard <christophe.ricard@gmail.com> | 2015-03-31 02:02:19 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2015-04-05 18:18:29 -0400 |
commit | 0fc4a1291aeef338593e44e5396559df27f0bfdf (patch) | |
tree | 2eea23f61d7ebc6cb3bd9d80de54fa17d77c9dc6 | |
parent | 0b040964a01ccfd880207ddc498e55e6c990a5d5 (diff) |
nfc: Reduce nfc_evt_transaction params length to 0
According to etsi 102 622 chapter 11.2.2.4 EVT_TRANSACTION,
the nfc_evt_transaction parameters can be 0 up to 255 byte long.
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
-rw-r--r-- | include/net/nfc/nfc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/nfc/nfc.h b/include/net/nfc/nfc.h index 73190e65d5c1..7ac029c07546 100644 --- a/include/net/nfc/nfc.h +++ b/include/net/nfc/nfc.h | |||
@@ -157,7 +157,7 @@ struct nfc_evt_transaction { | |||
157 | u32 aid_len; | 157 | u32 aid_len; |
158 | u8 aid[NFC_MAX_AID_LENGTH]; | 158 | u8 aid[NFC_MAX_AID_LENGTH]; |
159 | u8 params_len; | 159 | u8 params_len; |
160 | u8 params[NFC_MAX_PARAMS_LENGTH]; | 160 | u8 params[0]; |
161 | } __packed; | 161 | } __packed; |
162 | 162 | ||
163 | struct nfc_genl_data { | 163 | struct nfc_genl_data { |