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 <jouni@codeaurora.org>
This commit is contained in:
parent
24efcdf74d
commit
9ad3fe9343
1 changed files with 2 additions and 4 deletions
|
@ -587,10 +587,8 @@ def llcp_connected(llc):
|
||||||
print("P2P LLCP connected")
|
print("P2P LLCP connected")
|
||||||
global wait_connection
|
global wait_connection
|
||||||
wait_connection = False
|
wait_connection = False
|
||||||
global init_on_touch
|
global srv
|
||||||
if not init_on_touch:
|
srv.start()
|
||||||
global srv
|
|
||||||
srv.start()
|
|
||||||
if init_on_touch or not no_input:
|
if init_on_touch or not no_input:
|
||||||
threading.Thread(target=llcp_worker, args=(llc,)).start()
|
threading.Thread(target=llcp_worker, args=(llc,)).start()
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in a new issue