Commit Graph

70 Commits

Author SHA1 Message Date
wiz 674e49816b New sentence, new line. Remove unnecessary Bk/Ek pairs. 2009-07-02 18:32:04 +00:00
dyoung 53e43e1e70 Deprecate wiconfig's -r, -g, -m options. Note that equivalent
options are available in ifconfig(8).
2009-07-02 17:45:25 +00:00
lukem 6363aba79d Fix WARNS=4 (-Wcast-qual -Wextra) 2009-04-19 01:52:09 +00:00
gmcgarry 3c9a95916d Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
lukem 9c1945664c Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 13:36:57 +00:00
sborrill 9dd4b8a256 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@
2007-06-08 21:47:20 +00:00
elad 13ad340578 PR/23774: Jorge Acereda: wiconfig exits on non-critical errors
Patch (with some style nits) applied, thanks!
2006-10-07 00:47:18 +00:00
drochner a2362baffb if a data read from the interface fails, print the "wreq" type
before erroring out
2006-06-28 15:05:54 +00:00
mrg c6d4b90983 use -fno-strict-aliasing with GCC4. 2006-05-11 08:41:07 +00:00
lukem 311c22130d appease gcc -Wuninitialized 2005-06-02 09:47:37 +00:00
wiz 6045854359 Remove duplicate include. Noted by Jeff Ito. 2004-08-26 20:26:08 +00:00
wiz c648671766 Sync usage with man page, and fix a typo in a comment. 2004-08-25 18:49:06 +00:00
wiz f8b131dd8f Minimally describe -g and -h; some consistency changes. 2004-08-25 18:48:54 +00:00
wiz ab0dd82b9c Bump date for -A documentation, and sort option descriptions. 2004-08-25 18:34:54 +00:00
wrstuden 2cf9ffa1ee 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.
2004-08-25 18:29:28 +00:00
wrstuden 00675c7efd 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. :-)
2004-01-23 02:32:52 +00:00
dyoung 18652e3785 From Steve Woodford (scw@): fix wi(4) and wiconfig(8) on big-endian
machines.
2003-11-16 09:41:01 +00:00
dyoung 690ab87058 Use new 802.11 header files. 2003-10-13 08:02:02 +00:00
itojun a37f9a315d strcpy audit (command line argument was used as src, subject to overrun) 2003-05-15 00:02:25 +00:00
wiz 4e9fe74ce2 Bump date for last, and add commas after i.e. and e.g. 2003-04-16 12:43:43 +00:00
perry 69c34ee0f1 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 ?
2003-04-03 17:26:33 +00:00
perry ba7c369fa0 explain what "Microwave Oven Robustness" means.
An attempt to close PR bin/12177 by jhawk.
2003-03-31 21:19:06 +00:00
wiz 79ebccc3b5 Sync SYNOPSIS with DESCRIPTION. From Igor Sobrado in PR 19654. 2003-01-04 01:10:47 +00:00
wiz c59faa6fa4 Bump date. Sort options. New sentence, new line. Other minor fixes. 2002-11-17 01:26:30 +00:00
dyoung 8804a2c4e6 Removed deprecated flags from wiconfig(8) manual page. 2002-11-16 22:56:06 +00:00
dyoung 3e30600b49 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.
2002-11-16 22:39:57 +00:00
onoe 55ef0eb8b9 Changed the name for resource id 0xfd45 to match the reality.
WI_RID_OWN_BEACON_INT -> WI_RID_CUR_BEACON_INT
2002-09-26 16:52:44 +00:00
tron 92cd63769f Make this build after "wi_ieee.h" has been changed. 2002-08-11 12:16:27 +00:00
thorpej a819d2296f Use __RCSID() and __COPYRIGHT(). 2002-04-09 02:56:17 +00:00
ichiro 56d2b07be1 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
2002-04-02 16:59:14 +00:00
dbj 6e4b27cd49 when no access points are available, explicitly state so
rather then printing a list heading and nothing else.
2002-03-04 01:28:09 +00:00
dbj 7ec184ce2e print out channel list as a list of decimal channels rather
than as a bitmask printed as a single decimal number
2002-03-04 01:26:58 +00:00
dbj 1d7d73ee19 s/Kusec/msec/ 2002-03-04 01:24:53 +00:00
dbj aee0e0eba3 use all 4 bytes of result length when scanning APs. 2002-03-03 05:00:03 +00:00
wiz eb0430f0ee Fix a typo, and correct an abbreviation (Mhz -> MHz). 2002-02-06 19:07:27 +00:00
fair 622875edb1 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).
2002-02-03 09:19:55 +00:00
ichiro 3ee53752e9 It is missing fflush() when scanning the network and no avaible AP. 2002-01-28 22:07:30 +00:00
christos d08bc504d8 If WI_RID_SCAN_APS is not defined, then don't support it. 2002-01-25 17:17:21 +00:00
ichiro 66a56d4efe 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
2002-01-22 02:09:11 +00:00
ichiro 780b3934d4 display Beacon Interval of STA 2002-01-21 12:59:50 +00:00
ichiro 1635f76bf6 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
2002-01-21 11:35:06 +00:00
wiz d2eb889fd9 Whitespace nits; use standard headers. 2002-01-16 12:01:12 +00:00
onoe 34bf2039e8 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)
2002-01-16 06:54:17 +00:00
enami bbd072ffbb s/^\.Are/.Ar/ 2001-11-21 22:29:20 +00:00
tsubai eef5fa50d3 Big-endian support. 2001-05-16 10:45:36 +00:00
ichiro a420303a55 It enabled it to control roaming mode and authentication mode. 2001-05-15 04:16:21 +00:00
ichiro 16aa429153 sys/dev/pcmcia/if_wi_ieee.h was moved to sys/dev/ic/wi_ieee.h 2001-05-06 03:28:57 +00:00
wiz 7557a03344 Don't xref old name of the command, just Ic it. Whitespace fix. 2001-04-03 11:42:40 +00:00
cgd 25bdbb661e convert to use getprogname() 2001-02-19 23:22:40 +00:00
jhawk 0d99070cf2 Change wi(4)'s default from ad-hoc mode to BSS mode. Also
some minor manpage fixes.
2001-01-11 19:33:51 +00:00