From ccf7393275802cab22fb917472a0b417d37f00ad Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Thu, 30 May 2013 18:09:50 +0200 Subject: [PATCH] tag: Set type B tag type properly When receiving a 14443-B protocol mask, we should set the tag type to NFC-B. --- src/tag.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tag.c b/src/tag.c index 54b7a9e..62923b1 100644 --- 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; -- 2.7.4