]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
NFC: st21nfca: Fix st21nfca_hci_remove_len_crc tail room handling
authorChristophe Ricard <christophe.ricard@gmail.com>
Thu, 24 Apr 2014 21:19:31 +0000 (23:19 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 4 May 2014 22:15:26 +0000 (00:15 +0200)
commite1fb97b9256f383ed9553a1fc0b1576dfc88d582
treedca71a5de67cfb2aa92d0bad7cad900e9c67830f
parent3096e25a3e40b73afd59e46f3bf8d84f919992a1
NFC: st21nfca: Fix st21nfca_hci_remove_len_crc tail room handling

There is no byte stuffing when data are stored in skb.
TAILROOM is 2 byte crc + 1 byte eof.

st21nfca_hci_remove_len_crc was doing an incorrect operation on
the TAILROOM data.
If shdlc timer T2 is triggered, it will request to send the same data.
Before every hci data was lost after st21nfca_hci_remove_len_crc.

Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/st21nfca/i2c.c