Home | History | Annotate | only in /src/usr.sbin/wiconfig
History log of /src/usr.sbin/wiconfig
RevisionDateAuthorComments
 1.9 03-Jun-2023  lukem bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
GCC_NO_warning
to
CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
 1.8 13-Oct-2019  mrg introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints. many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."
 1.7 15-Jun-2016  riastradh branches: 1.7.16;
Kill another strict aliasing violation.
 1.6 10-Aug-2012  joerg Remove many HAVE_GCC || HAVE_PCC conditionals as the options also apply
to Clang. Add a few cases of HAVE_LLVM for -fno-strict-aliasing.
 1.5 20-Jun-2011  mrg branches: 1.5.2;
remove most of the remaining HAVE_GCC tests that are always true in
the modern world.
 1.4 29-Aug-2008  gmcgarry branches: 1.4.18;
Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC.
 1.3 11-May-2006  mrg branches: 1.3.20;
use -fno-strict-aliasing with GCC4.
 1.2 23-Jul-1999  thorpej branches: 1.2.6;
Clean this up.
 1.1 14-Jul-1999  sommerfeld Utility to configure wi* 802.11 driver
 1.2.6.2 10-May-2000  he Pull up revisions 1.1-1.2 (requested by jhawk):
Add a driver for ``wi'', Lucent "Orinoco"/Wavelan.
 1.2.6.1 23-Jul-1999  he file Makefile was added on branch netbsd-1-4 on 2000-05-10 19:29:02 +0000
 1.3.20.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.4.18.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.5.2.1 30-Oct-2012  yamt sync with head
 1.7.16.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.34 18-Mar-2014  riastradh Merge riastradh-drm2 to HEAD.
 1.33 20-Jul-2013  wiz Use Mt for email addresses.
 1.32 02-Jul-2009  wiz branches: 1.32.6; 1.32.12; 1.32.16;
New sentence, new line. Remove unnecessary Bk/Ek pairs.
 1.31 02-Jul-2009  dyoung Deprecate wiconfig's -r, -g, -m options. Note that equivalent
options are available in ifconfig(8).
 1.30 25-Aug-2004  wiz Minimally describe -g and -h; some consistency changes.
 1.29 25-Aug-2004  wiz Bump date for -A documentation, and sort option descriptions.
 1.28 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.27 16-Apr-2003  wiz branches: 1.27.2;
Bump date for last, and add commas after i.e. and e.g.
 1.26 31-Mar-2003  perry explain what "Microwave Oven Robustness" means.
An attempt to close PR bin/12177 by jhawk.
 1.25 04-Jan-2003  wiz Sync SYNOPSIS with DESCRIPTION. From Igor Sobrado in PR 19654.
 1.24 17-Nov-2002  wiz Bump date. Sort options. New sentence, new line. Other minor fixes.
 1.23 16-Nov-2002  dyoung Removed deprecated flags from wiconfig(8) manual page.
 1.22 06-Feb-2002  wiz Fix a typo, and correct an abbreviation (Mhz -> MHz).
 1.21 03-Feb-2002  fair Revise wording about the -q and -c options per PR 12035.
Correct nroff nits, and fix some incorrect abbreviation usage
("i.e." was used where "e.g." should have been used).
 1.20 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.19 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.18 16-Jan-2002  wiz Whitespace nits; use standard headers.
 1.17 16-Jan-2002  onoe Fixed the range of max data length (dot11FragmentationThreshold)
for -d option: 350..2304 -> 256..2346 (default is 2304)
Fixed the range of RTS/CTS threshold (dot11RTSThreshold)
for -r option: 0..2047 -> 0..2347 (default is 2347)
 1.16 21-Nov-2001  enami s/^\.Are/.Ar/
 1.15 15-May-2001  ichiro It enabled it to control roaming mode and authentication mode.
 1.14 03-Apr-2001  wiz Don't xref old name of the command, just Ic it. Whitespace fix.
 1.13 11-Jan-2001  jhawk Change wi(4)'s default from ad-hoc mode to BSS mode. Also
some minor manpage fixes.
 1.12 07-Nov-2000  lukem use .Xr
 1.11 23-Aug-2000  jhawk Add support for "microwave oven robustness" with wiconfig -M.
 1.10 27-Jul-2000  onoe Confirmed the maximum length of the key for WaveLAN Gold cards is
13 characters, not 14. The 13 characters (104bit) secret will be
combined with 24-bit IV to consist the seed for 128-bit RC4.
Though maximum 14 characters can be configured in seven 16-bit hardware
registers, the last charactoer is apparently ignored both for encryption
and decryption.
 1.9 04-Jul-2000  itojun beautify SYNOPSIS section with .Bk - .Ek pair.
correctly describe "no option" behavior (show 802.11 setting).
add comment about statistics update delay (-o).

TODO: should put \n after sentences
 1.8 03-Jul-2000  enami Fix few typos.
 1.7 03-Jul-2000  enami Don't hardcode like "[ -v 1|2|3|4 ]".
 1.6 28-Jun-2000  onoe Update the description of available channel for Japan.
The regulations has been changed to adopt 802.11b since Oct. 99.
For 11Mbps NICs sold in Japan, all DS channels (1..14) are available.
 1.5 04-Feb-2000  explorer branches: 1.5.2; 1.5.6;
document OS versions
 1.4 04-Feb-2000  explorer bring over WEP mode from FreeBSD/OpenBSD
 1.3 15-Jul-1999  sommerfeld Clarify that the empty string, not the string ANY, as the network name means
pick any access point
 1.2 14-Jul-1999  sommerfeld Tweak manpage to reflect wicontrol->wiconfig rename. (This, and all
previous commits of the wi driver, were done using the driver in
ad-hoc mode in the 34th floor bar of the SAS Radisson Plaza hotel in
Oslo, Norway).
 1.1 14-Jul-1999  sommerfeld Utility to configure wi* 802.11 driver
 1.5.6.5 26-May-2001  he Pull up revision 1.13 (via patch, requested by jhawk):
Change wi(4)'s default from ad-hoc mode to BSS mode. Also
some minor manual page fixes.
 1.5.6.4 27-Jul-2000  onoe Pull up rev 1.9-1.10 (approved by jhawk)

1.9 by itojun
beautify SYNOPSIS section with .Bk - .Ek pair.
correctly describe "no option" behavior (show 802.11 setting).
add comment about statistics update delay (-o).
TODO: should put \n after sentences

1.10 by onoe
Confirmed the maximum length of the key for WaveLAN Gold cards is
13 characters, not 14. The 13 characters (104bit) secret will be
combined with 24-bit IV to consist the seed for 128-bit RC4.
Though maximum 14 characters can be configured in seven 16-bit hardware
registers, the last charactoer is apparently ignored both for encryption
and decryption.
 1.5.6.3 03-Jul-2000  thorpej Pull up rev. 1.8:
Fix few typos.
 1.5.6.2 03-Jul-2000  thorpej Pull up rev. 1.7:
Don't hardcode like "[ -v 1|2|3|4 ]".
 1.5.6.1 29-Jun-2000  thorpej Pull up rev. 1.6:
Update the description of available channel for Japan.
The regulations has been changed to adopt 802.11b since Oct. 99.
For 11Mbps NICs sold in Japan, all DS channels (1..14) are available.
 1.5.2.2 10-May-2000  he Pull up revisions 1.1-1.5 (requested by jhawk):
Add a driver for ``wi'', Lucent "Orinoco"/Wavelan.
 1.5.2.1 04-Feb-2000  he file wiconfig.8 was added on branch netbsd-1-4 on 2000-05-10 19:29:33 +0000
 1.27.2.2 30-Aug-2004  tron Pull up revision 1.29 (requested by wrstuden in ticket #793):
Bump date for -A documentation, and sort option descriptions.
 1.27.2.1 30-Aug-2004  tron Pull up revision 1.28 (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.32.16.1 23-Jul-2013  riastradh sync with HEAD
 1.32.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.32.6.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 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