NFC: digital: Fix RTOX supervisor PDU handling
authorThierry Escande <thierry.escande@collabora.com>
Fri, 8 Jul 2016 13:52:46 +0000 (15:52 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 11 Jul 2016 00:02:03 +0000 (02:02 +0200)
commitd85a301c26621d3466956dc477c32c20c15a52ee
tree9cf96aa5fbd857d44e49a8e2abc79a3e3af2f70a
parent1a09c56f545c8ff8d338a38c7c40d79f4165a94c
NFC: digital: Fix RTOX supervisor PDU handling

When the target needs more time to process the received PDU, it sends
Response Timeout Extension (RTOX) PDU.

When the initiator receives a RTOX PDU, it must reply with a RTOX PDU
and extends the current rwt value with the formula:
 rwt_int = rwt * rtox

This patch takes care of the rtox value passed by the target in the RTOX
PDU and extends the timeout for the next response accordingly.

Signed-off-by: Thierry Escande <thierry.escande@collabora.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/digital_dep.c