dpp-nfc: Detect a non-NDEF tag when trying to write

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2020-07-23 11:27:27 +03:00 committed by Jouni Malinen
parent 288c0ffaaa
commit 1e4a42c745

View file

@ -584,6 +584,9 @@ def dpp_tag_read(tag):
def rdwr_connected_write_tag(tag):
summary("Tag found - writing - " + str(tag))
if not tag.ndef:
summary("Not a formatted NDEF tag")
return
if not tag.ndef.is_writeable:
summary("Not a writable tag")
return