History log of /system/nfc/src/nfc/nfc/nfc_main.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a68fa7b601a0a5ff3b02834dca86b931ae1fa025 12-Jul-2017 Ruchi Kandoi <kandoiruchi@google.com> Prevent stack overflow for extension inferfaces.

Test: device boots with no crashes
Bug: 63538553
Change-Id: Id06d121aaa5f4d255ab954b2129dff0c8534b84a
/system/nfc/src/nfc/nfc/nfc_main.c
5e4b4d7eb1ce345c12131ca948f31e1b7b9e0256 14-Apr-2017 Love Khanna <love.khanna@nxp.com> NCI2.0 Added extended power state for routing.

The Power State includes 3 Sub-States (1, 2 and 3) that are applicable only
when the Device Host is in Switched On State.

Sub-States are using the following mappings:
Switched On State: Screen is on and device is unlocked
Switched On Sub-State1: Screen is off and device is unlocked
Switched On Sub-State2: Screen is on and device is locked
Switched On Sub-State3: Screen is off and device is locked

Test: Compiles.

Change-Id: If0aaa0da64e2780c777299edddded0e07727ddea
/system/nfc/src/nfc/nfc/nfc_main.c
f928d73c8c23ab10ee3ad794094da3e52c730967 06-Apr-2017 Love Khanna <love.khanna@nxp.com> NFC init response and discovery map command updated.

For NCI2.0 CORE_INIT_RSP has additional parameters which have to be parsed.
The rf interface list is updated and rf interfaces may have additional
extensions.

Test: complies.

Change-Id: I4a5d6cb9e708525fef179e93570a49f0b8e34d34
/system/nfc/src/nfc/nfc/nfc_main.c
d09d4bf1d5335cba9858a1e526ed095dcdb76676 06-Apr-2017 Love Khanna <love.khanna@nxp.com> Add ISO-DEP presence check nak command in NCI2.0

when T4T tag is detected, T4T NAK command is sent for presence check.
The response is sent which indicates command is sent successfully.
When the ntf is received, if card is present in field the status is
NFA_STATUS_Ok otherwise the status is NFA_STATUS_FAILED.
It can be configured from libnfc-brcm file.

Test: compiles.

Change-Id: I58abff57a5a2514c78046f4a736246568382099f
/system/nfc/src/nfc/nfc/nfc_main.c
3f64b002fc7bea3004fcce63a1a503f67d69ba9b 28-Mar-2017 Ruchi Kandoi <kandoiruchi@google.com> NCI2.0: Add init and core reset functionality for NCI 2.0

The commands for CORE_INIT and CORE_RESET have changed. The stack will
try and initialize the NFCC assuming it supports NCI 2.0, if in case the
responses aren't as per specification, it will try with NCI 1.0
commands.

Test: Enabling sequence with NCI 2.0 works.
Change-Id: I5ef19757590173a1bd33b2d67eeca40131136d3b
/system/nfc/src/nfc/nfc/nfc_main.c
0ca4993b6e39b48b3ab7821e9f7c5b8bc95c1e41 04-Feb-2017 Ruchi Kandoi <kandoiruchi@google.com> Remove NFA_INCLUDED and NFC_INCLUDED directives

Test: Compiles
Change-Id: Ibe2de69a79b850ada456fde57386aa1213f45921
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
/system/nfc/src/nfc/nfc/nfc_main.c
0c515ae1d2edf9202878a7ac7bcbf195333643e5 31-Jan-2017 Ruchi Kandoi <kandoiruchi@google.com> Readability fix: if statement assignments

Coccinelle-assisted:
@@
variable i;
expression E;
statement S1, S2;
@@

+ i = E;
if (
(
- (i = E)
+ i
!= ...
|
- (i = E)
+ i
== ...
|
- (i = E)
+ i
< ...
|
- (i = E)
+ i
> ...
|
- (i = E)
+ i
<= ...
|
- (i = E)
+ i
>= ...
|
- (i = E)
+ i
)
) S1 else S2

spatch --sp-file if_assignment.cocci --in-place --dir .
find * | grep "\.[ch]" | xargs clang-format --style=file -i

Test: Compiles
Change-Id: Ifb9cde410ed84e0ab8012432ad0ec30df17d1786
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
/system/nfc/src/nfc/nfc/nfc_main.c
6fca02d5010de7bd31d83b853c32138021da5f29 30-Jan-2017 Ruchi Kandoi <kandoiruchi@google.com> Apply clang-format

find * | grep "\.[ch]" | xargs clang-format --style=file -i

Test: compiles
Change-Id: Id9b790d9685f7ba5ba1bcec1149619b63c2e679a
signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
/system/nfc/src/nfc/nfc/nfc_main.c
552f2b745deddd35d9b75da9c9c09bd2f3f573a8 29-Jan-2017 Ruchi Kandoi <kandoiruchi@google.com> Fix comments which aren't accurately fixed by clang-format

Test: compiles
Change-Id: Ia3e7a4007b096d57ae082f8474649b17144a2a86
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
/system/nfc/src/nfc/nfc/nfc_main.c
0a73688fae255d6c4730747caefaa134bd29b1d6 10-Jan-2017 Ruchi Kandoi <kandoiruchi@google.com> Use NFC_HDR/_SIZE instead of BT_HDR/_SIZE

Test: Compiles
Change-Id: Icd64463dd10c1af9642d2d0bb3d8fa3ebe1bdd7e
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
/system/nfc/src/nfc/nfc/nfc_main.c
b5e6404e69b179c730bd8370aada940a47dfad20 06-Jan-2017 Ruchi Kandoi <kandoiruchi@google.com> Remove hcidefs.h

Test: compiles
Change-Id: I709ad196b07b0105525960637fa1fd0ec14d286d
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
/system/nfc/src/nfc/nfc/nfc_main.c
4a179646f6d5567830a0383050aee7610a0222a6 04-Jan-2017 Ruchi Kandoi <kandoiruchi@google.com> Replace TRUE/FALSE directives with standard true/false

@@
expression E;
@@

(
-E = TRUE
+E = true
|
-E == TRUE
+E == true
|
-E != TRUE
+E != true
|
-E ? TRUE : FALSE
+E ? true : false
)

@@
@@

(
-return TRUE;
+return true;
)

@@
identifier fn;
@@

fn (...,
-TRUE,
+true,
...)

type T1;
identifier i1;
@@

T1 i1 = {
- TRUE,
+ true,
...};

Test: Compiles
Change-Id: I633924fe6bc6a4c3f50634c5e1c6d75fb1d3258f
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
/system/nfc/src/nfc/nfc/nfc_main.c
c2c337f02f62a0c2763bc36a8cbb3126dd443595 13-Dec-2016 Ruchi Kandoi <kandoiruchi@google.com> Removes TIMER_PARAM_TYPE and replaces it with uintptr_t

Since these variables essentially store pointers, the type should be
uintptr_t to ensure compatibility with both 32-bit and 64-bit platforms.

Test: Compiles
Change-Id: Ibbb6c998660e308ca61cd86474a0fab771ebb039
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
/system/nfc/src/nfc/nfc/nfc_main.c
512ee63c7cc8feb016863e507a5d33cd0f4242bf 03-Jan-2017 Ruchi Kandoi <kandoiruchi@google.com> Changes data types to standard types.

platform/system/bt/tools/scripts/change_types.sh was used to convert:
UINT8->uint8_t
UINT32->uint32_t
UINT16->uint16_t
INT8->int8_t
INT32->int32_t
INT16->int16_t

Test: Compiles
Change-Id: I7fce2cbff75a2087db46cda7527437a46a627c46
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
/system/nfc/src/nfc/nfc/nfc_main.c
a4d43ca913ec4ffaa9df95ad2ce820498f7a52b9 18-Oct-2016 Andre Eisenbach <eisenbach@google.com> Remove DYNAMIC_MEMORY_* compile flags

Unused and adding unecessary complexity. Also step 1 in removing GKI*.

Test: compiles
Change-Id: I338ce3041f5c928924a9dcc8ad4e73bc1c914163
/system/nfc/src/nfc/nfc/nfc_main.c
5cbce03e4a73a6950873b1a2b55cd09997b67a96 17-Jun-2015 Jizhou Liao <Jizhou.Liao@nxp.com> Add Mifare Classic support.

This patch is to support NXP Mifare Classic tag.

Bug: 23618022
Change-Id: I36009fdf3614043a32beca4aaf2f320ba17fb40c
/system/nfc/src/nfc/nfc/nfc_main.c
a24be4f06674b2707b57904deaa0dff5a95823bd 13-Nov-2013 Evan Chu <evanchu@broadcom.com> Upgrade stack to NFA_PI_1.03.66+

Take code from NFCA_MI_430.10.00.07.
Additional changes include:
* Adjust copyright.
* Clean up stack and HAL diagnostic tracing.
* Fix ce_t4t_data_cback() in src/nfc/tags/ce_t4t.c in order to let HCE payment to work.
* Reduce compilation warnings.

Change-Id: I7b174229029d4a4955ff7750623e78c9a8c856f6
/system/nfc/src/nfc/nfc/nfc_main.c
e9629bad30a9f478b336ab46b8e6e02f7f87af46 31-Jan-2014 Evan Chu <evanchu@broadcom.com> Adjust copyright year to 2014.

No code change.

Change-Id: Id868ad0356f9b5a43c887de7a3b596bb86be9026
/system/nfc/src/nfc/nfc/nfc_main.c
1ba9dcccf5b342bd74a2f8213b7ed3be78b9db44 10-Sep-2013 Evan Chu <evanchu@broadcom.com> Fix memory leak.

Found when using reader mode APIs: control is accidentally
granted to the HAL, causing us to leak command buffers.

Also:
- Prevent multiple calls to NFC_Deactivate()
- Proper handling of congestion in P2P

Bug: 10360259
Change-Id: Ia52a948f46f8668cde5b135bd073f175cdd434f5
/system/nfc/src/nfc/nfc/nfc_main.c
5c65c3a0f42e174e47fecd4e569606003217ff4e 27-Mar-2013 Martijn Coenen <maco@google.com> Latest NFC stack-drop from Broadcom.

Patches provided by Evan Chu <evanchu@broadcom.com> and
Paul Chaisson <pchaisson@broadcom.com>.

Most important changes:
- Support for BCM20793B4 and BCM20793B5 revisions in the HAL.
- Remove connection handover and SNEP implementations, since
we already have them in java-land.
- Fix issue where the NFCC is not woken for HCI writes.
- Remove a lot of duplicated code in the HAL.
- Various small fixes.

Change-Id: I00f7457fe7ec23602071532a15bf2be9d7706b37
/system/nfc/src/nfc/nfc/nfc_main.c
85b7e84f6cc61506c94e98844cac9ce50bbbe9dc 18-Jan-2013 Evan Chu <evanchu@broadcom.com> Do not require getSystemInfo() for ISO15693 tags.

ISO15693 tags that do not respond to the
getSystemInfo() command should still be reported
to the upper stack, as getSystemInfo is not mandatory.

This also adds some code to deal with specifc ST
tag configurations, that require the prot ext bit
to be set when executing some commands.

Change-Id: I64dd9234750ea503ba5b14b2a22a46c106f61f76
/system/nfc/src/nfc/nfc/nfc_main.c
e9df6ba5a8fcccf306a80b1670b423be8fe7746a 13-Dec-2012 The Android Open Source Project <initial-contribution@android.com> Snapshot 7ddd630e136a035ba463c427285c5c3e9f199ee0

Change-Id: If08c7b905da667dd9e5110231e4592842b634006
/system/nfc/src/nfc/nfc/nfc_main.c