From 0b04d3c578dab207b6e284a98e2bdbe3ac5dce6b Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 14 May 2020 21:52:09 +0300 Subject: [PATCH] dpp-nfc: Allow wpa_supplicant control interface directory to be set Signed-off-by: Jouni Malinen --- wpa_supplicant/examples/dpp-nfc.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wpa_supplicant/examples/dpp-nfc.py b/wpa_supplicant/examples/dpp-nfc.py index 86524ab17..cc32e4904 100755 --- a/wpa_supplicant/examples/dpp-nfc.py +++ b/wpa_supplicant/examples/dpp-nfc.py @@ -623,6 +623,8 @@ def main(): help='run as Configurator-only') parser.add_argument('--config-params', default='', help='configurator parameters') + parser.add_argument('--ctrl', default='/var/run/wpa_supplicant', + help='wpa_supplicant/hostapd control interface') parser.add_argument('--summary', help='summary file for writing status updates') parser.add_argument('--success', @@ -663,6 +665,10 @@ def main(): ifname = args.ifname print("Selected ifname " + ifname) + if args.ctrl: + global wpas_ctrl + wpas_ctrl = args.ctrl + if args.summary: global summary_file summary_file = args.summary