summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-01-18Fixed parameters checking in LLCP.Arnaud Ferir
Avoid NULL pointer dereferencing in some situations. Change-Id: I020f0a5342acdc49f7f3804e9341ed0fc0f307ee
2011-01-18Fixed some build warnings.Arnaud Ferir
Change-Id: I08e8dda5ae23ec251a5b53f71b0e87fb3ba7d02c
2011-01-18Fixed memory handling in LLCP link layer.Arnaud Ferir
Check that internal allocated buffer is not NULL before deallocating it and make sure the pointer is resetted to NULL. Change-Id: I4212489c8661c7a8dff8ef352029100ec5ab157e
2011-01-18Allow LLCP socket creation before link establishment.Arnaud Ferir
This enables to register a server socket prior to LLCP link establishement and avoid any race condition between the local server and the remote client. The modification implies a LLCP socket API change (added the device handle parameter in all LLCP API that can lead to active data exchange). The LLCP socket internal structures are now initialized during LLCP link parameter configuration step instead of LLCP compliancy check to save socket state independently from peer detection. Also removed unused socket states and added some traces. Change-Id: I961c48af4ca9ace68d41b9569dc1038bb2bbdc71
2011-01-18Call the LLCP send callback in error cases.Arnaud Ferir
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
2011-01-18Fixed wrong byte order in 3-byte L-format in NDEF TLV on T2TJan Brands
Change-Id: I1bd1da26d0c27297e9db8dd41cb6c2f4b2ec806e
2011-01-18Implement makeReadOnly() for dynamic T1T/T2T.Martijn Coenen
The NFC Forum Type 1 Tag and Type 2 Tag specification allows for tags with a dynamic memory layout. Support for making tags with the dynamic layout readonly has been added in this patch. Change-Id: I5bc8912d80f448fdea95e1ee21631c0f186ad79a
2011-01-18Implement IsoDep timeout handling (libNFC).Martijn Coenen
Made the ISO XCHG timer (used for IsoDep transceive's) a configurable setting. When this timer triggers in the hardware, the transaction will be aborted and the connection to the tag is broken. Also made the HCI timer configurable. This timer serves as a software watchdog for any HCI transaction. Change-Id: I927c7755378f793899c6d262a2f23ab5dca3817b
2011-01-12Event field ON/OFF management added in the libnfcdaniel_tomas
Change-Id: Ieafb6ab9094d9dc4b7edfb1e3676fd9794d8af28
2011-01-11Fix bugs related to SE+P2P co-exisitance.Nick Pelly
Source: Patrice @ NXP Change-Id: I9437a2c2798ffe7ea34f3f18df097d0036310568
2011-01-05Libnfc updated to just notify the JNI when a transaction event is detecteddaniel_tomas
Change-Id: Id2991644e9a45a66172377d66b5dc3e99bbd6a39
2011-01-04Actually set the lock bits for static T1T and T2T.Martijn Coenen
Change-Id: I594e588fb7f0f8151e54ac872640bb8d3e19bfce
2010-12-16Add support for makeLowLevelReadonly() in libnfc.Martijn Coenen
Implemented for T1T and T2T. There's also added code for formatting Desfire EV1, but it will not be used by the current implementation (DesFIRE doesn't have NdefFormatable tech). Change-Id: Iec1b85b560fbf800291fd307b56ab84328737635
2010-12-16Add support for connecting to different handles on the same tag.Martijn Coenen
This is needed for proper multi-protocol tag support. (Before this required a restart of the polling loop). Change-Id: If61da437cda40d82bdbacf5a01ea4c585c7a5be9
2010-12-13Enable reading a connection-oriented socket even if remotely closed.Sylvain Fonteneau
The receive function was failing when trying to read the data present in the linear buffer after receiving a remote disconnection request (DISC). Change-Id: I48a2aa058e85e265ca53e61dcde281e47a6e187f
2010-12-13Fixed typo in context restitution.Sylvain Fonteneau
Change-Id: I4784722900b9da58719b7b38a1cd31cbac3ff147
2010-12-13Do not clear LLCP listen callback when an incoming socket is detected.Sylvain Fonteneau
This would prohibit detection of multiple incoming socket in a row. Change-Id: I9e3907a92b706de2da7642ccd92668b9868d1996
2010-12-13Protect callbacks to crash in LLCP MAC layer if aborted by deactivate.Sylvain Fonteneau
Also include code factorization. Change-Id: I7284348d3a8afcc2ebcbd86d1658e60a2cc38b10
2010-12-13Fix missing send callback in error upon deactivation.Sylvain Fonteneau
Change-Id: I2a857c4e02fcf8c0f655a6fa960466f5ac4f191e
2010-12-13Report error from lower layer to transport layer in LLCP.Sylvain Fonteneau
Makes sure to call callback in case of error and before deactivating. Change-Id: I40cf77a89edc01533684c9c68b1915dac983c59e
2010-12-13Fix failing presence check after a mifare classic reconnect.Martijn Coenen
Change-Id: I6f833fc6e32cd99496468306af8204f6aee87fa7
2010-12-09Download feature added in the libnfcdaniel_Tomas
Change-Id: Idfed8c90453a0acc7fa632f62a1e20617b4ae7f6
2010-12-09Enable P2P 106 for P2P without SMX.Nick Pelly
Change-Id: Ica5158d1851fe56a896b6a0d8d714d8aa9d6b029
2010-12-08Fix to increase the response timeout for the Secure Elementdaniel_Tomas
Change-Id: I150411fb826525ae30cbe36e2be9afb1f20deb19
2010-12-07Fix T3T R/W state detectionJan Brands
Change-Id: Ic77a9929111f310b689ac3aa8f90e60c151420e0
2010-12-07NDEF tag R/W-R/O status functionality from BangaloreJan Brands
Provides all the states as defined by the NFC-Forum. Change-Id: I369138404e679b49613a391a9487766160afd8e2
2010-12-07Avoid multiple callbacks for a single LLCP operation.Sylvain Fonteneau
Change-Id: Ifa17a3a05790fece3f5aee747b186f721c510b7f
2010-12-07Fix to prevent any action on a LLCP socket while disconnecting.Sylvain Fonteneau
Mark a socket as disconnecting as soon as the disconnect request is received instead of waiting for the DISC packet to be sent. Change-Id: I95330b7039c6fa741adc69ab1323852a60b7d49e
2010-12-06Fixed file headers.Martijn Coenen
Change-Id: I253cb340782d47ab15c955f3a58a9e662fe86ae0
2010-12-05Enable SMX and Disable P2P Target 106daniel_Tomas
Change-Id: I2bef50244d216d76f3f81df20e4f0b2cddea3d86
2010-12-05Enable setting General Bytes to emptyJan Brands
Change-Id: Id481b30731c1986f9d36f7d9af00be282683b6e1
2010-12-05Updated with format functionality for DESFire EV1 (T4Tv2)Jan Brands
Change-Id: Ia636ef43087dae7eb0faafc4a977f901756d38b3
2010-12-05Fix to increase the stability of the Init/Deint actiondaniel_Tomas
Change-Id: I89e08ab079a6c0a83cd5a128ecfee2026411af15
2010-12-05Fix for LLCP concurence access with ConfigureDiscovery, NDEF read/write and ↵daniel_Tomas
Presence Check Change-Id: Ie6fc7e26dde98ece2738dcad26f020833b4c0e93
2010-12-05Fix buffer display in LLCP receive callbackdaniel_Tomas
Change-Id: I85a4235a4f13e02a61d2c07ca301e72e7b369c8b
2010-12-05LLCP modification for concurence accessesdaniel_Tomas
Change-Id: I428c58dfc2c791f87e0f5761f11bb59d26ad85b1
2010-12-05Secure Element access implementationDaniel Tomas
Change-Id: I5a34e5318d60d04cbb4f43bcba7a146c2ef9eed5
2010-12-05Fix for presence check management after transceive faileddaniel_Tomas
Change-Id: I4ee3109710de339d105bd3e2721114b62d883275
2010-12-05Prevent sending data over LLCP until link is up.Sylvain Fonteneau
Change-Id: I11e80e9778934e40e57c58dbc9f56f319d015f80
2010-12-05Close all LLCP sockets when the link goes down.Sylvain Fonteneau
The LLCP link status callback is now handled first in LIB layer before being forwarded to the client. This is needed to enable the LIB layer to detect the link status change and close the sockets accordingly. Change-Id: I607aaebb4c0c8f2da09c81d4d43b4c705ebfcb13
2010-12-05Call the callback of any pending action in case of LLCP socket closure.Sylvain Fonteneau
This ensure the lib client not to be stuck waiting for a callback when the socket has been closed meanwhile. Change-Id: I9cdfa3c2cc75ee9451c3ad5b92eb338b5e68f53a
2010-12-05Fixed combined T4Tv2 & T4Tv1 supportJan Brands
Change-Id: I9d39a014aafa4464d022a0fd2776a23bbb4a766e
2010-12-05This patch allows type 4 tag v2 ndef to be detected properly.Jan Brands
Same as Change-Id: I414e7864bdc654c3b9e1b459832bb8e95ea9c51a Change-Id: I0a0119349419bb4f1031ab683e40dd3be7b26f5f
2010-12-05Fixed failed authentication for MIFARE 7BUIDJan Brands
New MIFARE Classic and MIFARE Plus SL1 with 7-byte UID need last 4 bytes of UID for authentication. The supplied index into the UID byte array was wrongly defined. Change-Id: I8cd0c26201a2fd26e8a8417a743e81f3c809e5c4
2010-12-05Fix from the Bangalore team for long APDUsJan Brands
Change-Id: Id251fcd72bcc91a3fd85ac26c15fd609ce9f5e4e
2010-12-05Fixed support for bare-bones T3T tags without System CodesJan Brands
Change-Id: Ic2165ea57c729af3a60217144c9a0015f6e3dcb4
2010-12-05 Fix detection of Fudan card incompatible to ISO18092Jan Brands
Change-Id: I4d341d2b315972a3a69661b48d29388bdaa2793d
2010-12-05Re-enable multi-protocol with improved MIFARE detectionJan Brands
Change-Id: I45719cfb1db4d449895c0bb2c39d192ff57f059c
2010-12-05Fixed invalid pointer reference in LLCP stack.Sylvain Fonteneau
Use dynamic allocation and copy to avoid using invalid pointers. Change-Id: I19ff26776fdc42fb4d3bf519a6e742d76b45ded1
2010-12-05Fixed status handling in LLCP connection-oriented sent callback.Sylvain Fonteneau
The same variable was shared for multiple usages and the status value was overwritten is some situations. One variable is now defined for each usage. Change-Id: I877cc8027a184dfe3b6d8d2832c73417f40c1ba7