dpp-nfc: Fix regression in NFC Tag writing
The change to checking DPP_LISTEN return value ended up overwriting the
actual URI information from wpas_get_nfc_uri().
Fixes: 288c0ffaaa
("dpp-nfc: Do not hardcode netrole for NFC Tag writing cases")
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
1e4a42c745
commit
09c22bb782
1 changed files with 2 additions and 2 deletions
|
@ -211,8 +211,8 @@ def wpas_get_nfc_uri(start_listen=True, pick_channel=False, chan_override=None):
|
|||
global netrole
|
||||
if netrole:
|
||||
cmd += " netrole=" + netrole
|
||||
res = wpas.request(cmd)
|
||||
if "OK" not in res:
|
||||
res2 = wpas.request(cmd)
|
||||
if "OK" not in res2:
|
||||
raise Exception("Failed to start listen operation (%s)" % cmd)
|
||||
return res
|
||||
|
||||
|
|
Loading…
Reference in a new issue