History log of /system/nfc/src/nfa/dm/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
75ec928cdd9e1e66c616578b8305be6b84dd602a 02-Jun-2017 Love Khanna <love.khanna@nxp.com> DTA support added for NFC Forum certification.

Bug: 63903843
Test: compiles.
Change-Id: I1ab62d0db29c7f9dd09828a3dac0494279cc0ab7
fa_dm_act.c
fa_dm_api.c
fa_dm_discover.c
fa_dm_main.c
027b764fb8a3f853d9a0713e611636cea8936655 10-Apr-2017 Love Khanna <love.khanna@nxp.com> NCI2.0 update LF_T3T_PARAMETERS of 18 byte.

As per NCI2.0 LF_T3T_PMM is a part of LF_T3T_IDENTIFIER.
Since it is required for each LF_T3T_IDENTIFIER entry,
It can be taken from application.

Test: Compiles.
Change-Id: If587ed094272967d3eff0722d4d80edc75be8534
(cherry picked from commit 53d98cc8b51a44d8c7f0a376acfd842c937df40a)
fa_dm_act.c
fa_dm_main.c
f22c975a6c605be9eb3b9e77af5ce56be28907b0 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
(cherry picked from commit 5e4b4d7eb1ce345c12131ca948f31e1b7b9e0256)
fa_dm_act.c
fa_dm_api.c
fa_dm_main.c
6c6e360bd24d846d6e928d657a9c69163e170fa1 04-Apr-2017 Love Khanna <love.khanna@nxp.com> Tag deselection in frame rf interface.

As per NCI 2.0 in Frame RF interface changing from POLL_ACTIVE to
SLEEP Mode Tag command is required to be sent by DH.

Bug: 63146248
Test: compiles.
Change-Id: I51244048f76be57dec07b8cf5eb3d9751bc8e454
(cherry picked from commit cdb435dff88ef4c9bd3a3c680d9c2b72dfd2b1a4)
fa_dm_discover.c
5d7a437aeda5444883ccdd3045fdb4e528a03799 04-Apr-2017 Love Khanna <love.khanna@nxp.com> RF Deactivation: new reason code added.

In case RF_DEACTIVATE_NTF deactivation reason is DH request failed due
to error, retry maximum 3 times before sending a deactivate with type
discovery.

Bug: 63146248
Test: compiles.
Change-Id: Ie88feef1fb95e734c1bd550ae3f7ec10c9ccb38b
(cherry picked from commit 13c476001290c544cad3f1c4bc71f8d79ca8b47f)
fa_dm_discover.c
bb4bc8b8f02db4aab697dc7e196a1614a3bbddb8 04-Apr-2017 Love Khanna <love.khanna@nxp.com> P2P active standardization as per NCI2.0

As per NCI2.0 P2P active poll A & F and P2P active listena & F has been
standardized to P2P Poll Active and P2P listen active.

But: 63146248
Test: compiles.
Change-Id: Ie742d2f6146e00578bc1ea0810886e47b1e9fbac
(cherry picked from commit 78eae6df5f22153002588ac5220a419958f3b70a)
fa_dm_act.c
fa_dm_cfg.c
fa_dm_discover.c
b56bc5290a71363b0ba877eb642239596a7e8f2d 28-Mar-2017 Love Khanna <love.khanna@nxp.com> ISO15693 standardized implementation in NCI2.0

T5T protocol is standardized based on ISO15693 in NCI2.0.Functionally,
working of both T5T and ISO15693 is same.

Bug: 63146248
Test: compiles, T5T tag read/write work ok.
Change-Id: I3636d8582fd2e05b3fb91504c751d9eb3051c4d4
(cherry picked from commit 57a3dfa388d16f35d4182782b3ee017164c933eb)
fa_dm_act.c
fa_dm_discover.c
fa_dm_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>
fa_dm_act.c
fa_dm_api.c
fa_dm_main.c
fa_dm_ndef.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>
fa_dm_act.c
fa_dm_api.c
fa_dm_cfg.c
fa_dm_discover.c
fa_dm_main.c
fa_dm_ndef.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>
fa_dm_act.c
fa_dm_api.c
fa_dm_cfg.c
fa_dm_discover.c
fa_dm_main.c
fa_dm_ndef.c
4182dab9b5de4222ffd4a539fa084cb2b56bc6a1 10-Jan-2017 Ruchi Kandoi <kandoiruchi@google.com> Remove exported api symbols and other windows related defines

Test: compiles
Change-Id: Ied99d7c80aa600091c105c3af478eee7af79f352
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
fa_dm_api.c
2e1facb937d8520c78746c2334bf55929de3706c 10-Jan-2017 Ruchi Kandoi <kandoiruchi@google.com> Remove Connection Handle utilties, since it's not used on Android.

Test: Compiles
Change-Id: I30943c4fd99a83e3c0fbe5af66a0773d4ec61f36
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
fa_dm_act.c
fa_dm_api.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>
fa_dm_act.c
fa_dm_api.c
fa_dm_main.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>
fa_dm_act.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>
fa_dm_act.c
fa_dm_api.c
fa_dm_cfg.c
fa_dm_discover.c
fa_dm_main.c
fa_dm_ndef.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>
fa_dm_act.c
fa_dm_api.c
fa_dm_cfg.c
fa_dm_discover.c
fa_dm_main.c
fa_dm_ndef.c
65ebec5a7e3be5d18414ac8f0dd3f5090b4ae3b4 06-Apr-2016 Jizhou Liao <Jizhou.Liao@nxp.com> Fix warnings in external/libnfc-nci/src.

Bug: 205930
fa_dm_main.c
4c888f85f62bb59ce8a3d268a61a98536e0dd36e 03-Feb-2016 Martijn Coenen <maco@google.com> Set RC=1 when only polling for T3T.

According to the NFC Forum Activity spec, controllers must:
1) Poll with RC=0 and SC=FFFF to find NFC-DEP targets
2) Poll with RC=1 and SC=FFFF to find T3T targets

Many controllers don't do this yet, and seem to be
activating NFC-DEP by default.
We can at least fix the scenario where we're not interested
in NFC-DEP, by setting RC=1 in that case. Otherwise, keep
the default of RC=0.

Change-Id: Icc27950c38bf0b0a10fc1325e85e4a526557b641
fa_dm_discover.c
fa_dm_main.c
ae2dabbe3237514bf7398333026840d36f458505 08-Jan-2016 Martijn Coenen <maco@google.com> Merge "Implementation of HCE for NFC-F."
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
fa_dm_act.c
fa_dm_cfg.c
fa_dm_discover.c
acf1ec0cfce2d61dcab8560cad5072fa30afeb82 30-Jun-2015 Jizhou Liao <Jizhou.Liao@nxp.com> Fix conflict vendor proprietary Protocol and Discovery technology definitions

A new configuration option is added.
Vendor should provide their own definition in libnfc-brcm.conf file.

Change-Id: I8204fbb97bcb59ecf7b450b701546646e1952a78
fa_dm_cfg.c
fa_dm_discover.c
2ef0896fb71d2a3bcde1fff34a8d24c2e74340c2 09-Jun-2015 Jizhou Liao <Jizhou.Liao@nxp.com> Add Peer-To-Peer priority mechanism

Most of NFC devices support card emulation now, there is a chance
that the remote NFC device is detected as a card not peer device.
This peer-to-peer priority mechanism will always try to establish
peer-to-peer connection than card emulation

Peer-To-Peer priority mechanism works only if NFCC is running in
bail out mode. The configuration option NFA_POLL_BAIL_OUT_MODE is to
define the mode of NFCC.

Change-Id: I45a099efa77fab132189ea92da97a90240cfba1d
fa_dm_act.c
fa_dm_cfg.c
fa_dm_discover.c
c979cdff3f1b4ca40e86ef3608d68d4572fd8160 03-Jun-2015 Jizhou Liao <Jizhou.Liao@nxp.com> T1T HR0 and HR1 parameters missing.

There should be RID command to get
HR0 and HR1 parameters. This patch adds RID
to fix this problem. (DO NOT MERGE)

Change-Id: I88d901ce204eb1bb8ba72702396f536282bfa65c
fa_dm_act.c
24d5f0d8d06d90e35e7f1977859c0f611847d329 03-Jun-2015 Jizhou Liao <Jizhou.Liao@nxp.com> Memory leak and NULL pointer check fixes.

Change-Id: Idf720890d5b0307d22407b3a28929b8a72d4404f
fa_dm_act.c
4fa41c72cb561579743db93db9e1e57845f60860 05-Jun-2015 Yoshinobu Ito <Yoshinobu.Ito@jp.sony.com> Implementation of HCE for NFC-F.

This impementation includes HCE(Host-based Card Emulation) for NFC-F
which emulates NFC Forum Type 3 Tag on a smartphone.

Signed-off-by: Daisuke Ito <DaisukeE.Ito@jp.sony.com>
Yoshinobu Ito <Yoshinobu.Ito@jp.sony.com>

Change-Id: I1618a7fba801e0705ff3cc078206a1446b3dd56d
fa_dm_act.c
fa_dm_cfg.c
fab6ab84257e6abee4686e699cb6f632fa9d0997 29-Jul-2014 Sherry Smith <sherrys@broadcom.com> Handle adjustment of routing table during power-off-sleep mode.

Stack preserves the changes of the routing table
during power-off-sleep mode. Stack sends the changes to
the controller when entering full-power mode.

Change-Id: Idf9591f57c496a4ad793562609ed3a03d4cb9f91
fa_dm_act.c
fa_dm_main.c
8adba7675549bb507514c4f602723aa7d8e43f67 31-Jan-2014 Sherry Smith <sherrys@broadcom.com> Work-around for Mifare Desfire tag.

When a Mifare Desfire tag is identified, perform RF-deactivate
to sleep, then RF-select ISO-DEP interface to re-activate the tag,
even the current interface is already ISO-DEP.

The above operation puts the tag in the right mode to
accept native Desfire commands, not just NFC Forum commands.

This patch fixes a problem where data from the tag is received by the stack,
but the stack does not emit NFA_DATA_EVT.

Change-Id: If347353cdd03902a2faf9bad404eece90e1e32c0
fa_dm_act.c
fa_dm_discover.c
855ae32a422fe508c56a9d33f4f65cf6bf77cd9e 20-Nov-2013 Prasad Karuppasamy <prasadk@broadcom.com> Whitelist configuration.

Stack adds fields in tNFA_HCI_CFG structure to allow configuration
of a whitelist of HCI hosts.

Change-Id: I4d113f493a8dd44a210addef03d331a7cbf61e1f
fa_dm_cfg.c
40e67c9ec7191cbda00cde97e4f988d1d5737762 16-Jan-2014 Sherry Smith <sherrys@broadcom.com> When adjusting routing table, wait for completion event.

When JNI calls NFA_EeUpdateNow() to adjust the routing table,
JNI shall wait for NFA_EE_LMP_UPDATED_EVT completion event.

Change-Id: I28f6185fa725c9de8cb94e60725b7b5410a2e37b
fa_dm_act.c
81ad4777853d75c3259ce5f71847866b4e41f358 15-Jan-2014 Sherry Smith <sherrys@broadcom.com> Allow NFA-EE API to be used to set up routing even if nfa_ee_max_ee_cfg is 0.

Change-Id: I327061a568a8910cb17714e194e1c50cb7869390
fa_dm_api.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
fa_dm_act.c
fa_dm_api.c
fa_dm_cfg.c
fa_dm_discover.c
e9629bad30a9f478b336ab46b8e6e02f7f87af46 31-Jan-2014 Evan Chu <evanchu@broadcom.com> Adjust copyright year to 2014.

No code change.

Change-Id: Id868ad0356f9b5a43c887de7a3b596bb86be9026
fa_dm_act.c
fa_dm_api.c
fa_dm_cfg.c
fa_dm_discover.c
fa_dm_main.c
fa_dm_ndef.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
fa_dm_discover.c
67aef6c6c6f6bc7b8364b97949e874b9dc7175bc 29-Aug-2013 Evan Chu <evanchu@broadcom.com> Stack supports enable/disable listen modes and pause/resume P2P.

New API's include:
NFA_EnableListening
NFA_DisableListening
NFA_PauseP2p
NFA_ResumeP2p

Bug: 10360259
Change-Id: I7759c17fe1f83c2af251431e1dc56116a9fc78fd
fa_dm_act.c
fa_dm_api.c
fa_dm_discover.c
fa_dm_main.c
09de1b298ad4237ba50018d28086c0430da8c23e 24-Aug-2013 Martijn Coenen <maco@google.com> Enable/Disable listen mode API.

Bug: 10360259
Change-Id: I57160e7073b9d625c470feff311f305dec16cb5e
fa_dm_act.c
fa_dm_api.c
fa_dm_discover.c
fa_dm_main.c
b4b1c46fa5346651a3554c83eb5005f942f1af0f 05-Aug-2013 Martijn Coenen <maco@google.com> Don't call into HAL for determining max num EE.

Until we figure out how to deal with HAL binary
compatibility.

Also, do init the EE subsystem even if no SEs
are present; we still want to use the EE subsystem
on the host.

Change-Id: I17aad42e75508e2d04f53107527bce5bfe099ffe
fa_dm_api.c
d23e0531b6835ab75b543dd51cfe5edec8edefe4 11-Jul-2013 Evan Chu <evanchu@broadcom.com> Allow HAL side to configure nfa_ee_max_ee_cfg.

Upgrade stack to allow JNI to control whether
to enable stack's secure element features.

Change-Id: Id4162d0a97a031fb1a0625f64faef90091282b3f
fa_dm_act.c
fa_dm_api.c
91ada91fa991b4df5372a19a2cf81f074b298712 21-Jun-2013 Evan Chu <evanchu@broadcom.com> Ability to adjust RF discovery frequency for each technology.

Stack adds ability to adjust RF discovery frequencies.

Change-Id: I3c9a843c83c3a86181e7c8726b95c9f6517d8706
fa_dm_cfg.c
fa_dm_discover.c
df5080d7feca9827fd0306471c54f52ecf185c22 14-Jun-2013 Evan Chu <evanchu@broadcom.com> Upgrade stack to NFA_MI_1.03.62.

.conf variable SPD_IGNORE_VERSION is removed. Stack always download
firmware if a difference is detected.

Change-Id: I2a5e21254e6c0df7829506c1c3c2f6ffa44c0048
fa_dm_act.c
fa_dm_discover.c
7c69b2723b60a59df4aaa58b13985b3483b291bf 14-May-2013 Evan Chu <evanchu@broadcom.com> Upgrade stack to NFA_MI_1.03.60.

Change-Id: Ifc970a5b68cc962e5fdfa9af11e54e569d25ef1b
fa_dm_act.c
fa_dm_api.c
fa_dm_discover.c
c95c79ccb65d82a65b960919077d5c359cf28ced 12-Apr-2013 Evan Chu <evanchu@broadcom.com> Upgrade to new stack NFA_MP_1.03.1

A tag from Korea is Mifare Ultralight C. When the stack performs
presence-check, the tag responds with NACK and enters HALT state.
This patch properly performs presence-check for this tag.

Change-Id: Ia19e6216628bd74e8367f21d90ac806751eacfda
fa_dm_discover.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
fa_dm_act.c
fa_dm_api.c
fa_dm_cfg.c
fa_dm_discover.c
fa_dm_main.c
fa_dm_ndef.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
fa_dm_act.c
fa_dm_discover.c
e9df6ba5a8fcccf306a80b1670b423be8fe7746a 13-Dec-2012 The Android Open Source Project <initial-contribution@android.com> Snapshot 7ddd630e136a035ba463c427285c5c3e9f199ee0

Change-Id: If08c7b905da667dd9e5110231e4592842b634006
fa_dm_act.c
fa_dm_api.c
fa_dm_cfg.c
fa_dm_discover.c
fa_dm_main.c
fa_dm_ndef.c