aboutsummaryrefslogtreecommitdiff
path: root/contrib/wpa_supplicant/main.c
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2008-03-24 19:46:53 +0000
committerSam Leffler <sam@FreeBSD.org>2008-03-24 19:46:53 +0000
commitf2afa83e728168e47c37af2a32a3b32afec888ec (patch)
treef77bae77287d18eaa89acc25e38b5acccca132fe /contrib/wpa_supplicant/main.c
parent7700b89cce864f82dbd9cf54979c59dd06ca9356 (diff)
downloadsrc-f2afa83e728168e47c37af2a32a3b32afec888ec.tar.gz
src-f2afa83e728168e47c37af2a32a3b32afec888ec.zip
Import of WPA supplicant 0.5.10
Notes
Notes: svn path=/vendor/wpa_supplicant/dist/; revision=177568
Diffstat (limited to 'contrib/wpa_supplicant/main.c')
-rw-r--r--contrib/wpa_supplicant/main.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/contrib/wpa_supplicant/main.c b/contrib/wpa_supplicant/main.c
index fdce7c51452b..f371561cde66 100644
--- a/contrib/wpa_supplicant/main.c
+++ b/contrib/wpa_supplicant/main.c
@@ -39,11 +39,12 @@ static void usage(void)
int i;
printf("%s\n\n%s\n"
"usage:\n"
- " wpa_supplicant [-BddehLqquvwW] [-P<pid file>] "
+ " wpa_supplicant [-BddhKLqqtuvwW] [-P<pid file>] "
"[-g<global ctrl>] \\\n"
" -i<ifname> -c<config file> [-C<ctrl>] [-D<driver>] "
"[-p<driver_param>] \\\n"
- " [-b<br_ifname> [-N -i<ifname> -c<conf> [-C<ctrl>] "
+ " [-b<br_ifname>] [-f<debug file>] \\\n"
+ " [-N -i<ifname> -c<conf> [-C<ctrl>] "
"[-D<driver>] \\\n"
" [-p<driver_param>] [-b<br_ifname>] ...]\n"
"\n"
@@ -65,6 +66,9 @@ static void usage(void)
" -i = interface name\n"
" -d = increase debugging verbosity (-dd even more)\n"
" -D = driver name\n"
+#ifdef CONFIG_DEBUG_FILE
+ " -f = log output to debug file instead of stdout\n"
+#endif /* CONFIG_DEBUG_FILE */
" -g = global ctrl_interface\n"
" -K = include keys (passwords, etc.) in debug output\n"
" -t = include timestamp in debug messages\n"
@@ -143,7 +147,7 @@ int main(int argc, char *argv[])
wpa_supplicant_fd_workaround();
for (;;) {
- c = getopt(argc, argv, "b:Bc:C:D:dg:hi:KLNp:P:qtuvwW");
+ c = getopt(argc, argv, "b:Bc:C:D:df:g:hi:KLNp:P:qtuvwW");
if (c < 0)
break;
switch (c) {
@@ -172,6 +176,11 @@ int main(int argc, char *argv[])
params.wpa_debug_level--;
break;
#endif /* CONFIG_NO_STDOUT_DEBUG */
+#ifdef CONFIG_DEBUG_FILE
+ case 'f':
+ params.wpa_debug_file_path = optarg;
+ break;
+#endif /* CONFIG_DEBUG_FILE */
case 'g':
params.ctrl_interface = optarg;
break;