summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed NULL pointer error when trying to send LLCP REJECT frame.Arnaud Ferir2011-01-181-2/+5
| | | | | | | The sequence value may not be provided in some situations, when rejecting a connection oriented frame. Change-Id: I116179191f9a23072442cf9da7a4c4207128bd32
* Fixed parameters checking in LLCP.Arnaud Ferir2011-01-182-2/+11
| | | | | | Avoid NULL pointer dereferencing in some situations. Change-Id: I020f0a5342acdc49f7f3804e9341ed0fc0f307ee
* Fixed some build warnings.Arnaud Ferir2011-01-181-2/+1
| | | | Change-Id: I08e8dda5ae23ec251a5b53f71b0e87fb3ba7d02c
* Fixed memory handling in LLCP link layer.Arnaud Ferir2011-01-181-1/+9
| | | | | | | Check that internal allocated buffer is not NULL before deallocating it and make sure the pointer is resetted to NULL. Change-Id: I4212489c8661c7a8dff8ef352029100ec5ab157e
* Allow LLCP socket creation before link establishment.Arnaud Ferir2011-01-184-80/+201
| | | | | | | | | | | | | | | | | 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
* Call the LLCP send callback in error cases.Arnaud Ferir2011-01-182-0/+26
| | | | | | | 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
* Fixed wrong byte order in 3-byte L-format in NDEF TLV on T2TJan Brands2011-01-181-4/+4
| | | | Change-Id: I1bd1da26d0c27297e9db8dd41cb6c2f4b2ec806e
* Implement makeReadOnly() for dynamic T1T/T2T.Martijn Coenen2011-01-189-46/+1516
| | | | | | | | 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
* Implement IsoDep timeout handling (libNFC).Martijn Coenen2011-01-184-2/+29
| | | | | | | | | | | 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
* Event field ON/OFF management added in the libnfcdaniel_tomas2011-01-122-10/+32
| | | | Change-Id: Ieafb6ab9094d9dc4b7edfb1e3676fd9794d8af28
* Fix bugs related to SE+P2P co-exisitance.Nick Pelly2011-01-111-2/+17
| | | | | | Source: Patrice @ NXP Change-Id: I9437a2c2798ffe7ea34f3f18df097d0036310568
* Libnfc updated to just notify the JNI when a transaction event is detecteddaniel_tomas2011-01-051-1/+1
| | | | Change-Id: Id2991644e9a45a66172377d66b5dc3e99bbd6a39
* Actually set the lock bits for static T1T and T2T.Martijn Coenen2011-01-046-42/+198
| | | | Change-Id: I594e588fb7f0f8151e54ac872640bb8d3e19bfce
* Add support for makeLowLevelReadonly() in libnfc.Martijn Coenen2010-12-1614-20/+1093
| | | | | | | | 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
* Add support for connecting to different handles on the same tag.Martijn Coenen2010-12-163-0/+273
| | | | | | | This is needed for proper multi-protocol tag support. (Before this required a restart of the polling loop). Change-Id: If61da437cda40d82bdbacf5a01ea4c585c7a5be9
* Enable reading a connection-oriented socket even if remotely closed.Sylvain Fonteneau2010-12-132-1/+15
| | | | | | | 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
* Fixed typo in context restitution.Sylvain Fonteneau2010-12-131-1/+1
| | | | Change-Id: I4784722900b9da58719b7b38a1cd31cbac3ff147
* Do not clear LLCP listen callback when an incoming socket is detected.Sylvain Fonteneau2010-12-131-2/+0
| | | | | | This would prohibit detection of multiple incoming socket in a row. Change-Id: I9e3907a92b706de2da7642ccd92668b9868d1996
* Protect callbacks to crash in LLCP MAC layer if aborted by deactivate.Sylvain Fonteneau2010-12-131-64/+48
| | | | | | Also include code factorization. Change-Id: I7284348d3a8afcc2ebcbd86d1658e60a2cc38b10
* Fix missing send callback in error upon deactivation.Sylvain Fonteneau2010-12-132-3/+41
| | | | Change-Id: I2a857c4e02fcf8c0f655a6fa960466f5ac4f191e
* Report error from lower layer to transport layer in LLCP.Sylvain Fonteneau2010-12-131-8/+7
| | | | | | Makes sure to call callback in case of error and before deactivating. Change-Id: I40cf77a89edc01533684c9c68b1915dac983c59e
* Fix failing presence check after a mifare classic reconnect.Martijn Coenen2010-12-131-0/+1
| | | | Change-Id: I6f833fc6e32cd99496468306af8204f6aee87fa7
* Download feature added in the libnfcdaniel_Tomas2010-12-096-12/+3052
| | | | Change-Id: Idfed8c90453a0acc7fa632f62a1e20617b4ae7f6
* Fix T3T R/W state detectionJan Brands2010-12-071-1/+5
| | | | Change-Id: Ic77a9929111f310b689ac3aa8f90e60c151420e0
* NDEF tag R/W-R/O status functionality from BangaloreJan Brands2010-12-072-0/+52
| | | | | | Provides all the states as defined by the NFC-Forum. Change-Id: I369138404e679b49613a391a9487766160afd8e2
* Avoid multiple callbacks for a single LLCP operation.Sylvain Fonteneau2010-12-071-4/+7
| | | | Change-Id: Ifa17a3a05790fece3f5aee747b186f721c510b7f
* Fix to prevent any action on a LLCP socket while disconnecting.Sylvain Fonteneau2010-12-071-3/+3
| | | | | | | 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
* Fixed file headers.Martijn Coenen2010-12-062-26/+28
| | | | Change-Id: I253cb340782d47ab15c955f3a58a9e662fe86ae0
* Enable setting General Bytes to emptyJan Brands2010-12-052-2/+1
| | | | Change-Id: Id481b30731c1986f9d36f7d9af00be282683b6e1
* Updated with format functionality for DESFire EV1 (T4Tv2)Jan Brands2010-12-052-328/+636
| | | | Change-Id: Ia636ef43087dae7eb0faafc4a977f901756d38b3
* Fix for LLCP concurence access with ConfigureDiscovery, NDEF read/write and ↵daniel_Tomas2010-12-055-4/+55
| | | | | | Presence Check Change-Id: Ie6fc7e26dde98ece2738dcad26f020833b4c0e93
* Fix buffer display in LLCP receive callbackdaniel_Tomas2010-12-052-9/+12
| | | | Change-Id: I85a4235a4f13e02a61d2c07ca301e72e7b369c8b
* LLCP modification for concurence accessesdaniel_Tomas2010-12-054-5/+98
| | | | Change-Id: I428c58dfc2c791f87e0f5761f11bb59d26ad85b1
* Secure Element access implementationDaniel Tomas2010-12-051-0/+4
| | | | Change-Id: I5a34e5318d60d04cbb4f43bcba7a146c2ef9eed5
* Fix for presence check management after transceive faileddaniel_Tomas2010-12-051-0/+1
| | | | Change-Id: I4ee3109710de339d105bd3e2721114b62d883275
* Prevent sending data over LLCP until link is up.Sylvain Fonteneau2010-12-051-3/+8
| | | | Change-Id: I11e80e9778934e40e57c58dbc9f56f319d015f80
* Close all LLCP sockets when the link goes down.Sylvain Fonteneau2010-12-054-2/+73
| | | | | | | | 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
* Call the callback of any pending action in case of LLCP socket closure.Sylvain Fonteneau2010-12-052-17/+79
| | | | | | | This ensure the lib client not to be stuck waiting for a callback when the socket has been closed meanwhile. Change-Id: I9cdfa3c2cc75ee9451c3ad5b92eb338b5e68f53a
* Fixed combined T4Tv2 & T4Tv1 supportJan Brands2010-12-051-9/+3
| | | | Change-Id: I9d39a014aafa4464d022a0fd2776a23bbb4a766e
* This patch allows type 4 tag v2 ndef to be detected properly.Jan Brands2010-12-056-454/+688
| | | | | | Same as Change-Id: I414e7864bdc654c3b9e1b459832bb8e95ea9c51a Change-Id: I0a0119349419bb4f1031ab683e40dd3be7b26f5f
* Fixed failed authentication for MIFARE 7BUIDJan Brands2010-12-051-1/+1
| | | | | | | | 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
* Fix from the Bangalore team for long APDUsJan Brands2010-12-052-5/+5
| | | | Change-Id: Id251fcd72bcc91a3fd85ac26c15fd609ce9f5e4e
* Fixed support for bare-bones T3T tags without System CodesJan Brands2010-12-051-10/+1
| | | | Change-Id: Ic2165ea57c729af3a60217144c9a0015f6e3dcb4
* Fix detection of Fudan card incompatible to ISO18092Jan Brands2010-12-051-0/+11
| | | | Change-Id: I4d341d2b315972a3a69661b48d29388bdaa2793d
* Re-enable multi-protocol with improved MIFARE detectionJan Brands2010-12-051-3/+12
| | | | Change-Id: I45719cfb1db4d449895c0bb2c39d192ff57f059c
* Fixed invalid pointer reference in LLCP stack.Sylvain Fonteneau2010-12-051-4/+60
| | | | | | Use dynamic allocation and copy to avoid using invalid pointers. Change-Id: I19ff26776fdc42fb4d3bf519a6e742d76b45ded1
* Fixed status handling in LLCP connection-oriented sent callback.Sylvain Fonteneau2010-12-051-9/+10
| | | | | | | | 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
* HCI timer enabled to HW reset NFC when HCI command times out.Daniel Tomas2010-11-031-13/+2
| | | | | Change-Id: Iee39957227fcdc8e97b520d22032dc97915323f3 Signed-off-by: Nick Pelly <npelly@google.com>
* fixed ISO15693 collisionaferir2010-11-032-2/+16
| | | | Change-Id: Ic27ec9adbdffb064f03f567b160b05502def2444
* Fixed HAL context issue.Sylvain Fonteneau2010-11-033-3/+4
| | | | | | | | When disconnecting while an internal transceive was ongoing, the HAL context was corrupted. This has been fixed by adding a dedicated context for the disconnect operation. Change-Id: I279474f29164b3ab7d40cdd0e9b8f71f842774b0