summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/nfctype1.c1
-rw-r--r--plugins/nfctype2.c1
-rw-r--r--plugins/nfctype3.c1
-rw-r--r--plugins/nfctype4.c1
-rw-r--r--plugins/p2p.c5
5 files changed, 7 insertions, 2 deletions
diff --git a/plugins/nfctype1.c b/plugins/nfctype1.c
index 2709090..b9c8124 100644
--- a/plugins/nfctype1.c
+++ b/plugins/nfctype1.c
@@ -514,6 +514,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,
+ .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 3339598..df209f3 100644
--- a/plugins/nfctype2.c
+++ b/plugins/nfctype2.c
@@ -433,6 +433,7 @@ out:
static struct near_tag_driver type2_driver = {
.type = NEAR_TAG_NFC_TYPE2,
+ .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 54d5656..6768c99 100644
--- a/plugins/nfctype3.c
+++ b/plugins/nfctype3.c
@@ -375,6 +375,7 @@ static int nfctype3_read_tag(uint32_t adapter_idx,
static struct near_tag_driver type1_driver = {
.type = NEAR_TAG_NFC_TYPE3,
+ .priority = NEAR_TAG_PRIORITY_DEFAULT,
.read_tag = nfctype3_read_tag,
};
diff --git a/plugins/nfctype4.c b/plugins/nfctype4.c
index e587011..6d6ea4c 100644
--- a/plugins/nfctype4.c
+++ b/plugins/nfctype4.c
@@ -721,6 +721,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,
+ .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 78161f2..a23d9ff 100644
--- a/plugins/p2p.c
+++ b/plugins/p2p.c
@@ -175,8 +175,9 @@ static int p2p_read(uint32_t adapter_idx,
}
static struct near_tag_driver p2p_driver = {
- .type = NEAR_TAG_NFC_DEP,
- .read_tag = p2p_read,
+ .type = NEAR_TAG_NFC_DEP,
+ .priority = NEAR_TAG_PRIORITY_HIGH,
+ .read_tag = p2p_read,
};