]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
dpp-nfc: Stop process after successful handover client completion
authorJouni Malinen <jouni@codeaurora.org>
Thu, 30 Jul 2020 21:16:12 +0000 (00:16 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 30 Jul 2020 21:44:49 +0000 (00:44 +0300)
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 <jouni@codeaurora.org>
wpa_supplicant/examples/dpp-nfc.py

index efd170a19ed88052fb8585422b5997b0ebe1444c..d4a050a5e2bfc351232d7bfcf1435a4e9ae7be5a 100755 (executable)
@@ -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