[PATCH 1/3] supplicant: fix usage based on build options

Dan Williams dcbw
Mon Jan 20 15:03:15 PST 2014


Signed-hostap: Dan Williams <dcbw at redhat.com>
---
 wpa_supplicant/main.c | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/wpa_supplicant/main.c b/wpa_supplicant/main.c
index 37f0c78..759b0ca 100644
--- a/wpa_supplicant/main.c
+++ b/wpa_supplicant/main.c
@@ -18,20 +18,31 @@
 
 
 static void usage(void)
 {
 	int i;
 	printf("%s\n\n%s\n"
 	       "usage:\n"
-	       "  wpa_supplicant [-BddhKLqqstuvW] [-P<pid file>] "
+	       "  wpa_supplicant [-BddhKLqq"
+#ifdef CONFIG_DEBUG_SYSLOG
+	       "s"
+#endif
+	       "t"
+#ifdef CONFIG_DBUS
+	       "u"
+#endif
+	       "vW] [-P<pid file>] "
 	       "[-g<global ctrl>] \\\n"
 	       "        [-G<group>] \\\n"
 	       "        -i<ifname> -c<config file> [-C<ctrl>] [-D<driver>] "
 	       "[-p<driver_param>] \\\n"
-	       "        [-b<br_ifname>] [-f<debug file>] [-e<entropy file>] "
+	       "        [-b<br_ifname>] [-e<entropy file>]"
+#ifdef CONFIG_DEBUG_FILE
+	       " [-f<debug file>]"
+#endif
 	       "\\\n"
 	       "        [-o<override driver>] [-O<override ctrl>] \\\n"
 	       "        [-N -i<ifname> -c<conf> [-C<ctrl>] "
 	       "[-D<driver>] \\\n"
 	       "        [-p<driver_param>] [-b<br_ifname>] [-I<config file>] "
 	       "...]\n"
 	       "\n"
-- 
1.8.3.1





More information about the Hostap mailing list