diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2005-05-25 07:40:50 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2005-05-25 07:40:50 +0000 |
commit | 195394ca0fd77eaf853201a38a23a40bfb1d4e91 (patch) | |
tree | fa1f8457ab4564ce39538fc88528d2959064a196 /sbin/wicontrol | |
parent | dddc74b20f5c57dc55e2d67c27ee9a237c8021f3 (diff) |
add ifconfig -M option to replace wicontrol -L and -l for ap scanning
and node listing. wicontrol is not supported by net80211 drivers
anymore. further improvements will be done.
ok dlg@, jsg@
Diffstat (limited to 'sbin/wicontrol')
-rw-r--r-- | sbin/wicontrol/wicontrol.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/wicontrol/wicontrol.c b/sbin/wicontrol/wicontrol.c index d3b494460d7..9f3a1e24ec8 100644 --- a/sbin/wicontrol/wicontrol.c +++ b/sbin/wicontrol/wicontrol.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wicontrol.c,v 1.57 2004/11/24 18:11:15 fgsch Exp $ */ +/* $OpenBSD: wicontrol.c,v 1.58 2005/05/25 07:40:49 reyk Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -68,7 +68,7 @@ static const char copyright[] = "@(#) Copyright (c) 1997, 1998, 1999\ Bill Paul. All rights reserved."; static const char rcsid[] = - "@(#) $OpenBSD: wicontrol.c,v 1.57 2004/11/24 18:11:15 fgsch Exp $"; + "@(#) $OpenBSD: wicontrol.c,v 1.58 2005/05/25 07:40:49 reyk Exp $"; #endif int wi_getval(char *, struct wi_req *); @@ -122,7 +122,7 @@ wi_getval(char *iface, struct wi_req *wreq) if (error == -1) { warn("SIOCGWAVELAN (0x%x)", wreq->wi_type); - if (errno == ENXIO) + if (errno == ENXIO || errno == EINVAL) exit(1); } close(s); |