diff options
author | Mark A. Greer <mgreer@animalcreek.com> | 2014-09-23 16:38:08 -0700 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2014-11-28 12:38:59 +0100 |
commit | b08147cbc4d1b63d65f6c7c522fed9ef3212bc52 (patch) | |
tree | 4e58372b062ffba93328d78a4f84e7cc8c2abd52 /kernel | |
parent | 485fdc9bb6f81d68aa30b399b9bc33cf27d65ba4 (diff) | |
download | op-kernel-dev-b08147cbc4d1b63d65f6c7c522fed9ef3212bc52.zip op-kernel-dev-b08147cbc4d1b63d65f6c7c522fed9ef3212bc52.tar.gz |
NFC: digital: Implement NFC-DEP max payload lengths
The maximum payload for NFC-DEP exchanges (i.e., the
number of bytes between SoD and EoD) is negotiated
using the ATR_REQ, ATR_RES, and PSL_REQ commands.
The valid maximum lengths are 64, 128, 192, and 254
bytes.
Currently, NFC-DEP code assumes that both sides are
always using 254 byte maximums and ignores attempts
by the peer to change it. Instead, implement the
negotiation code, enforce the local maximum when
receiving data from the peer, and don't send payloads
that exceed the remote's maximum. The default local
maximum is 254 bytes.
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 'kernel')
0 files changed, 0 insertions, 0 deletions