diff options
author | Mark A. Greer <mgreer@animalcreek.com> | 2014-09-23 19:38:13 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2014-11-28 06:39:55 -0500 |
commit | 384ab1d174a11292af63674a26eaa99864db9b48 (patch) | |
tree | 92330bc261e79bc6788543930e590f0fed706b63 /include/net/nfc | |
parent | 49dbb14e30c3249f98fe243c3e21b91d10c5c59b (diff) |
NFC: digital: Add NFC-DEP Initiator-side ATN Support
When an NFC-DEP Initiator times out when waiting for
a DEP_RES from the Target, its supposed to send an
ATN to the Target. The Target should respond to the
ATN with a similar ATN PDU and the Initiator can then
resend the last non-ATN PDU that it sent. No more
than 'N(retry,atn)' are to be send where
2 <= 'N(retry,atn)' <= 5. If the Initiator had just
sent a NACK PDU when the timeout occurred, it is to
continue sending NACKs until 'N(retry,nack)' NACKs
have been send. This is described in section
14.12.5.6 of the NFC-DEP Digital Protocol Spec.
The digital layer's NFC-DEP code doesn't implement
this so add that support.
The value chosen for 'N(retry,atn)' is 2.
Reviewed-by: Thierry Escande <thierry.escande@linux.intel.com>
Tested-by: Thierry Escande <thierry.escande@linux.intel.com>
Signed-off-by: Mark A. Greer <mgreer@animalcreek.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/net/nfc')
-rw-r--r-- | include/net/nfc/digital.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/nfc/digital.h b/include/net/nfc/digital.h index 7400a8126cd1..0ae101eef0f4 100644 --- a/include/net/nfc/digital.h +++ b/include/net/nfc/digital.h | |||
@@ -233,6 +233,7 @@ struct nfc_digital_dev { | |||
233 | struct sk_buff *chaining_skb; | 233 | struct sk_buff *chaining_skb; |
234 | struct digital_data_exch *data_exch; | 234 | struct digital_data_exch *data_exch; |
235 | 235 | ||
236 | int atn_count; | ||
236 | int nack_count; | 237 | int nack_count; |
237 | 238 | ||
238 | struct sk_buff *saved_skb; | 239 | struct sk_buff *saved_skb; |