From 9ad3fe93431c184fc031d7b799ba155ef751aa1d Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 15 May 2020 01:21:01 +0300 Subject: [PATCH] dpp-nfc: Start handover server regardless of init-on-touch setting The previous version was trying to force the handover roles based on the --init-on-touch parameter on both sides. That is fine for some test scenarios, but not appropriate for more normal use cases. Change this design to enable handover server in all cases and only control starting of the handover client based on --init-on-touch. Signed-off-by: Jouni Malinen --- wpa_supplicant/examples/dpp-nfc.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/wpa_supplicant/examples/dpp-nfc.py b/wpa_supplicant/examples/dpp-nfc.py index 4f64bc250..86d4479b0 100755 --- a/wpa_supplicant/examples/dpp-nfc.py +++ b/wpa_supplicant/examples/dpp-nfc.py @@ -587,10 +587,8 @@ def llcp_connected(llc): print("P2P LLCP connected") global wait_connection wait_connection = False - global init_on_touch - if not init_on_touch: - global srv - srv.start() + global srv + srv.start() if init_on_touch or not no_input: threading.Thread(target=llcp_worker, args=(llc,)).start() return True