From: Jouni Malinen Date: Thu, 14 May 2020 22:21:01 +0000 (+0300) Subject: dpp-nfc: Start handover server regardless of init-on-touch setting X-Git-Tag: hostap_2_10~1314 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ad3fe93431c184fc031d7b799ba155ef751aa1d;p=thirdparty%2Fhostap.git 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 --- 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