diff options
author | sam <sam@FreeBSD.org> | 2008-03-24 19:57:51 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2008-03-24 19:57:51 +0000 |
commit | 93d12b102bd55b4360243769502f31b10ee524b9 (patch) | |
tree | 0d5d6c53bf711232c470f6277e62e5a5c0674309 /contrib/wpa_supplicant/main.c | |
parent | bc895c971f511040199035dae5f9de6d5c12827d (diff) | |
download | FreeBSD-src-93d12b102bd55b4360243769502f31b10ee524b9.zip FreeBSD-src-93d12b102bd55b4360243769502f31b10ee524b9.tar.gz |
resolve merge conflicts
MFC after: 3 weeks
Diffstat (limited to 'contrib/wpa_supplicant/main.c')
-rw-r--r-- | contrib/wpa_supplicant/main.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/contrib/wpa_supplicant/main.c b/contrib/wpa_supplicant/main.c index 09842ed..8ce4ef2 100644 --- a/contrib/wpa_supplicant/main.c +++ b/contrib/wpa_supplicant/main.c @@ -10,6 +10,8 @@ * license. * * See README and COPYING for more details. + * + * $FreeBSD$ */ #include "includes.h" @@ -39,11 +41,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 +68,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 +149,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 +178,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; |