dpp-nfc: Allow wpa_supplicant control interface directory to be set

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2020-05-14 21:52:09 +03:00 committed by Jouni Malinen
parent 69dfbe6a93
commit 0b04d3c578

View file

@ -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