From: Jouni Malinen Date: Thu, 30 Jul 2020 21:16:12 +0000 (+0300) Subject: dpp-nfc: Stop process after successful handover client completion X-Git-Tag: hostap_2_10~1057 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc0795e4ff952d3f7da601594594e550188afbdb;p=thirdparty%2Fhostap.git dpp-nfc: Stop process after successful handover client completion terminate_now was not being set in the only_one case with connection handover. Set it for that case as well as the tag cases to automatically close down the link once it is not needed anymore. Signed-off-by: Jouni Malinen --- diff --git a/wpa_supplicant/examples/dpp-nfc.py b/wpa_supplicant/examples/dpp-nfc.py index efd170a19..d4a050a5e 100755 --- a/wpa_supplicant/examples/dpp-nfc.py +++ b/wpa_supplicant/examples/dpp-nfc.py @@ -476,8 +476,8 @@ def run_dpp_handover_client(handover, alt=False): continue_loop = False global no_wait - if no_wait: - print("Trying to exit..") + if no_wait or only_one: + summary("Trying to exit..") global terminate_now terminate_now = True