summaryrefslogtreecommitdiff
path: root/sbin/wicontrol/wicontrol.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2004-06-22 20:49:23 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2004-06-22 20:49:23 +0000
commit25bfb4d3212b393aff8cc46715ab41e05edcc42f (patch)
tree4179e3b57323aa276e31b8ffa44889a03fc355f5 /sbin/wicontrol/wicontrol.c
parentfc9e63e27370e316e13e16ae8a6aebfe65a90a81 (diff)
Remove the CNF_ from WI_RID_CNF_ENH_SECURITY and WI_RID_CNF_DBM_ADJUST
to match changes in wi(4). Also, don't exit wicontrol if SIOCGWAVELAN fails; just keep going and get the values we can. OK deraadt@
Diffstat (limited to 'sbin/wicontrol/wicontrol.c')
-rw-r--r--sbin/wicontrol/wicontrol.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/wicontrol/wicontrol.c b/sbin/wicontrol/wicontrol.c
index 6c59bd7dd56..db205e95aa1 100644
--- a/sbin/wicontrol/wicontrol.c
+++ b/sbin/wicontrol/wicontrol.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wicontrol.c,v 1.49 2004/05/29 17:49:19 millert Exp $ */
+/* $OpenBSD: wicontrol.c,v 1.50 2004/06/22 20:49:22 millert 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.49 2004/05/29 17:49:19 millert Exp $";
+ "@(#) $OpenBSD: wicontrol.c,v 1.50 2004/06/22 20:49:22 millert Exp $";
#endif
void wi_getval(char *, struct wi_req *);
@@ -117,7 +117,7 @@ wi_getval(char *iface, struct wi_req *wreq)
err(1, "socket");
if (ioctl(s, SIOCGWAVELAN, &ifr) == -1)
- err(1, "SIOCGWAVELAN");
+ warn("SIOCGWAVELAN (0x%x)", wreq->wi_type);
close(s);
}
@@ -593,7 +593,7 @@ struct wi_table wi_table[] = {
{ WI_RID_SYSTEM_SCALE, WI_WORDS, "Access point density:\t\t\t" },
{ WI_RID_PM_ENABLED, WI_BOOL, "Power Management:\t\t\t" },
{ WI_RID_MAX_SLEEP, WI_WORDS, "Max sleep time:\t\t\t\t" },
- { WI_RID_CNF_ENH_SECURITY, WI_WORDS, "Enhanced Security mode:\t\t\t" },
+ { WI_RID_ENH_SECURITY, WI_WORDS, "Enhanced Security mode:\t\t\t" },
{ WI_RID_PRISM2, WI_WORDS, "Intersil Prism2-based card:\t\t" },
{ WI_RID_STA_IDENTITY, WI_CARDINFO, "Card info:\t\t\t\t" },
{ 0, NULL }
@@ -842,7 +842,7 @@ struct wi_func wi_opt[] = {
{ 'x', wi_setword, WI_FRID_CRYPTO_ALG, NULL },
{ 'A', wi_setword, WI_RID_CNFAUTHMODE, NULL },
{ 'D', wi_setword, WI_RID_SYMBOL_DIVERSITY, NULL },
- { 'E', wi_setword, WI_RID_CNF_ENH_SECURITY, NULL },
+ { 'E', wi_setword, WI_RID_ENH_SECURITY, NULL },
{ 'M', wi_setword, WI_RID_MICROWAVE_OVEN, NULL },
{ 'P', wi_setword, WI_RID_PM_ENABLED, NULL },
{ 'R', wi_setword, WI_RID_ROAMING_MODE, NULL },