The NetBSD Project

CVS log for src/usr.sbin/wiconfig/wiconfig.c

[BACK] Up to [cvs.NetBSD.org] / src / usr.sbin / wiconfig

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.44 / (download) - annotate - [select for diffs], Thu Apr 12 11:46:14 2012 UTC (13 months, 1 week ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, tls-maxphys-nbase, tls-maxphys-base, tls-maxphys, agc-symver-base, agc-symver, HEAD
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (colored)

Don't assign non-integral constants to integral variables.

Revision 1.43 / (download) - annotate - [select for diffs], Tue Aug 30 21:01:50 2011 UTC (20 months, 3 weeks ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: yamt-pagecache
Changes since 1.42: +65 -84 lines
Diff to previous 1.42 (colored)

ANSIfy + static + __dead

Revision 1.42 / (download) - annotate - [select for diffs], Sun Apr 19 01:52:09 2009 UTC (4 years, 1 month ago) by lukem
Branch: MAIN
CVS Tags: matt-premerge-20091211, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jym-xensuspend-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.41: +38 -38 lines
Diff to previous 1.41 (colored)

Fix WARNS=4 (-Wcast-qual -Wextra)

Revision 1.41 / (download) - annotate - [select for diffs], Mon Jul 21 13:37:00 2008 UTC (4 years, 10 months ago) by lukem
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2
Branch point for: jym-xensuspend
Changes since 1.40: +4 -5 lines
Diff to previous 1.40 (colored)

Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.

Revision 1.40 / (download) - annotate - [select for diffs], Fri Jun 8 21:47:20 2007 UTC (5 years, 11 months ago) by sborrill
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-1, wrstuden-revivesa-base, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: wrstuden-revivesa
Changes since 1.39: +30 -2 lines
Diff to previous 1.39 (colored)

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@

Revision 1.39 / (download) - annotate - [select for diffs], Sat Oct 7 00:47:18 2006 UTC (6 years, 7 months ago) by elad
Branch: MAIN
CVS Tags: netbsd-4-base
Branch point for: wrstuden-fixsa, netbsd-4
Changes since 1.38: +15 -9 lines
Diff to previous 1.38 (colored)

PR/23774: Jorge Acereda: wiconfig exits on non-critical errors

Patch (with some style nits) applied, thanks!

Revision 1.38 / (download) - annotate - [select for diffs], Wed Jun 28 15:05:54 2006 UTC (6 years, 10 months ago) by drochner
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored)

if a data read from the interface fails, print the "wreq" type
before erroring out

Revision 1.37 / (download) - annotate - [select for diffs], Thu Jun 2 09:47:37 2005 UTC (7 years, 11 months ago) by lukem
Branch: MAIN
Changes since 1.36: +3 -2 lines
Diff to previous 1.36 (colored)

appease gcc -Wuninitialized

Revision 1.36 / (download) - annotate - [select for diffs], Thu Aug 26 20:26:08 2004 UTC (8 years, 8 months ago) by wiz
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Changes since 1.35: +2 -3 lines
Diff to previous 1.35 (colored)

Remove duplicate include. Noted by Jeff Ito.

Revision 1.35 / (download) - annotate - [select for diffs], Wed Aug 25 18:49:06 2004 UTC (8 years, 8 months ago) by wiz
Branch: MAIN
Changes since 1.34: +6 -8 lines
Diff to previous 1.34 (colored)

Sync usage with man page, and fix a typo in a comment.

Revision 1.34 / (download) - annotate - [select for diffs], Wed Aug 25 18:29:28 2004 UTC (8 years, 8 months ago) by wrstuden
Branch: MAIN
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored)

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.

Revision 1.33 / (download) - annotate - [select for diffs], Fri Jan 23 02:32:52 2004 UTC (9 years, 4 months ago) by wrstuden
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.32: +5 -4 lines
Diff to previous 1.32 (colored)

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. :-)

Revision 1.32 / (download) - annotate - [select for diffs], Sun Nov 16 09:41:01 2003 UTC (9 years, 6 months ago) by dyoung
Branch: MAIN
Changes since 1.31: +7 -7 lines
Diff to previous 1.31 (colored)

From Steve Woodford (scw@): fix wi(4) and wiconfig(8) on big-endian
machines.

Revision 1.31 / (download) - annotate - [select for diffs], Mon Oct 13 08:02:02 2003 UTC (9 years, 7 months ago) by dyoung
Branch: MAIN
Changes since 1.30: +4 -3 lines
Diff to previous 1.30 (colored)

Use new 802.11 header files.

Revision 1.30 / (download) - annotate - [select for diffs], Thu May 15 00:02:25 2003 UTC (10 years ago) by itojun
Branch: MAIN
Changes since 1.29: +5 -5 lines
Diff to previous 1.29 (colored)

strcpy audit (command line argument was used as src, subject to overrun)

Revision 1.29 / (download) - annotate - [select for diffs], Thu Apr 3 17:26:33 2003 UTC (10 years, 1 month ago) by perry
Branch: MAIN
Changes since 1.28: +45 -2 lines
Diff to previous 1.28 (colored)

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 ?

Revision 1.28 / (download) - annotate - [select for diffs], Sat Nov 16 22:39:57 2002 UTC (10 years, 6 months ago) by dyoung
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.27: +22 -149 lines
Diff to previous 1.27 (colored)

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.

Revision 1.27 / (download) - annotate - [select for diffs], Thu Sep 26 16:53:27 2002 UTC (10 years, 7 months ago) by onoe
Branch: MAIN
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

Changed the name for resource id 0xfd45 to match the reality.
	WI_RID_OWN_BEACON_INT -> WI_RID_CUR_BEACON_INT

Revision 1.26 / (download) - annotate - [select for diffs], Sun Aug 11 12:16:27 2002 UTC (10 years, 9 months ago) by tron
Branch: MAIN
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

Make this build after "wi_ieee.h" has been changed.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Apr 9 02:56:17 2002 UTC (11 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Changes since 1.24: +5 -5 lines
Diff to previous 1.24 (colored)

Use __RCSID() and __COPYRIGHT().

Revision 1.24 / (download) - annotate - [select for diffs], Tue Apr 2 16:59:14 2002 UTC (11 years, 1 month ago) by ichiro
Branch: MAIN
Changes since 1.23: +4 -4 lines
Diff to previous 1.23 (colored)

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

Revision 1.23 / (download) - annotate - [select for diffs], Mon Mar 4 01:28:09 2002 UTC (11 years, 2 months ago) by dbj
Branch: MAIN
Changes since 1.22: +6 -1 lines
Diff to previous 1.22 (colored)

when no access points are available, explicitly state so
rather then printing a list heading and nothing else.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Mar 4 01:26:58 2002 UTC (11 years, 2 months ago) by dbj
Branch: MAIN
Changes since 1.21: +23 -1 lines
Diff to previous 1.21 (colored)

print out channel list as a list of decimal channels rather
than as a bitmask printed as a single decimal number

Revision 1.21 / (download) - annotate - [select for diffs], Mon Mar 4 01:24:53 2002 UTC (11 years, 2 months ago) by dbj
Branch: MAIN
Changes since 1.20: +4 -4 lines
Diff to previous 1.20 (colored)

s/Kusec/msec/

Revision 1.20 / (download) - annotate - [select for diffs], Sun Mar 3 05:00:03 2002 UTC (11 years, 2 months ago) by dbj
Branch: MAIN
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

use all 4 bytes of result length when scanning APs.

Revision 1.19 / (download) - annotate - [select for diffs], Mon Jan 28 22:07:30 2002 UTC (11 years, 3 months ago) by ichiro
Branch: MAIN
Changes since 1.18: +4 -4 lines
Diff to previous 1.18 (colored)

It is missing fflush() when scanning the network and no avaible AP.

Revision 1.18 / (download) - annotate - [select for diffs], Fri Jan 25 17:17:21 2002 UTC (11 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.17: +13 -4 lines
Diff to previous 1.17 (colored)

If WI_RID_SCAN_APS is not defined, then don't support it.

Revision 1.17 / (download) - annotate - [select for diffs], Tue Jan 22 02:09:11 2002 UTC (11 years, 4 months ago) by ichiro
Branch: MAIN
Changes since 1.16: +49 -9 lines
Diff to previous 1.16 (colored)

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

Revision 1.16 / (download) - annotate - [select for diffs], Mon Jan 21 12:59:50 2002 UTC (11 years, 4 months ago) by ichiro
Branch: MAIN
Changes since 1.15: +3 -2 lines
Diff to previous 1.15 (colored)

display Beacon Interval of STA

Revision 1.15 / (download) - annotate - [select for diffs], Mon Jan 21 11:35:06 2002 UTC (11 years, 4 months ago) by ichiro
Branch: MAIN
Changes since 1.14: +140 -7 lines
Diff to previous 1.14 (colored)

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

Revision 1.14 / (download) - annotate - [select for diffs], Wed May 16 10:49:06 2001 UTC (12 years ago) by tsubai
Branch: MAIN
Changes since 1.13: +18 -14 lines
Diff to previous 1.13 (colored)

Big-endian support.

Revision 1.13 / (download) - annotate - [select for diffs], Tue May 15 04:16:21 2001 UTC (12 years ago) by ichiro
Branch: MAIN
Changes since 1.12: +11 -7 lines
Diff to previous 1.12 (colored)

It enabled it to control roaming mode and authentication mode.

Revision 1.12 / (download) - annotate - [select for diffs], Sun May 6 03:28:57 2001 UTC (12 years ago) by ichiro
Branch: MAIN
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

sys/dev/pcmcia/if_wi_ieee.h was moved to sys/dev/ic/wi_ieee.h

Revision 1.11 / (download) - annotate - [select for diffs], Mon Feb 19 23:22:49 2001 UTC (12 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.10: +3 -4 lines
Diff to previous 1.10 (colored)

convert to use getprogname()

Revision 1.10 / (download) - annotate - [select for diffs], Fri Nov 24 09:53:36 2000 UTC (12 years, 6 months ago) by jdolecek
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

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.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Aug 23 19:01:06 2000 UTC (12 years, 9 months ago) by jhawk
Branch: MAIN
Changes since 1.8: +7 -4 lines
Diff to previous 1.8 (colored)

Add support for "microwave oven robustness" with wiconfig -M.

Revision 1.8 / (download) - annotate - [select for diffs], Mon Aug 7 00:55:08 2000 UTC (12 years, 9 months ago) by enami
Branch: MAIN
Changes since 1.7: +4 -2 lines
Diff to previous 1.7 (colored)

Add our RCS Id and restore original Id.
Add our RCS Id and restore original Id.

Revision 1.8 / (download) - annotate - [select for diffs], Mon Aug 7 00:55:08 2000 UTC (12 years, 9 months ago) by enami
Branch: MAIN
Changes since 1.7: +4 -2 lines
Diff to previous 1.7 (colored)

Add our RCS Id and restore original Id.
Add our RCS Id and restore original Id.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jul 6 03:37:26 2000 UTC (12 years, 10 months ago) by enami
Branch: MAIN
Changes since 1.6: +179 -163 lines
Diff to previous 1.6 (colored)

- 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.
- 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.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jul 6 03:37:26 2000 UTC (12 years, 10 months ago) by enami
Branch: MAIN
Changes since 1.6: +179 -163 lines
Diff to previous 1.6 (colored)

- 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.
- 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.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Jun 24 04:15:49 2000 UTC (12 years, 11 months ago) by sommerfeld
Branch: MAIN
Changes since 1.5: +7 -3 lines
Diff to previous 1.5 (colored)

Add support for the documented, but unimplemented, -a flag.

Revision 1.5 / (download) - annotate - [select for diffs], Tue May 23 09:04:33 2000 UTC (13 years ago) by enami
Branch: MAIN
CVS Tags: netbsd-1-5-base, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.4: +3 -4 lines
Diff to previous 1.4 (colored)

When we steal an argument, just bump optind instead of copying
rest of argument vector.

Revision 1.4 / (download) - annotate - [select for diffs], Thu May 4 21:19:12 2000 UTC (13 years ago) by explorer
Branch: MAIN
Branch point for: netbsd-1-4
Changes since 1.3: +5 -3 lines
Diff to previous 1.3 (colored)

when setting the key, don't dump interface stats too.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Mar 26 08:58:11 2000 UTC (13 years, 2 months ago) by itojun
Branch: MAIN
Changes since 1.2: +11 -6 lines
Diff to previous 1.2 (colored)

don't traverse NULL pointer on "wiconfig -p 1".
From: veego

Revision 1.2 / (download) - annotate - [select for diffs], Fri Feb 4 07:59:45 2000 UTC (13 years, 3 months ago) by explorer
Branch: MAIN
Changes since 1.1: +237 -24 lines
Diff to previous 1.1 (colored)

bring over WEP mode from FreeBSD/OpenBSD

Revision 1.1 / (download) - annotate - [select for diffs], Wed Jul 14 22:33:34 1999 UTC (13 years, 10 months ago) by sommerfeld
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, comdex-fall-1999-base, comdex-fall-1999

Utility to configure wi* 802.11 driver

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>