diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2005-07-04 17:51:45 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2005-07-04 17:51:45 +0000 |
commit | 0c68ccbe1e6aa68724211e463bc969e764789128 (patch) | |
tree | 22c5097f12f2b42842fee60cbf7c80904b1dcf97 /usr.sbin/hostapd/hostapd.c | |
parent | a8655b8e4eb2175319eb9252eb47fb46390e6f23 (diff) |
remove command line options -i, -a and -b (iapp interface, hostap interface
and broadcast mode). please use the configuration file hostapd.conf(5)
instead, it is now mandatory to run hostapd with it.
Diffstat (limited to 'usr.sbin/hostapd/hostapd.c')
-rw-r--r-- | usr.sbin/hostapd/hostapd.c | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/usr.sbin/hostapd/hostapd.c b/usr.sbin/hostapd/hostapd.c index 0a971817c63..d437cd81819 100644 --- a/usr.sbin/hostapd/hostapd.c +++ b/usr.sbin/hostapd/hostapd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hostapd.c,v 1.13 2005/07/04 17:13:39 reyk Exp $ */ +/* $OpenBSD: hostapd.c,v 1.14 2005/07/04 17:51:44 reyk Exp $ */ /* * Copyright (c) 2004, 2005 Reyk Floeter <reyk@vantronix.net> @@ -60,8 +60,8 @@ char printbuf[BUFSIZ]; void hostapd_usage(void) { - fprintf(stderr, "usage: %s [-bdv] [-a interface] [-D macro=value] " - "[-f file] [-i interface]\n", __progname); + fprintf(stderr, "usage: %s [-dv] [-D macro=value] [-f file]\n", + __progname); exit(EXIT_FAILURE); } @@ -369,15 +369,8 @@ main(int argc, char *argv[]) /* * Get and parse command line options */ - while ((ch = getopt(argc, argv, "a:bf:D:di:v")) != -1) { + while ((ch = getopt(argc, argv, "f:D:dv")) != -1) { switch (ch) { - case 'a': - hostap_iface = optarg; - cfg->c_flags |= HOSTAPD_CFG_F_APME; - break; - case 'b': - cfg->c_flags |= HOSTAPD_CFG_F_BRDCAST; - break; case 'f': config = optarg; break; @@ -389,10 +382,6 @@ main(int argc, char *argv[]) case 'd': debug++; break; - case 'i': - iapp_iface = optarg; - cfg->c_flags |= HOSTAPD_CFG_F_IAPP; - break; case 'v': cfg->c_verbose++; break; @@ -419,7 +408,7 @@ main(int argc, char *argv[]) /* Parse the configuration file */ if (hostapd_parse_file(cfg) != 0) - hostapd_fatal("invalid configuration\n"); + hostapd_fatal("invalid configuration in %s\n", cfg->c_config); if ((cfg->c_flags & HOSTAPD_CFG_F_IAPP) == 0) hostapd_fatal("unspecified IAPP interface\n"); |