NFC: digital: Handle multiple SENSF_REQ frames
authorMark A. Greer <mgreer@animalcreek.com>
Wed, 23 Apr 2014 18:00:56 +0000 (11:00 -0700)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 19 May 2014 21:52:40 +0000 (23:52 +0200)
commit4b8b6267bed9261c5c2f52e6b1ff258cd9305ad2
treef374f1917387a773def8ddc78c3b8ccc124ee121
parent96e829b433056d8325916631dc370a4ba42bdaf8
NFC: digital: Handle multiple SENSF_REQ frames

According to section 5.15.1.3 of the NFC Activity
Specification, multiple SENSF_REQ commands can be
received by a target before it receives an ATR_REQ
command.  To handle this, add a routine that checks
whether a SENSF_REQ or ATR_REQ has been recieved.
If its a SENSF_REQ, respond appropriately and
continue waiting for a ATR_REQ.  If its an ATR_REQ,
handle it as before.

CC: 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>
net/nfc/digital_technology.c