summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2012-02-09 21:29:52 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2012-02-09 21:29:52 +0100
commit555941289965de49f80a05bfc7ab4226116a3c38 (patch)
treea2ca54edd82b858779bf94e09560cad842bc654b /plugins
parente018e737dc2e689f5e0d576271b6c3c72c1295e3 (diff)
downloadneard-555941289965de49f80a05bfc7ab4226116a3c38.tar.gz
neard-555941289965de49f80a05bfc7ab4226116a3c38.tar.bz2
neard-555941289965de49f80a05bfc7ab4226116a3c38.zip
tag: Use kernel definitions for tag protocols
Diffstat (limited to 'plugins')
-rw-r--r--plugins/nfctype1.c2
-rw-r--r--plugins/nfctype2.c2
-rw-r--r--plugins/nfctype3.c2
-rw-r--r--plugins/nfctype4.c2
-rw-r--r--plugins/p2p.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/plugins/nfctype1.c b/plugins/nfctype1.c
index 8b65ae6..5bc6e3f 100644
--- a/plugins/nfctype1.c
+++ b/plugins/nfctype1.c
@@ -518,7 +518,7 @@ static int nfctype1_write_tag(uint32_t adapter_idx, uint32_t target_idx,
}
static struct near_tag_driver type1_driver = {
- .type = NEAR_TAG_NFC_TYPE1,
+ .type = NFC_PROTO_JEWEL,
.priority = NEAR_TAG_PRIORITY_DEFAULT,
.read_tag = nfctype1_read_tag,
.add_ndef = nfctype1_write_tag,
diff --git a/plugins/nfctype2.c b/plugins/nfctype2.c
index 7e97d31..56e1ede 100644
--- a/plugins/nfctype2.c
+++ b/plugins/nfctype2.c
@@ -432,7 +432,7 @@ out:
}
static struct near_tag_driver type2_driver = {
- .type = NEAR_TAG_NFC_TYPE2,
+ .type = NFC_PROTO_MIFARE,
.priority = NEAR_TAG_PRIORITY_DEFAULT,
.read_tag = nfctype2_read_tag,
.add_ndef = nfctype2_write_tag,
diff --git a/plugins/nfctype3.c b/plugins/nfctype3.c
index 11fd741..16eded8 100644
--- a/plugins/nfctype3.c
+++ b/plugins/nfctype3.c
@@ -645,7 +645,7 @@ static int nfctype3_write_tag(uint32_t adapter_idx, uint32_t target_idx,
}
static struct near_tag_driver type1_driver = {
- .type = NEAR_TAG_NFC_TYPE3,
+ .type = NFC_PROTO_FELICA,
.priority = NEAR_TAG_PRIORITY_DEFAULT,
.read_tag = nfctype3_read_tag,
.add_ndef = nfctype3_write_tag,
diff --git a/plugins/nfctype4.c b/plugins/nfctype4.c
index 1635376..a1a41e5 100644
--- a/plugins/nfctype4.c
+++ b/plugins/nfctype4.c
@@ -720,7 +720,7 @@ static int nfctype4_write_tag(uint32_t adapter_idx, uint32_t target_idx,
}
static struct near_tag_driver type4_driver = {
- .type = NEAR_TAG_NFC_TYPE4,
+ .type = NFC_PROTO_ISO14443,
.priority = NEAR_TAG_PRIORITY_DEFAULT,
.read_tag = nfctype4_read_tag,
.add_ndef = nfctype4_write_tag,
diff --git a/plugins/p2p.c b/plugins/p2p.c
index a23d9ff..47b9cab 100644
--- a/plugins/p2p.c
+++ b/plugins/p2p.c
@@ -175,7 +175,7 @@ static int p2p_read(uint32_t adapter_idx,
}
static struct near_tag_driver p2p_driver = {
- .type = NEAR_TAG_NFC_DEP,
+ .type = NFC_PROTO_NFC_DEP,
.priority = NEAR_TAG_PRIORITY_HIGH,
.read_tag = p2p_read,
};