From: Jouni Malinen Date: Thu, 23 Jul 2020 08:32:21 +0000 (+0300) Subject: dpp-nfc: Fix regression in NFC Tag writing X-Git-Tag: hostap_2_10~1077 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09c22bb782cf3cfc754b48aea896651d9849b55e;p=thirdparty%2Fhostap.git 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: 288c0ffaaa27 ("dpp-nfc: Do not hardcode netrole for NFC Tag writing cases") Signed-off-by: Jouni Malinen --- diff --git a/wpa_supplicant/examples/dpp-nfc.py b/wpa_supplicant/examples/dpp-nfc.py index 8bf219a06..c5073df5c 100755 --- a/wpa_supplicant/examples/dpp-nfc.py +++ b/wpa_supplicant/examples/dpp-nfc.py @@ -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