History log of /external/libnfc-nxp/src/phFriNfc_Llcp.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3cbab5882f6d89a52068a3fa72a7223971d6b7fd 06-Mar-2013 Martijn Coenen <maco@google.com> Make sure LLCP header fields are reset.

In some conditions these would persist
over a link tear-down, causing them to
be sent out the next time the link comes up.

Also, don't overwrite them if a send is
still in progress.

Change-Id: I19dec5d79ae4b25f41fb5e8a0514e565ceca7a91
/external/libnfc-nxp/src/phFriNfc_Llcp.c
65e86fce1fe9e3f9aff98861c5e1e9d9ba6df9d5 28-Feb-2013 Martijn Coenen <maco@google.com> Immediately bounce back SYMM packet when initiator.

On first establishment of the LLCP link, if we are
the initiator, we waited the full LTO before sending
the SYMM to the target. This will prevent the target
from communicating with us for 750ms! Old Android
implementations only connected LLCP on touch, but
newer ones will immediately connect LLCP.

To solve this, bounce the SYMM back immediately, to allow
the target to start sending as soon as it wants to.

Change-Id: I2fb09599798527f2e6f908b8ba362e0061120be2
/external/libnfc-nxp/src/phFriNfc_Llcp.c
6bd5058796097ae40ed41c283a69e7874f2e9db2 05-Feb-2012 Martijn Coenen <maco@google.com> Fix NFCSTATUS_BUSY responses after doing p2p.

LLCP state was not reset properly.

Bug: 5971895
Change-Id: I4fda6ef7c78ae2730359cf5c90d887d205e57799
/external/libnfc-nxp/src/phFriNfc_Llcp.c
5630038faf48c6c087270d55030dc07f332e4da2 13-Jan-2012 Martijn Coenen <maco@google.com> Prevent LLCP stack from deactiving twice.

Some parts of the code reset the state to an operation state,
even if the link has already been shutdown. This allowed for a second
deactivation callback, causing a crash higher up in the stack.

Bug: 5765077
Change-Id: I2f2ac720756353d45d82634d27a3dd9acecae43d
/external/libnfc-nxp/src/phFriNfc_Llcp.c
979c4c6363f8d0bc42770884ec79f022fdfb8de0 27-Jul-2011 Martijn Coenen <maco@google.com> Merge "Don't wait for timeout to send SYMM PDU's."
54b847c7f7a5bc2e36ebe877ce832cdfefabc733 27-Jul-2011 Martijn Coenen <maco@google.com> Don't wait for timeout to send SYMM PDU's.

The LLCP stack was holding onto the "I'm allowed to send" token
for the full link time-out, even if there was nothing to send. This
caused very bad round-trip delays. This fix just gives the token
back immediately if there's nothing to send.

Change-Id: Ib7bf87bd5fada2b682d28c9502b5ef010cd39815
/external/libnfc-nxp/src/phFriNfc_Llcp.c
57d24648f73cfface7409e664fe56d38f38636df 26-Jul-2011 Jeff Hamilton <jham@android.com> Add the ability to enable LLCP logging.

Change-Id: I94f16770d1803f89370df5a798a6c76670581a63
/external/libnfc-nxp/src/phFriNfc_Llcp.c
45101265f65461385bd7c81db0bfc84b334df8e0 26-Jul-2011 Martijn Coenen <maco@google.com> Deal with LLCP send errors properly (part 1).

Send failures on LLCP sockets were not dealt with at all - the transport
was just left in a state where it thought there was a pending send
and a pending callback. Before we typically only did one send and
it didn't bite us so much, but now with multiple sockets we run
into this frequently.

This really just fixes part of the problem - we should also look
if state rollbacks are necessary, as those are not done either
on send failures.

Change-Id: I484ca598e043ead835251aedaabe47d3a1da7a8f
/external/libnfc-nxp/src/phFriNfc_Llcp.c
34ff48f6cd6595a899e05fbd56f4c84891840d3f 27-Jun-2011 Nick Pelly <npelly@google.com> libnfc spring cleaning

o Fix most libnfc warnings, from 360 to 18
o Make DAL_DEBUG much less verbose and more useful
o Clean up Android.mk

Done with minimal textual diff to minimize merge conflicts.

Change-Id: I918645500723ff7bb092ad9959628fcabac45bec
/external/libnfc-nxp/src/phFriNfc_Llcp.c
46dbed4e11700226e9b43ca17e5ad6f3d192bf63 04-Apr-2011 Sylvain Fonteneau <sylvain.fonteneau@trusted-logic.com> Ignore unreadable TLVs during LLCP activation and CONNECT/CC.

The LLCP specification defines that if a TLV cannot be interpreted,
it shall be ignored rather than generating an error.

This patch removed all error reporting on TLV interpretation. The
only error that can still happen is length inconsistency in the
whole TLV array buffer.

Change-Id: Ibf289fceb2283bfddcdc0ddee9e687ece3e90887
/external/libnfc-nxp/src/phFriNfc_Llcp.c
b7e67c8dbd4aa5892815bfed4e7ff934cf49b904 25-Mar-2011 Sylvain Fonteneau <sylvain.fonteneau@trusted-logic.com> Handle correctly LLCP aggregated frames.

The parsing algorithm for AGF frames has been fixed. It was previously
only working if aggregated frames were 4-bytes long.

The current stack only support mandatory de-aggregation. It does not
send aggregated frames, so there won't be interop issue with previous
versions.

This fix prevents reading erroneous de-aggregated frames and rejecting
them using FRMR when communicating with an LLCP implementation
using aggregation mechanism.

Change-Id: Ia5728496a2917b6a57f478cc51dc0aaa0fcc165a
/external/libnfc-nxp/src/phFriNfc_Llcp.c
d9d57394761c70786f5058f82e7528bfaf1807a0 05-Jan-2011 Arnaud Ferir <arnaud.ferir@trusted-logic.com> Fixed some build warnings.

Change-Id: I08e8dda5ae23ec251a5b53f71b0e87fb3ba7d02c
/external/libnfc-nxp/src/phFriNfc_Llcp.c
40cdab11e00d801c1b9acfdcfe53455059c1b557 05-Jan-2011 Arnaud Ferir <arnaud.ferir@trusted-logic.com> Fixed memory handling in LLCP link layer.

Check that internal allocated buffer is not NULL before deallocating
it and make sure the pointer is resetted to NULL.

Change-Id: I4212489c8661c7a8dff8ef352029100ec5ab157e
/external/libnfc-nxp/src/phFriNfc_Llcp.c
1ec4ace9cd3079abd7c0b30d0976591c8c0f441e 15-Dec-2010 Arnaud Ferir <arnaud.ferir@trusted-logic.com> Call the LLCP send callback in error cases.

This avoids an application to be stuck in a send request while the
LLCP link has been lost (i.e. remote peer lost).

Change-Id: I74982d497c410ae4bdb466afac013efc9eb17b03
/external/libnfc-nxp/src/phFriNfc_Llcp.c
35a9f321a9cb5db0e65b9579d11bee2ac9bb1c54 09-Dec-2010 Sylvain Fonteneau <sylvain.fonteneau@trusted-logic.com> Fix missing send callback in error upon deactivation.

Change-Id: I2a857c4e02fcf8c0f655a6fa960466f5ac4f191e
/external/libnfc-nxp/src/phFriNfc_Llcp.c
28ab3385d05d10437c6b1f0168bab6ed71bf4bfd 09-Dec-2010 Sylvain Fonteneau <sylvain.fonteneau@trusted-logic.com> Report error from lower layer to transport layer in LLCP.

Makes sure to call callback in case of error and before deactivating.

Change-Id: I40cf77a89edc01533684c9c68b1915dac983c59e
/external/libnfc-nxp/src/phFriNfc_Llcp.c
bf52196cdecd0decc2f8deabb19bf5877794bc31 19-Nov-2010 daniel_Tomas <daniel.tomas@trusted-logic.com> Fix buffer display in LLCP receive callback

Change-Id: I85a4235a4f13e02a61d2c07ca301e72e7b369c8b
/external/libnfc-nxp/src/phFriNfc_Llcp.c
1927b9d35c5efe26676c1dae78e3d1ab906f7586 29-Nov-2010 Sylvain Fonteneau <sylvain.fonteneau@trusted-logic.com> Prevent sending data over LLCP until link is up.

Change-Id: I11e80e9778934e40e57c58dbc9f56f319d015f80
/external/libnfc-nxp/src/phFriNfc_Llcp.c
f3fc813f66fba3a24ca96007507073c045e17c4b 23-Nov-2010 Sylvain Fonteneau <sylvain.fonteneau@trusted-logic.com> Fixed invalid pointer reference in LLCP stack.

Use dynamic allocation and copy to avoid using invalid pointers.

Change-Id: I19ff26776fdc42fb4d3bf519a6e742d76b45ded1
/external/libnfc-nxp/src/phFriNfc_Llcp.c
5d9927ba30ba449badb9f6df0fbeb4d6aedc6e2a 23-Sep-2010 Nick Pelly <npelly@google.com> Initial libnfc checkin

Source: Trusted_NFC_Device_Host_AA03.01e02_google.zip code drop (23-Sep-2010)

Change-Id: Ie47f18423f949a8d3e0815d13f55c814312add24
Signed-off-by: Nick Pelly <npelly@google.com>
/external/libnfc-nxp/src/phFriNfc_Llcp.c