]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
dpp-nfc: Start handover server regardless of init-on-touch setting
authorJouni Malinen <jouni@codeaurora.org>
Thu, 14 May 2020 22:21:01 +0000 (01:21 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 14 May 2020 22:21:01 +0000 (01:21 +0300)
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 <jouni@codeaurora.org>
wpa_supplicant/examples/dpp-nfc.py

index 4f64bc25006e0334a3a059bc1ddbab2717fae3ff..86d4479b04d1270223e94cdce78931783a94b98c 100755 (executable)
@@ -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