Home | History | Annotate | Download | only in wiconfig
History log of /src/usr.sbin/wiconfig/wiconfig.c
RevisionDateAuthorComments
 1.46  15-Jun-2025  rillig wiconfig: clean up

Remove semicolon after function body; found by lint.

Replace bzero with memset.

Remove redundant return statements.

Remove trailing whitespace.

No binary change.
 1.45  15-Jun-2016  riastradh branches: 1.45.28;
Kill another strict aliasing violation.
 1.44  12-Apr-2012  joerg Don't assign non-integral constants to integral variables.
 1.43  30-Aug-2011  joerg branches: 1.43.2;
ANSIfy + static + __dead
 1.42  19-Apr-2009  lukem Fix WARNS=4 (-Wcast-qual -Wextra)
 1.41  21-Jul-2008  lukem branches: 1.41.6;
Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
 1.40  08-Jun-2007  sborrill branches: 1.40.12;
wiconfig should exit with status 1 if used on an interface which does
not exist or is not wireless. The previous commit broke this, so add
explicit check before any other task. Approved by dyoung@
 1.39  07-Oct-2006  elad branches: 1.39.2; 1.39.4;
PR/23774: Jorge Acereda: wiconfig exits on non-critical errors

Patch (with some style nits) applied, thanks!
 1.38  28-Jun-2006  drochner if a data read from the interface fails, print the "wreq" type
before erroring out
 1.37  02-Jun-2005  lukem appease gcc -Wuninitialized
 1.36  26-Aug-2004  wiz Remove duplicate include. Noted by Jeff Ito.
 1.35  25-Aug-2004  wiz Sync usage with man page, and fix a typo in a comment.
 1.34  25-Aug-2004  wrstuden Document recently-revived -A option, which sets the authentication
type. Eventually we want ifconfig to handle this, but we support
it here until ifconfig gets updated.
 1.33  23-Jan-2004  wrstuden branches: 1.33.2;
Re-add support for wiconfig wiX -A #, which chooses between OpenSys and
Shared Key authentication.

From discussions with dyoung regarding how to get my Prism-based Netgear
card working with my Airport base station. Latter now works with
wiconfig wi0 -A 2. :-)
 1.32  16-Nov-2003  dyoung From Steve Woodford (scw@): fix wi(4) and wiconfig(8) on big-endian
machines.
 1.31  13-Oct-2003  dyoung Use new 802.11 header files.
 1.30  15-May-2003  itojun strcpy audit (command line argument was used as src, subject to overrun)
 1.29  03-Apr-2003  perry Changes to make wiconfig print vendor and firmware id/version
Provided by Love in PR kern/12779

XXX WI_RID_STA_IDENTITY_* should probably be defined somewhere other
XXX than inside wiconfig.c itself, perhaps in dev/ic/wi_ieee.h ?
 1.28  16-Nov-2002  dyoung Add flag -g, set fragmentation threshold. Also, query RSSI->dBm
conversion constant.

Remove flags

-c Create IBSS: use ifconfig wi0 mediaopt adhoc, which turns on the
802.11-compliant behavior
-e enable WEP: use ifconfig wi0 nwkey ...
-f set channel: use ifconfig wi0 chan ch
-k set WEP keys: use ifconfig wi0 nwkey ...
-n set desired SSID to join in IBSS mode: use ifconfig wi0 nwid id
-p set the desired port type: use ifconfig wi0 mediaopt ...
-q set SSID to create: use ifconfig wi0 nwid ...
-t set TX rate: ifconfig wi0 media ...
-A set authentication type: ifconfig wi0 nwkey ...
-S set maximum sleep interval: ifconfig wi0 powersavesleep ...
-P enable power management: ifconfig wi0 powersave
-T select WEP key for transmitted packets: ifconfig wi0 nwkey n:k1,k2,k3,k4
-Z unimplemented

which duplicate ifconfig functions. This leaves flags

-a access point density
-o print out statistics counters
-s set station name for Lucent WaveMANAGER software
-M enable/disable "microwave oven robustness"
-R enable/disable roaming function

which affect wi(4)-specific parameters, and flags

-D scan once for access points
-d maximum data length
-m set MAC address
-r set RTS/CTS threshold

which affect 802.11-standard parameters and activities (so may not
belong in wiconfig, in the long-term). The new flag, -g, also
affects an 802.11 parameter.
 1.27  26-Sep-2002  onoe Changed the name for resource id 0xfd45 to match the reality.
WI_RID_OWN_BEACON_INT -> WI_RID_CUR_BEACON_INT
 1.26  11-Aug-2002  tron Make this build after "wi_ieee.h" has been changed.
 1.25  09-Apr-2002  thorpej Use __RCSID() and __COPYRIGHT().
 1.24  02-Apr-2002  ichiro fix channel list to be 1-14.
txrate parameter value determines the rate at which the
Probe request frames will be sent.
bit0 1Mbps
bit1 2M
bit3 5.5M
bit4 11M
 1.23  04-Mar-2002  dbj when no access points are available, explicitly state so
rather then printing a list heading and nothing else.
 1.22  04-Mar-2002  dbj print out channel list as a list of decimal channels rather
than as a bitmask printed as a single decimal number
 1.21  04-Mar-2002  dbj s/Kusec/msec/
 1.20  03-Mar-2002  dbj use all 4 bytes of result length when scanning APs.
 1.19  28-Jan-2002  ichiro It is missing fflush() when scanning the network and no avaible AP.
 1.18  25-Jan-2002  christos If WI_RID_SCAN_APS is not defined, then don't support it.
 1.17  22-Jan-2002  ichiro If the interface isn't up, up and scan.
then, down it when scanning is done.

point out from lha@stacken.kth.se, kern/15328
 1.16  21-Jan-2002  ichiro display Beacon Interval of STA
 1.15  21-Jan-2002  ichiro forces if_wi to initiate one round of access point scan.
This code was written by jrb@cs.pdx.edu, modified and bug-fixed by ichiro@netbsd.org
 1.14  16-May-2001  tsubai Big-endian support.
 1.13  15-May-2001  ichiro It enabled it to control roaming mode and authentication mode.
 1.12  06-May-2001  ichiro sys/dev/pcmcia/if_wi_ieee.h was moved to sys/dev/ic/wi_ieee.h
 1.11  19-Feb-2001  cgd convert to use getprogname()
 1.10  24-Nov-2000  jdolecek cast isprint() parameter to (unsigned char) - it looses if the character has high
bit set when the architecture is using signed char by default
This fixes bin/11556 by Michael Eriksson.
 1.9  23-Aug-2000  jhawk Add support for "microwave oven robustness" with wiconfig -M.
 1.8  07-Aug-2000  enami Add our RCS Id and restore original Id.
 1.7  06-Jul-2000  enami - Process all passed option rather than ignoring silently except the first one.
- Centerize the check whether an interface is specified.
- Print maximum data length.
- Swap wi_type and wi_code in struct wi_table so that wi_type matches with
wi_type in wi_req.
 1.6  24-Jun-2000  sommerfeld Add support for the documented, but unimplemented, -a flag.
 1.5  23-May-2000  enami branches: 1.5.4;
When we steal an argument, just bump optind instead of copying
rest of argument vector.
 1.4  04-May-2000  explorer branches: 1.4.2;
when setting the key, don't dump interface stats too.
 1.3  26-Mar-2000  itojun don't traverse NULL pointer on "wiconfig -p 1".
From: veego
 1.2  04-Feb-2000  explorer bring over WEP mode from FreeBSD/OpenBSD
 1.1  14-Jul-1999  sommerfeld Utility to configure wi* 802.11 driver
 1.4.2.4  27-Jun-2000  he Pull up revision 1.5 (requested by sommerfeld):
Clean up argument parsing.
 1.4.2.3  27-Jun-2000  he Pull up revision 1.6 (requested by sommerfeld):
Add support for the documented but unimplemented -a flag.
 1.4.2.2  10-May-2000  he Pull up revisions 1.1-1.4 (requested by jhawk):
Add a driver for ``wi'', Lucent "Orinoco"/Wavelan.
 1.4.2.1  04-May-2000  he file wiconfig.c was added on branch netbsd-1-4 on 2000-05-10 19:30:00 +0000
 1.5.4.3  03-Feb-2001  he Pull up revision 1.10 (requested by jdolecek):
Cast isprint() parameter to (unsigned char) - it looses if the
character has high bit set when the architecture is using signed
char by default. Fixes PR#11556.
 1.5.4.2  07-Aug-2000  enami Pull up rev. 1.7 and 1.8 (approved by jhawk):
 1.8  07-Aug-2000  enami Add our RCS Id and restore original Id.
 1.7  06-Jul-2000  enami - Process all passed option rather than ignoring silently except the first one.
- Centerize the check whether an interface is specified.
- Print maximum data length.
- Swap wi_type and wi_code in struct wi_table so that wi_type matches with
wi_type in wi_req.
 1.5.4.1  26-Jun-2000  sommerfeld Pullup 1.5 (approved by thorpej)
Add support for the documented, but unimplemented, -a flag.
 1.33.2.1  30-Aug-2004  tron Pull up revision 1.34 (requested by wrstuden in ticket #792):
Document recently-revived -A option, which sets the authentication
type. Eventually we want ifconfig to handle this, but we support
it here until ifconfig gets updated.
 1.39.4.1  03-Sep-2007  wrstuden Sync w/ NetBSD-4-RC_1
 1.39.2.1  10-Jun-2007  bouyer Pull up following revision(s) (requested by sborrill in ticket #712):
usr.sbin/wiconfig/wiconfig.c: revision 1.40
wiconfig should exit with status 1 if used on an interface which does
not exist or is not wireless. The previous commit broke this, so add
explicit check before any other task. Approved by dyoung@
 1.40.12.1  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.41.6.1  13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.43.2.1  17-Apr-2012  yamt sync with head
 1.45.28.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed