Allow wpa_cli/hostapd_cli client socket directory to be specified
authorManikandan Mohan <manikand@qca.qualcomm.com>
Tue, 25 Aug 2015 04:34:03 +0000 (21:34 -0700)
committerJouni Malinen <j@w1.fi>
Tue, 1 Sep 2015 08:17:43 +0000 (11:17 +0300)
commit4ae7120919b16b8994212cd2675364159eeac5c7
tree51803db019d328d0ffa002ee145ba672bdbd0e54
parent89a72e1c7f25b2e77619e6277f76e7603e3465f5
Allow wpa_cli/hostapd_cli client socket directory to be specified

This adds a new helper function wpa_ctrl_open2() that can be used
instead of wpa_ctrl_open() to override the default client socket
directory. Add optional -s<directory path> argument to hostapd_cli and
wpa_cli to allow the client socket directory to be specified.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
hostapd/hostapd_cli.c
src/common/wpa_ctrl.c
src/common/wpa_ctrl.h
wpa_supplicant/wpa_cli.c