-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
surya: Add libnfc-nci.conf to vendor-overlay
fixed Mifare Classic reading with LEGACY_MIFARE_READER=1
- Loading branch information
Showing
2 changed files
with
110 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
###################### Start of libnfc-common.conf ####################### | ||
|
||
############################################################################### | ||
# Application options | ||
APPL_TRACE_LEVEL=0xFF | ||
PROTOCOL_TRACE_LEVEL=0xFFFFFFFF | ||
|
||
NFC_DEBUG_ENABLED=0x01 | ||
|
||
############################################################################### | ||
# File used for NFA storage | ||
NFA_STORAGE="/data/nfc" | ||
|
||
############################################################################### | ||
# Force UICC to only listen to the following technology(s). | ||
# The bits are defined as tNFA_TECHNOLOGY_MASK in nfa_api.h. | ||
# Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_B | NFA_TECHNOLOGY_MASK_F | ||
UICC_LISTEN_TECH_MASK=0x07 | ||
|
||
############################################################################### | ||
# Configure the default Destination Gate used by HCI (the default is 4, which | ||
# is the ETSI loopback gate. | ||
NFA_HCI_DEFAULT_DEST_GATE=0xF0 | ||
|
||
############################################################################### | ||
# Forcing HOST to listen for a selected protocol | ||
# 0x00 : Disable Host Listen | ||
# 0x01 : Enable Host to Listen (A) for ISO-DEP tech A | ||
# 0x02 : Enable Host to Listen (B) for ISO-DEP tech B | ||
# 0x04 : Enable Host to Listen (F) for T3T Tag Type Protocol tech F | ||
# 0x07 : Enable Host to Listen (ABF)for ISO-DEP tech AB & T3T Tag Type Protocol tech F | ||
HOST_LISTEN_TECH_MASK=0x07 | ||
|
||
############################################################################### | ||
# Enabling/Disabling Forward functionality | ||
# Disable 0x00 | ||
# Enable 0x01 | ||
NXP_FWD_FUNCTIONALITY_ENABLE=0x01 | ||
|
||
############################################################################### | ||
# AID for Empty Select command | ||
# If specified, this AID will be substituted when an Empty SELECT command is | ||
# detected. The first byte is the length of the AID. Maximum length is 16. | ||
AID_FOR_EMPTY_SELECT={08:A0:00:00:01:51:00:00:00} | ||
|
||
############################################################################### | ||
# When screen is turned off, specify the desired power state of the controller. | ||
# 0: power-off-sleep state; DEFAULT | ||
# 1: full-power state | ||
# 2: screen-off card-emulation (CE4/CE3/CE1 modes are used) | ||
SCREEN_OFF_POWER_STATE=1 | ||
|
||
############################################################################### | ||
# Default poll duration (in ms) | ||
# The defualt is 500ms if not set (see nfc_target.h) | ||
#NFA_DM_DISC_DURATION_POLL=333 | ||
|
||
############################################################################### | ||
# Force tag polling for the following technology(s). | ||
# The bits are defined as tNFA_TECHNOLOGY_MASK in nfa_api.h. | ||
# Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_B | | ||
# NFA_TECHNOLOGY_MASK_F | NFA_TECHNOLOGY_MASK_ISO15693 | | ||
# NFA_TECHNOLOGY_MASK_B_PRIME | NFA_TECHNOLOGY_MASK_KOVIO | | ||
# NFA_TECHNOLOGY_MASK_A_ACTIVE | NFA_TECHNOLOGY_MASK_F_ACTIVE. | ||
# | ||
# Notable bits: | ||
# NFA_TECHNOLOGY_MASK_A 0x01 /* NFC Technology A */ | ||
# NFA_TECHNOLOGY_MASK_B 0x02 /* NFC Technology B */ | ||
# NFA_TECHNOLOGY_MASK_F 0x04 /* NFC Technology F */ | ||
# NFA_TECHNOLOGY_MASK_ISO15693 0x08 /* Proprietary Technology */ | ||
# NFA_TECHNOLOGY_MASK_KOVIO 0x20 /* Proprietary Technology */ | ||
# NFA_TECHNOLOGY_MASK_A_ACTIVE 0x40 /* NFC Technology A active mode */ | ||
# NFA_TECHNOLOGY_MASK_F_ACTIVE 0x80 /* NFC Technology F active mode */ | ||
POLLING_TECH_MASK=0xEF | ||
|
||
############################################################################### | ||
# Force P2P to only listen for the following technology(s). | ||
# The bits are defined as tNFA_TECHNOLOGY_MASK in nfa_api.h. | ||
# Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_F | | ||
# NFA_TECHNOLOGY_MASK_A_ACTIVE | NFA_TECHNOLOGY_MASK_F_ACTIVE | ||
# | ||
# Notable bits: | ||
# NFA_TECHNOLOGY_MASK_A 0x01 /* NFC Technology A */ | ||
# NFA_TECHNOLOGY_MASK_F 0x04 /* NFC Technology F */ | ||
# NFA_TECHNOLOGY_MASK_A_ACTIVE 0x40 /* NFC Technology A active mode */ | ||
# NFA_TECHNOLOGY_MASK_F_ACTIVE 0x80 /* NFC Technology F active mode */ | ||
P2P_LISTEN_TECH_MASK=0xC5 | ||
|
||
PRESERVE_STORAGE=0x01 | ||
|
||
############################################################################### | ||
# Deactivate notification wait time out in seconds used in ETSI Reader mode | ||
# 0 - Infinite wait | ||
NFA_DM_DISC_NTF_TIMEOUT=0 | ||
|
||
############################################################################### | ||
# AID_MATCHING constants | ||
# AID_MATCHING_EXACT_ONLY 0x00 | ||
# AID_MATCHING_EXACT_OR_PREFIX 0x01 | ||
# AID_MATCHING_PREFIX_ONLY 0x02 | ||
AID_MATCHING_MODE=0x01 | ||
|
||
############################################################################### | ||
# Mifare Tag implementation | ||
# 0: General implementation | ||
# 1: Legacy implementation | ||
LEGACY_MIFARE_READER=1 |