diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2013-06-19 10:41:50 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-06-19 11:36:53 +0200 |
commit | 7f75c023726f6e517cb815fb2318e5726c549acc (patch) | |
tree | 4d1f3e179c81547545af2fad40a1a83d67c43f3e | |
parent | 9a538bc6638fdc513eb6ade2a3412b09ed2ff239 (diff) | |
download | neard-7f75c023726f6e517cb815fb2318e5726c549acc.tar.gz neard-7f75c023726f6e517cb815fb2318e5726c549acc.tar.bz2 neard-7f75c023726f6e517cb815fb2318e5726c549acc.zip |
nfctool: sniffer: Dump unknown WSC data elements
Don't drop them silently.
-rw-r--r-- | tools/nfctool/ndef-decode.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/nfctool/ndef-decode.c b/tools/nfctool/ndef-decode.c index 1bc5d19..72f250b 100644 --- a/tools/nfctool/ndef-decode.c +++ b/tools/nfctool/ndef-decode.c @@ -198,6 +198,11 @@ static void ndef_print_wsc_oob(guint8 *oob_data, guint32 oob_length) g_free(passphrase); break; + default: + ndef_printf_buffer("Unknown Data Element: ", + oob_data + offset + 4, de_length); + break; + } offset += 4 + de_length; |