tag: Set type B tag type properly
authorSamuel Ortiz <sameo@linux.intel.com>
Thu, 30 May 2013 16:09:50 +0000 (18:09 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 30 May 2013 16:09:50 +0000 (18:09 +0200)
When receiving a 14443-B protocol mask, we should set the tag type to
NFC-B.

src/tag.c

index 54b7a9e..62923b1 100644 (file)
--- a/src/tag.c
+++ b/src/tag.c
@@ -566,6 +566,10 @@ static void set_tag_type(struct near_tag *tag,
                tag->type = NFC_PROTO_FELICA;
                break;
 
+       case NFC_PROTO_ISO14443_B_MASK:
+               tag->type = NFC_PROTO_ISO14443_B;
+               break;
+
        default:
                tag->type = NFC_PROTO_MAX;
                break;