History log of /system/nfc/src/nfc/nci/nci_hmsgs.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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/nci/nci_hmsgs.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/nci/nci_hmsgs.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/nci/nci_hmsgs.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/nci/nci_hmsgs.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/nci/nci_hmsgs.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/nci/nci_hmsgs.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/nci/nci_hmsgs.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/nci/nci_hmsgs.c
303fec1d79b7ac30a09713e5db9fff299f7227fb 14-Dec-2016 Ruchi Kandoi <kandoiruchi@google.com> nfc: Remove defined(MACRO) and define undefined macros

Test: compiles
Change-Id: I5ea9a8f38cfc41e8a71eeb1c11f96755474b4121
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
/system/nfc/src/nfc/nci/nci_hmsgs.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/nci/nci_hmsgs.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/nci/nci_hmsgs.c
7b9f7f66cd23c68558a36c80b8fe1b24e6616ee2 13-Dec-2013 Sherry Smith <sherrys@broadcom.com> Enhance nfa-ee to handle bigger routing table.

Change-Id: I7affdce1d091863c377de07eed60b4434c4c83ff
/system/nfc/src/nfc/nci/nci_hmsgs.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/nci/nci_hmsgs.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/nci/nci_hmsgs.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/nci/nci_hmsgs.c
e9df6ba5a8fcccf306a80b1670b423be8fe7746a 13-Dec-2012 The Android Open Source Project <initial-contribution@android.com> Snapshot 7ddd630e136a035ba463c427285c5c3e9f199ee0

Change-Id: If08c7b905da667dd9e5110231e4592842b634006
/system/nfc/src/nfc/nci/nci_hmsgs.c