diff options
| author | Jeff Johnson <jjohnson@codeaurora.org> | 2012-09-03 22:12:17 -0700 |
|---|---|---|
| committer | Dmitry Shmidt <dimitrysh@google.com> | 2012-09-06 13:29:42 -0700 |
| commit | 205f2142134d2f3475fe1f893575df8f809eede4 (patch) | |
| tree | 83808515c390f05349a4a7d063a2af44744e5607 /hostapd/hostapd_cli.c | |
| parent | 61d9df3e62aaa0e87ad05452fcb95142159a17b6 (diff) | |
| download | android_external_wpa_supplicant_8-205f2142134d2f3475fe1f893575df8f809eede4.tar.gz android_external_wpa_supplicant_8-205f2142134d2f3475fe1f893575df8f809eede4.tar.bz2 android_external_wpa_supplicant_8-205f2142134d2f3475fe1f893575df8f809eede4.zip | |
hostapd: Allow hostapd_cli to work on Android
Add definitions of the Android specific directories used for control
interface sockets so that hostapd_cli can connect to the Android
hostapd.
Change-Id: Iabcd8d70ef61fae6656066991240d55e65a032e4
Diffstat (limited to 'hostapd/hostapd_cli.c')
| -rw-r--r-- | hostapd/hostapd_cli.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/hostapd/hostapd_cli.c b/hostapd/hostapd_cli.c index aed981c4..27bea2a8 100644 --- a/hostapd/hostapd_cli.c +++ b/hostapd/hostapd_cli.c @@ -93,7 +93,12 @@ static const char *commands_help = static struct wpa_ctrl *ctrl_conn; static int hostapd_cli_quit = 0; static int hostapd_cli_attached = 0; -static const char *ctrl_iface_dir = "/var/run/hostapd"; + +#ifndef CONFIG_CTRL_IFACE_DIR +#define CONFIG_CTRL_IFACE_DIR "/var/run/hostapd" +#endif /* CONFIG_CTRL_IFACE_DIR */ +static const char *ctrl_iface_dir = CONFIG_CTRL_IFACE_DIR; + static char *ctrl_ifname = NULL; static const char *pid_file = NULL; static const char *action_file = NULL; |
