Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
migaverse
GitHub Repository: migaverse/skymod
Path: blob/master/system/etc/libnfc-sec.conf
4283 views
1
###############################################################################
2
# NFC Configuration for NON-HAL component S3FWRN5
3
# Samsung Electronics, System LSI Division
4
# Update Date : 2014/11/11
5
# eSE : NFC Standalone
6
# Region : Other Region
7
# F/W Version dependency : NONE
8
# This file contains below
9
# 1) Default routing information : eSE + UICC (Active SE = 0x02)
10
# 2) Partial AID setting : Disable
11
# 3) UICC listen tech mask : 0x03 (Type A / B)
12
# 4) Listen tech mask for P2P : 0xC4 (Disable 106kbps passive P2P)
13
# 5) Poll tech mask : 0xEF (Enable All tech - B prime is not supported)
14
# 6) eSE warm reset : Enabled
15
# 7) Other Information
16
17
################################################################################
18
# 1) Default routing information
19
# SPRINT : DEFAULT_ISODEP_ROUTE=0x02 (eSE only) / ACTIVE_SE=0x02
20
# Other region : DEFAULT_ISODEP_ROUTE=0x03 (UICC) / ACTIVE_SE=0x03
21
DEFAULT_ISODEP_ROUTE=0x03
22
ACTIVE_SE=0x02
23
24
###############################################################################
25
# 2) Partial AID setting : Only used for ATT / TMO / VZW
26
# This configuration may be changed by MNO specific requirement.
27
# Description
28
# 1st byte : NCI Length
29
# 2nd byte : Number of set
30
# 3rd~ bytes : Partial matching order
31
# Matching value : Full matching = 0x00, Subset Matching = 0x01, Superset Matching : 0x02, Pattern Matching : 0x03
32
# ex) 2f 39 03 02 01 02 --> order : full matching - subset matching - superset matching PARTIAL_AID={03:02:01:02}
33
# PARTIAL_AID={02:01:02}
34
35
###############################################################################
36
# Guide for tech mask
37
# The bits are defined as tNFA_TECHNOLOGY_MASK in nfa_api.h.
38
# Notable bits:
39
# NFA_TECHNOLOGY_MASK_A 0x01
40
# NFA_TECHNOLOGY_MASK_B 0x02
41
# NFA_TECHNOLOGY_MASK_F 0x04
42
# NFA_TECHNOLOGY_MASK_ISO15693 0x08
43
# NFA_TECHNOLOGY_MASK_B_PRIME 0x10
44
# NFA_TECHNOLOGY_MASK_KOVIO 0x20
45
# NFA_TECHNOLOGY_MASK_A_ACTIVE 0x40
46
# NFA_TECHNOLOGY_MASK_F_ACTIVE 0x80
47
# Example :
48
# Polling mask for A / B / F / V(15693) / Kovio / Active A / Active F
49
# NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_B |
50
# NFA_TECHNOLOGY_MASK_F | NFA_TECHNOLOGY_MASK_ISO15693 |
51
# NFA_TECHNOLOGY_MASK_A_ACTIVE | NFA_TECHNOLOGY_MASK_F_ACTIVE.
52
# 0x01 | 0x02 | 0x04 | 0x08 | 0x20 | 0x40
53
# => POLLING_TECH_MASK=0xEF
54
55
###############################################################################
56
# 3) UICC listen tech mask
57
# Force UICC to only listen to the following technology(s).
58
# Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_B.
59
# If this option is blocked by # comment, default value will be applied
60
# Guide for each region
61
# SPRINT : UICC_LISTEN_TECH_MASK=0x01 (Type A only)
62
# HK : UICC_LISTEN_TECH_MASK=0x07 (Enable Type F card)
63
# Other region : UICC_LISTEN_TECH_MASK=0x03 (Default value)
64
UICC_LISTEN_TECH_MASK=0x03
65
66
###############################################################################
67
# 4) Listen tech mask for P2P
68
# Force tag polling for the following technology(s).
69
# Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_B |
70
# NFA_TECHNOLOGY_MASK_F | NFA_TECHNOLOGY_MASK_ISO15693 |
71
# NFA_TECHNOLOGY_MASK_A_ACTIVE | NFA_TECHNOLOGY_MASK_F_ACTIVE.
72
# Current Setting : Enable all poll tech
73
POLLING_TECH_MASK=0xEF
74
75
###############################################################################
76
# 5) Poll tech mask
77
# Force P2P to only listen for the following technology(s).
78
# The bits are defined as tNFA_TECHNOLOGY_MASK in nfa_api.h.
79
# Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_F |
80
# NFA_TECHNOLOGY_MASK_A_ACTIVE | NFA_TECHNOLOGY_MASK_F_ACTIVE
81
# For HK, P2P_LISTEN_TECH_MASK may be 0xC0 for enhance type F card success ratio
82
P2P_LISTEN_TECH_MASK=0xC4
83
84
###############################################################################
85
# Maximum Number of Credits to be allowed by the NFCC
86
# This value overrides what the NFCC specifices allowing the host to have
87
# the control to work-around transport limitations. If this value does
88
# not exist or is set to 0, the NFCC will provide the number of credits.
89
MAX_RF_DATA_CREDITS=1
90
91
###############################################################################
92
# When disconnecting from Oberthur secure element, perform a warm-reset of
93
# the secure element to deselect the applet.
94
# The default hex value of the command is 0x3. If this variable is undefined,
95
# then this feature is not used.
96
# 6) OBERTHUR_WARM_RESET_COMMAND must be enabled for all eSE model
97
OBERTHUR_WARM_RESET_COMMAND=0x03
98
99
###############################################################################
100
# 7) Other Information
101
# It will be checked in next version.
102
###############################################################################
103
104
###############################################################################
105
# Application options
106
APPL_TRACE_LEVEL=0xFF
107
PROTOCOL_TRACE_LEVEL=0xFFFFFFFF
108
109
PRESERVE_STORAGE=1
110
111
# File used for NFA storage
112
NFA_STORAGE="/data/nfc"
113
114
###############################################################################
115
# power control driver
116
# Specify a kernel driver that support ioctl commands to control NFC_EN and
117
# NFC_WAKE gpio signals.
118
#
119
# POWER_CONTRL_DRIVER=<driver>
120
# i2c and spi driver may be used to control NFC_EN and NFC_WAKE signal
121
POWER_CONTROL_DRIVER="/dev/sec-nfc"
122
123
###############################################################################
124
# transport driver
125
#
126
# TRANSPORT_DRIVER=<driver>
127
#
128
# where <driver> can be, for example:
129
# "/dev/ttyS" (UART)
130
# "/dev/bcmi2cnfc" (I2C)
131
# "hwtun" (HW Tunnel)
132
# "/dev/bcmspinfc" (SPI)
133
# "/dev/btusb0" (BT USB)
134
TRANSPORT_DRIVER="/dev/sec-nfc"
135
136
###############################################################################
137
# Default poll duration (in ms)
138
# The defualt is 500ms if not set (see nfc_target.h) same as M project
139
NFA_DM_DISC_DURATION_POLL=500
140
141
142
143