nfctype3: Support blank tag formatting
authorRavi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
Mon, 20 Aug 2012 15:16:27 +0000 (18:16 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 23 Aug 2012 13:11:03 +0000 (15:11 +0200)
commitc2e68f3a48af3027a8e2b932d131ef1915855840
tree9d0fd4845accb16ebba7b762e4706de8c24ddfde
parentbd285ab69e7d96025198fa52558289c4e80579ba
nfctype3: Support blank tag formatting

When using a new tag for the first time, sytem code and attribute
block might not be existed (un-formatted tag) this was causing the
tag to be dropped. Currently it supports only Felica Lite series.
This patch add handling for such tags:

    1) When a tag with out system code(12FC) is found and reported
       it as blank tag, updating sytem code depends upon the tag
       series (now supporting only Felica Lite series).
    2) Write attribute block information like NDEF version, max blocks
       for NDEF content, zero NDEF length and read write permissions.
    3) Call back the format_resp with status (in case of success, tag is
       ready to write and read).
plugins/nfctype3.c