summaryrefslogtreecommitdiffstats
path: root/CREDITS
diff options
context:
space:
mode:
authorChristophe Ricard <christophe.ricard@gmail.com>2014-04-24 23:19:33 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2014-05-05 01:00:34 +0200
commitc97ffdbf51ec3f944e6661ecb16985d47c8073c7 (patch)
tree268023b014a7f74f84776729a3a28fb26848ea4f /CREDITS
parente1fb97b9256f383ed9553a1fc0b1576dfc88d582 (diff)
downloadblackbird-op-linux-c97ffdbf51ec3f944e6661ecb16985d47c8073c7.tar.gz
blackbird-op-linux-c97ffdbf51ec3f944e6661ecb16985d47c8073c7.zip
NFC: st21nfca: Improved i2c Rx data correctness check
A frame starts with ST21NFCA_SOF_EOF(0x7e) + 0x00. A frame ends with ST21NFCA_SOF_EOF(0x7e). It is possible that the i2c macrocell is stopped for other communication interfaces with highest priority(RF or SWP). This can be seen with some 0xFF data at the end of a received shdlc buffer. If this happen we need to discard the frame because the CLF will repeat it. In order to push accurate data to hci layer, we add the following fix: - Instead of looking for the first 0x7e in the frame, check that the last received byte is 0x7e. - Check that the first frame reception block start with start of frame(0x7e 0x00). If not, clear the buffer. - Check that the next frame reception block do not start with start of frame(0x7e). If so, clear the buffer. Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud