ndef: Remove the cr record from Hs message
authorOlivier Guiter <olivier.guiter@linux.intel.com>
Mon, 29 Oct 2012 10:30:50 +0000 (11:30 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 29 Oct 2012 16:30:17 +0000 (17:30 +0100)
commit4d9b269473a8d64d9d2e02f0e703c10013f85bde
tree38decf4fac9826147142e47facc02d833d95c024
parent1d5d88bf065026ca7ffec927cef0558dc25c967a
ndef: Remove the cr record from Hs message

NFC forum specs says that cr record should not be found on Hs messages.

As near_ndef_prepare_handover_record() is used to build Hs and Hr,
we have to remove the cr record only for Hs. To handle this case (and also
other cases where e.g. there's no ac record), the message begin/end flags
routines must be more granular (separate MB and ME setting routines).
src/ndef.c