The NetBSD Project

CVS log for src/sys/dev/ic/wi.c

[BACK] Up to [cvs.netbsd.org] / src / sys / dev / ic

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.225.4.3 / (download) - annotate - [select for diffs], Sat May 16 10:41:24 2009 UTC (7 weeks ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.225.4.2: +3 -3 lines
Diff to previous 1.225.4.2 (colored) to branchpoint 1.225 (colored) next main 1.226 (colored)

sync with head

Revision 1.228.4.1 / (download) - annotate - [select for diffs], Wed May 13 17:19:25 2009 UTC (7 weeks, 3 days ago) by jym
Branch: jym-xensuspend
Changes since 1.228: +7 -5 lines
Diff to previous 1.228 (colored) next main 1.229 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.230 / (download) - annotate - [select for diffs], Tue May 12 14:25:18 2009 UTC (7 weeks, 4 days ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base5, yamt-nfs-mp-base4, jym-xensuspend-nbase, jym-xensuspend-base, HEAD
Changes since 1.229: +3 -3 lines
Diff to previous 1.229 (colored)

struct device * -> device_t, no functional changes intended.

Revision 1.225.4.2 / (download) - annotate - [select for diffs], Mon May 4 08:12:45 2009 UTC (2 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.225.4.1: +12 -7 lines
Diff to previous 1.225.4.1 (colored) to branchpoint 1.225 (colored)

sync with head.

Revision 1.226.8.2 / (download) - annotate - [select for diffs], Tue Apr 28 07:35:27 2009 UTC (2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.226.8.1: +6 -4 lines
Diff to previous 1.226.8.1 (colored) to branchpoint 1.226 (colored) next main 1.227 (colored)

Sync with HEAD.

Revision 1.229 / (download) - annotate - [select for diffs], Wed Apr 15 20:44:25 2009 UTC (2 months, 2 weeks ago) by elad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base
Changes since 1.228: +6 -4 lines
Diff to previous 1.228 (colored)

Remove a few KAUTH_GENERIC_ISSUSER in favor of more descriptive
alternatives.

Discussed on tech-kern:

	http://mail-index.netbsd.org/tech-kern/2009/04/11/msg004798.html

Input from ad@, christos@, dyoung@, tsutsui@.

Okay ad@.

Revision 1.226.8.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:17:56 2009 UTC (5 months, 2 weeks ago) by skrll
Branch: nick-hppapmap
Changes since 1.226: +8 -5 lines
Diff to previous 1.226 (colored)

Sync with HEAD.

Revision 1.224.6.2 / (download) - annotate - [select for diffs], Sat Jan 17 13:28:56 2009 UTC (5 months, 2 weeks ago) by mjf
Branch: mjf-devfs2
Changes since 1.224.6.1: +6 -3 lines
Diff to previous 1.224.6.1 (colored) to branchpoint 1.224 (colored) next main 1.225 (colored)

Sync with HEAD.

Revision 1.226.6.1 / (download) - annotate - [select for diffs], Sat Dec 13 01:14:15 2008 UTC (6 months, 3 weeks ago) by haad
Branch: haad-dm
Changes since 1.226: +8 -5 lines
Diff to previous 1.226 (colored) next main 1.227 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.228 / (download) - annotate - [select for diffs], Wed Nov 12 12:36:11 2008 UTC (7 months, 3 weeks ago) by ad
Branch: MAIN
CVS Tags: nick-hppapmap-base2, mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: jym-xensuspend
Changes since 1.227: +4 -4 lines
Diff to previous 1.227 (colored)

Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.

Revision 1.227 / (download) - annotate - [select for diffs], Fri Nov 7 00:20:03 2008 UTC (7 months, 3 weeks ago) by dyoung
Branch: MAIN
Changes since 1.226: +6 -3 lines
Diff to previous 1.226 (colored)

*** Summary ***

When a link-layer address changes (e.g., ifconfig ex0 link
02:de:ad:be:ef:02 active), send a gratuitous ARP and/or a Neighbor
Advertisement to update the network-/link-layer address bindings
on our LAN peers.

Refuse a change of ethernet address to the address 00:00:00:00:00:00
or to any multicast/broadcast address.  (Thanks matt@.)

Reorder ifnet ioctl operations so that driver ioctls may inherit
the functions of their "class"---ether_ioctl(), fddi_ioctl(), et
cetera---and the class ioctls may inherit from the generic ioctl,
ifioctl_common(), but both driver- and class-ioctls may override
the generic behavior.  Make network drivers share more code.

Distinguish a "factory" link-layer address from others for the
purposes of both protecting that address from deletion and computing
EUI64.

Return consistent, appropriate error codes from network drivers.

Improve readability.  KNF.

*** Details ***

In if_attach(), always initialize the interface ioctl routine,
ifnet->if_ioctl, if the driver has not already initialized it.
Delete if_ioctl == NULL tests everywhere else, because it cannot
happen.

In the ioctl routines of network interfaces, inherit common ioctl
behaviors by calling either ifioctl_common() or whichever ioctl
routine is appropriate for the class of interface---e.g., ether_ioctl()
for ethernets.

Stop (ab)using SIOCSIFADDR and start to use SIOCINITIFADDR.  In
the user->kernel interface, SIOCSIFADDR's argument was an ifreq,
but on the protocol->ifnet interface, SIOCSIFADDR's argument was
an ifaddr.  That was confusing, and it would work against me as I
make it possible for a network interface to overload most ioctls.
On the protocol->ifnet interface, replace SIOCSIFADDR with
SIOCINITIFADDR.  In ifioctl(), return EPERM if userland tries to
invoke SIOCINITIFADDR.

In ifioctl(), give the interface the first shot at handling most
interface ioctls, and give the protocol the second shot, instead
of the other way around. Finally, let compatibility code (COMPAT_OSOCK)
take a shot.

Pull device initialization out of switch statements under
SIOCINITIFADDR.  For example, pull ..._init() out of any switch
statement that looks like this:

        switch (...->sa_family) {
        case ...:
                ..._init();
                ...
                break;
        ...
        default:
                ..._init();
                ...
                break;
        }

Rewrite many if-else clauses that handle all permutations of IFF_UP
and IFF_RUNNING to use a switch statement,

        switch (x & (IFF_UP|IFF_RUNNING)) {
        case 0:
                ...
                break;
        case IFF_RUNNING:
                ...
                break;
        case IFF_UP:
                ...
                break;
        case IFF_UP|IFF_RUNNING:
                ...
                break;
        }

unifdef lots of code containing #ifdef FreeBSD, #ifdef NetBSD, and
#ifdef SIOCSIFMTU, especially in fwip(4) and in ndis(4).

In ipw(4), remove an if_set_sadl() call that is out of place.

In nfe(4), reuse the jumbo MTU logic in ether_ioctl().

Let ethernets register a callback for setting h/w state such as
promiscuous mode and the multicast filter in accord with a change
in the if_flags: ether_set_ifflags_cb() registers a callback that
returns ENETRESET if the caller should reset the ethernet by calling
if_init(), 0 on success, != 0 on failure.  Pull common code from
ex(4), gem(4), nfe(4), sip(4), tlp(4), vge(4) into ether_ioctl(),
and register if_flags callbacks for those drivers.

Return ENOTTY instead of EINVAL for inappropriate ioctls.  In
zyd(4), use ENXIO instead of ENOTTY to indicate that the device is
not any longer attached.

Add to if_set_sadl() a boolean 'factory' argument that indicates
whether a link-layer address was assigned by the factory or some
other source.  In a comment, recommend using the factory address
for generating an EUI64, and update in6_get_hw_ifid() to prefer a
factory address to any other link-layer address.

Add a routing message, RTM_LLINFO_UPD, that tells protocols to
update the binding of network-layer addresses to link-layer addresses.
Implement this message in IPv4 and IPv6 by sending a gratuitous
ARP or a neighbor advertisement, respectively.  Generate RTM_LLINFO_UPD
messages on a change of an interface's link-layer address.

In ether_ioctl(), do not let SIOCALIFADDR set a link-layer address
that is broadcast/multicast or equal to 00:00:00:00:00:00.

Make ether_ioctl() call ifioctl_common() to handle ioctls that it
does not understand.

In gif(4), initialize if_softc and use it, instead of assuming that
the gif_softc and ifp overlap.

Let ifioctl_common() handle SIOCGIFADDR.

Sprinkle rtcache_invariants(), which checks on DIAGNOSTIC kernels
that certain invariants on a struct route are satisfied.

In agr(4), rewrite agr_ioctl_filter() to be a bit more explicit
about the ioctls that we do not allow on an agr(4) member interface.

bzero -> memset.  Delete unnecessary casts to void *.  Use
sockaddr_in_init() and sockaddr_in6_init().  Compare pointers with
NULL instead of "testing truth".  Replace some instances of (type
*)0 with NULL.  Change some K&R prototypes to ANSI C, and join
lines.

Revision 1.224.6.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:28 2008 UTC (13 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.224: +55 -66 lines
Diff to previous 1.224 (colored)

Sync with HEAD.

Revision 1.225.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:33:46 2008 UTC (13 months, 2 weeks ago) by yamt
Branch: yamt-pf42
Changes since 1.225: +2 -9 lines
Diff to previous 1.225 (colored) next main 1.226 (colored)

sync with head.

Revision 1.225.4.1 / (download) - annotate - [select for diffs], Fri May 16 02:24:06 2008 UTC (13 months, 2 weeks ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.225: +2 -9 lines
Diff to previous 1.225 (colored)

sync with head.

Revision 1.226 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:51 2008 UTC (14 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, netbsd-5-base, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0, netbsd-5, matt-mips64-base2, hpcarm-cleanup-nbase, haad-dm-base1
Branch point for: nick-hppapmap, haad-dm
Changes since 1.225: +2 -9 lines
Diff to previous 1.225 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.225 / (download) - annotate - [select for diffs], Tue Apr 8 12:07:27 2008 UTC (14 months, 3 weeks ago) by cegger
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base
Branch point for: yamt-pf42, yamt-nfs-mp
Changes since 1.224: +55 -59 lines
Diff to previous 1.224 (colored)

use aprint_*_dev and device_xname

Revision 1.202.2.6 / (download) - annotate - [select for diffs], Mon Jan 21 09:43:12 2008 UTC (17 months, 1 week ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.202.2.5: +4 -39 lines
Diff to previous 1.202.2.5 (colored) next main 1.203 (colored)

sync with head

Revision 1.220.8.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:53:05 2008 UTC (17 months, 3 weeks ago) by matt
Branch: matt-armv6
Changes since 1.220.8.1: +4 -39 lines
Diff to previous 1.220.8.1 (colored) to branchpoint 1.220 (colored) next main 1.221 (colored)

sync with HEAD

Revision 1.223.2.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:54:19 2008 UTC (18 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.223: +4 -4 lines
Diff to previous 1.223 (colored) next main 1.224 (colored)

Sync with HEAD

Revision 1.222.4.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:46:25 2007 UTC (18 months, 1 week ago) by ad
Branch: vmlocking2
Changes since 1.222: +4 -39 lines
Diff to previous 1.222 (colored) next main 1.223 (colored)

Sync with head.

Revision 1.224 / (download) - annotate - [select for diffs], Thu Dec 20 21:08:18 2007 UTC (18 months, 2 weeks ago) by dyoung
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, vmlocking2-base3, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1
Branch point for: mjf-devfs2
Changes since 1.223: +4 -4 lines
Diff to previous 1.223 (colored)

Constify struct ifnet->if_sadl and every use throughout the tree.
Add if_set_sadl() that both sets the link-layer address length and
replaces the current link-layer address with a new one, and use it
throughout the tree.

Revision 1.222.6.1 / (download) - annotate - [select for diffs], Tue Dec 11 15:27:43 2007 UTC (18 months, 3 weeks ago) by yamt
Branch: yamt-kmem
Changes since 1.222: +2 -37 lines
Diff to previous 1.222 (colored) next main 1.223 (colored)

sync with head.

Revision 1.223 / (download) - annotate - [select for diffs], Sun Dec 9 20:28:00 2007 UTC (18 months, 3 weeks ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.222: +2 -37 lines
Diff to previous 1.222 (colored)

Merge jmcneill-pm branch.

Revision 1.220.8.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:27:20 2007 UTC (19 months, 4 weeks ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.220: +4 -7 lines
Diff to previous 1.220 (colored)

sync with HEAD

Revision 1.202.2.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:31:14 2007 UTC (20 months, 1 week ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.202.2.4: +3 -3 lines
Diff to previous 1.202.2.4 (colored)

sync with head.

Revision 1.220.6.3 / (download) - annotate - [select for diffs], Fri Oct 26 15:45:06 2007 UTC (20 months, 1 week ago) by joerg
Branch: jmcneill-pm
Changes since 1.220.6.2: +3 -3 lines
Diff to previous 1.220.6.2 (colored) to branchpoint 1.220 (colored) next main 1.221 (colored)

Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.221.4.1 / (download) - annotate - [select for diffs], Thu Oct 25 22:38:03 2007 UTC (20 months, 1 week ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.221: +3 -3 lines
Diff to previous 1.221 (colored) next main 1.222 (colored)

Sync with HEAD.

Revision 1.219.2.3 / (download) - annotate - [select for diffs], Tue Oct 23 20:07:53 2007 UTC (20 months, 1 week ago) by ad
Branch: vmlocking
Changes since 1.219.2.2: +3 -3 lines
Diff to previous 1.219.2.2 (colored) to branchpoint 1.219 (colored) next main 1.220 (colored)

Sync with head.

Revision 1.222 / (download) - annotate - [select for diffs], Fri Oct 19 12:00:05 2007 UTC (20 months, 2 weeks ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, mjf-devfs, jmcneill-pm-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: yamt-kmem, vmlocking2
Changes since 1.221: +3 -3 lines
Diff to previous 1.221 (colored)

machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h

Revision 1.219.2.2 / (download) - annotate - [select for diffs], Tue Oct 9 13:41:34 2007 UTC (20 months, 3 weeks ago) by ad
Branch: vmlocking
Changes since 1.219.2.1: +3 -6 lines
Diff to previous 1.219.2.1 (colored) to branchpoint 1.219 (colored)

Sync with head.

Revision 1.220.6.2 / (download) - annotate - [select for diffs], Tue Sep 4 15:05:47 2007 UTC (22 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.220.6.1: +2 -37 lines
Diff to previous 1.220.6.1 (colored) to branchpoint 1.220 (colored)

Convert wi(4) to jmcneill-pm style power management.

Revision 1.220.6.1 / (download) - annotate - [select for diffs], Mon Sep 3 16:48:10 2007 UTC (22 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.220: +3 -6 lines
Diff to previous 1.220 (colored)

Sync with HEAD.

Revision 1.202.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:35:23 2007 UTC (22 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.202.2.3: +16 -19 lines
Diff to previous 1.202.2.3 (colored)

sync with head.

Revision 1.220.2.1 / (download) - annotate - [select for diffs], Mon Sep 3 10:20:28 2007 UTC (22 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.220: +3 -6 lines
Diff to previous 1.220 (colored) next main 1.221 (colored)

Sync with HEAD.

Revision 1.221 / (download) - annotate - [select for diffs], Sat Sep 1 07:32:28 2007 UTC (22 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, nick-csl-alignment-base5
Branch point for: bouyer-xenamd64
Changes since 1.220: +3 -6 lines
Diff to previous 1.220 (colored)

Change a bazillion occurrences of code resembling this,

	error = (cmd == SIOCADDMULTI) ?
	    ether_addmulti(ifr, &sc->sc_ec) :
	    ether_delmulti(ifr, &sc->sc_ec);

	if (error == ENETRESET) {

to this,

	if ((error = ether_ioctl(ifp, cmd, data)) == ENETRESET) {

which does the same thing.

(A bazillion is a very large number.  This seems to make the i386
ALL kernel smaller by 3kB to 4kB.)

Use ifreq_getaddr() twice in es(4).

Whitespace nits.

Revision 1.219.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:06:19 2007 UTC (23 months, 3 weeks ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.219: +3 -3 lines
Diff to previous 1.219 (colored) next main 1.220 (colored)

Sync with head.

Revision 1.220 / (download) - annotate - [select for diffs], Mon Jul 9 21:00:40 2007 UTC (23 months, 3 weeks ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: nick-csl-alignment, matt-armv6, jmcneill-pm
Changes since 1.219: +3 -3 lines
Diff to previous 1.219 (colored)

Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements

Revision 1.219.2.1 / (download) - annotate - [select for diffs], Sun Jul 1 21:47:58 2007 UTC (2 years ago) by ad
Branch: vmlocking
Changes since 1.219: +3 -3 lines
Diff to previous 1.219 (colored)

Adapt to callout API change.

Revision 1.218.2.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:53:48 2007 UTC (2 years, 3 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.218: +14 -14 lines
Diff to previous 1.218 (colored) next main 1.219 (colored)

Sync with HEAD.

Revision 1.219 / (download) - annotate - [select for diffs], Sun Mar 4 06:02:03 2007 UTC (2 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.218: +14 -14 lines
Diff to previous 1.218 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.202.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:10:13 2007 UTC (2 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.202.2.2: +3 -3 lines
Diff to previous 1.202.2.2 (colored)

sync with head.

Revision 1.215.4.2 / (download) - annotate - [select for diffs], Fri Jan 12 00:57:36 2007 UTC (2 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.215.4.1: +3 -3 lines
Diff to previous 1.215.4.1 (colored) to branchpoint 1.215 (colored) next main 1.216 (colored)

Sync with head.

Revision 1.218 / (download) - annotate - [select for diffs], Thu Jan 4 18:44:45 2007 UTC (2 years, 5 months ago) by elad
Branch: MAIN
CVS Tags: post-newlock2-merge, newlock2-nbase, newlock2-base, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.217: +3 -3 lines
Diff to previous 1.217 (colored)

Consistent usage of KAUTH_GENERIC_ISSUSER.

Revision 1.202.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:48:04 2006 UTC (2 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.202.2.1: +4 -5 lines
Diff to previous 1.202.2.1 (colored)

sync with head.

Revision 1.215.6.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:17:07 2006 UTC (2 years, 6 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.215.6.1: +7 -7 lines
Diff to previous 1.215.6.1 (colored) to branchpoint 1.215 (colored) next main 1.216 (colored)

sync with head.

Revision 1.215.4.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:15 2006 UTC (2 years, 7 months ago) by ad
Branch: newlock2
Changes since 1.215: +2 -2 lines
Diff to previous 1.215 (colored)

Sync with head.

Revision 1.217 / (download) - annotate - [select for diffs], Thu Nov 16 01:32:52 2006 UTC (2 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.216: +7 -7 lines
Diff to previous 1.216 (colored)

__unused removal on arguments; approved by core.

Revision 1.215.6.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:05:45 2006 UTC (2 years, 8 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.215: +7 -7 lines
Diff to previous 1.215 (colored)

sync with head

Revision 1.216 / (download) - annotate - [select for diffs], Thu Oct 12 01:31:02 2006 UTC (2 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.215: +7 -7 lines
Diff to previous 1.215 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.211.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:50:03 2006 UTC (2 years, 9 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.211: +11 -9 lines
Diff to previous 1.211 (colored) next main 1.212 (colored)

sync with head

Revision 1.212.2.3 / (download) - annotate - [select for diffs], Fri Aug 11 15:44:11 2006 UTC (2 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.212.2.2: +4 -5 lines
Diff to previous 1.212.2.2 (colored) to branchpoint 1.212 (colored) next main 1.213 (colored)

sync with head

Revision 1.215 / (download) - annotate - [select for diffs], Fri Jul 21 16:48:49 2006 UTC (2 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, rpaulo-netinet-merge-pcb-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.214: +4 -5 lines
Diff to previous 1.214 (colored)

- Use the LWP cached credentials where sane.
- Minor cosmetic changes.

Revision 1.202.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:02:57 2006 UTC (3 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.202: +124 -47 lines
Diff to previous 1.202 (colored)

sync with head.

Revision 1.211.6.2 / (download) - annotate - [select for diffs], Thu Jun 1 22:36:27 2006 UTC (3 years, 1 month ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.211.6.1: +6 -3 lines
Diff to previous 1.211.6.1 (colored) next main 1.212 (colored)

Sync with head.

Revision 1.213.2.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:25 2006 UTC (3 years, 1 month ago) by tron
Branch: peter-altq
Changes since 1.213: +6 -3 lines
Diff to previous 1.213 (colored) next main 1.214 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.212.2.2 / (download) - annotate - [select for diffs], Wed May 24 10:57:42 2006 UTC (3 years, 1 month ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.212.2.1: +6 -3 lines
Diff to previous 1.212.2.1 (colored) to branchpoint 1.212 (colored)

sync with head.

Revision 1.214 / (download) - annotate - [select for diffs], Sun May 14 21:42:27 2006 UTC (3 years, 1 month ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, chap-midi
Changes since 1.213: +6 -3 lines
Diff to previous 1.213 (colored)

integrate kauth.

Revision 1.211.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:38:56 2006 UTC (3 years, 2 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.211: +8 -8 lines
Diff to previous 1.211 (colored)

Sync with head.

Revision 1.212.4.3 / (download) - annotate - [select for diffs], Wed Apr 19 03:24:41 2006 UTC (3 years, 2 months ago) by elad
Branch: elad-kernelauth
Changes since 1.212.4.2: +6 -6 lines
Diff to previous 1.212.4.2 (colored) to branchpoint 1.212 (colored) next main 1.213 (colored)

sync with head.

Revision 1.212.2.1 / (download) - annotate - [select for diffs], Mon Mar 13 09:07:21 2006 UTC (3 years, 3 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.212: +6 -6 lines
Diff to previous 1.212 (colored)

sync with head.

Revision 1.213 / (download) - annotate - [select for diffs], Sun Mar 12 03:22:02 2006 UTC (3 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, peter-altq-base, elad-kernelauth-base
Branch point for: peter-altq
Changes since 1.212: +6 -6 lines
Diff to previous 1.212 (colored)

Note in radiotap header file and manual page that radiotap fields
are little-endian.  Fix wi(4) and atw(4) to reflect this fact.

Revision 1.212.4.2 / (download) - annotate - [select for diffs], Fri Mar 10 14:39:02 2006 UTC (3 years, 3 months ago) by elad
Branch: elad-kernelauth
Changes since 1.212.4.1: +3 -3 lines
Diff to previous 1.212.4.1 (colored) to branchpoint 1.212 (colored)

generic_authorize() -> kauth_authorize_generic().

Revision 1.212.4.1 / (download) - annotate - [select for diffs], Wed Mar 8 01:44:48 2006 UTC (3 years, 3 months ago) by elad
Branch: elad-kernelauth
Changes since 1.212: +6 -3 lines
Diff to previous 1.212 (colored)

Adapt to kernel authorization KPI.

Revision 1.211.2.1 / (download) - annotate - [select for diffs], Wed Mar 1 09:28:13 2006 UTC (3 years, 4 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.211: +4 -4 lines
Diff to previous 1.211 (colored) next main 1.212 (colored)

sync with head.

Revision 1.212 / (download) - annotate - [select for diffs], Mon Feb 20 16:50:37 2006 UTC (3 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base
Branch point for: yamt-pdpolicy, elad-kernelauth
Changes since 1.211: +4 -4 lines
Diff to previous 1.211 (colored)

Use device_is_active() rather than testing dv_flags for DVF_ACTIVE
directly.

Revision 1.211 / (download) - annotate - [select for diffs], Sat Dec 24 20:27:30 2005 UTC (3 years, 6 months ago) by perry
Branch: MAIN
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.210: +3 -3 lines
Diff to previous 1.210 (colored)

Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.

Revision 1.130.2.12 / (download) - annotate - [select for diffs], Sun Dec 11 10:28:51 2005 UTC (3 years, 6 months ago) by christos
Branch: ktrace-lwp
Changes since 1.130.2.11: +6 -22 lines
Diff to previous 1.130.2.11 (colored) next main 1.131 (colored)

Sync with head.

Revision 1.209.6.1 / (download) - annotate - [select for diffs], Tue Nov 22 16:08:07 2005 UTC (3 years, 7 months ago) by yamt
Branch: yamt-readahead
Changes since 1.209: +6 -22 lines
Diff to previous 1.209 (colored) next main 1.210 (colored)

sync with head.

Revision 1.210 / (download) - annotate - [select for diffs], Fri Nov 18 16:53:56 2005 UTC (3 years, 7 months ago) by skrll
Branch: MAIN
CVS Tags: yamt-readahead-base3, yamt-readahead-base2, ktrace-lwp-base
Changes since 1.209: +6 -22 lines
Diff to previous 1.209 (colored)

Adapt drivers to the new net80211(9).

Most of this is from dyoung@. Thanks!

Revision 1.130.2.11 / (download) - annotate - [select for diffs], Thu Nov 10 14:04:16 2005 UTC (3 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.130.2.10: +365 -154 lines
Diff to previous 1.130.2.10 (colored)

Sync with HEAD. Here we go again...

Revision 1.209 / (download) - annotate - [select for diffs], Wed Aug 10 13:20:42 2005 UTC (3 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base, thorpej-vnode-attr-base, thorpej-vnode-attr
Branch point for: yamt-readahead
Changes since 1.208: +9 -2 lines
Diff to previous 1.208 (colored)

Allow setting the MAC address via wiconfig -m (Lord Isildur)

Revision 1.208 / (download) - annotate - [select for diffs], Sat Jul 23 16:09:39 2005 UTC (3 years, 11 months ago) by drochner
Branch: MAIN
Changes since 1.207: +4 -2 lines
Diff to previous 1.207 (colored)

disable SYSCTL_SETUP for _LKM until we have a plan how to deal with
it correctly

Revision 1.207 / (download) - annotate - [select for diffs], Sat Jul 16 04:06:39 2005 UTC (3 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.206: +6 -3 lines
Diff to previous 1.206 (colored)

#ifdef out an unused variable in the case of !WI_DEBUG.

Revision 1.206 / (download) - annotate - [select for diffs], Fri Jul 15 22:33:29 2005 UTC (3 years, 11 months ago) by dyoung
Branch: MAIN
Changes since 1.205: +70 -3 lines
Diff to previous 1.205 (colored)

Add a sysctl for turning wi(4) debugging on and off.

Do not print the number of tx commands outstanding on entrance to
wi_cmd_intr unless wi_debug > 1.

Revision 1.205 / (download) - annotate - [select for diffs], Thu Jul 14 00:28:51 2005 UTC (3 years, 11 months ago) by dyoung
Branch: MAIN
Changes since 1.204: +27 -18 lines
Diff to previous 1.204 (colored)

Clear IEEE80211_F_DROPUNENC in ic_flags in operating states where
the NIC decryptes & decapsulates WEP frames before passing them to
the host.  "Remember" the state of IEEE80211_F_DROPUNENC in
sc_ic_flags, though, and try our best to honor it as we setup the
hardware state.

This is the second patch of this kind.  The previous patch was
badly broken because wi_mend_flags was basing its decision to clear
IEEE80211_F_DROPUNENC based on the operating state we were
transitioning FROM instead of the state we were transitioning TO.

This fixes a bug that Simon Burge reported, where dhclient wi0
would not get a lease unless and until you ran 'ifconfig wi0'
concurrently (which would frob the IEEE80211_F_DROPUNENC bit in
the right way).  This patch was tested by Simon with his Toshiba
Lucent-clone.

Revision 1.204 / (download) - annotate - [select for diffs], Wed Jul 6 23:58:14 2005 UTC (3 years, 11 months ago) by dyoung
Branch: MAIN
Changes since 1.203: +3 -2 lines
Diff to previous 1.203 (colored)

Historically, an(4), ath(4), atw(4), rtw(4), and wi(4) have printed
out their modes and rates at boot.  Revert to the historical
behavior.

Revision 1.203 / (download) - annotate - [select for diffs], Wed Jul 6 23:44:16 2005 UTC (3 years, 11 months ago) by dyoung
Branch: MAIN
Changes since 1.202: +3 -2 lines
Diff to previous 1.202 (colored)

Avoid an unnecessary API difference between NetBSD and FreeBSD:
back out my change to ieee80211_crypto_encap that made it free its
mbuf argument on error.  I had thought it was a bug.  It was not.
It's the drivers that are broken.  Make an(4), atw(4), ipw(4),
iwi(4), ral(4), rtw(4), ural(4), and wi(4) free the mbuf when
ieee80211_crypto_encap returns NULL.  Also, return ath(4) to the
way it was---i.e., free the mbuf.

Thanks to Sam Leffler to pointing out my mistake.

Revision 1.202 / (download) - annotate - [select for diffs], Wed Jul 6 06:49:25 2005 UTC (3 years, 11 months ago) by dyoung
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.201: +4 -3 lines
Diff to previous 1.201 (colored)

Don't write the WEP keys to the device if it is invalid (e.g.,
unplugged) or if it is not enabled.  Fixes kern/30592.

Revision 1.201 / (download) - annotate - [select for diffs], Sun Jun 26 21:51:37 2005 UTC (4 years ago) by erh
Branch: MAIN
Changes since 1.200: +8 -3 lines
Diff to previous 1.200 (colored)

Make sure there is a valid transmit key, before trying to use information
about it.  Fixes a crash when configuring wi0.

Revision 1.200 / (download) - annotate - [select for diffs], Sun Jun 26 04:37:25 2005 UTC (4 years ago) by dyoung
Branch: MAIN
Changes since 1.199: +14 -2 lines
Diff to previous 1.199 (colored)

Do not build AP support if 'options IEEE80211_NO_HOSTAP' is in the
kernel configuration.

Revision 1.199 / (download) - annotate - [select for diffs], Sat Jun 25 03:56:53 2005 UTC (4 years ago) by dyoung
Branch: MAIN
Changes since 1.198: +151 -28 lines
Diff to previous 1.198 (colored)

Bug fix: fix WEP by managing keys & crypto in the style of the new
net80211.  It was especially important to zero the IEEE80211_F_DROPUNENC
(discard unencrypted packets) flag in operating modes where the
firmware decrypts for us.  Otherwise, the 802.11 layer discarded
all received frames.  See wi_mend_flags.  From FreeBSD, with
improvements by me.

For better compliance with the "net80211 way":
set sc_cnfauthmode from ic->ic_bss->ni_authmode.  Enter
the RUN state through ieee80211_create_ibss instead of
ieee80211_new_state(IEEE80211_S_RUN).  To sync BSSID in ad hoc
mode, use ieee80211_sta_join() instead of
ieee80211_new_state(IEEE80211_S_RUN).  From FreeBSD.

Configure the firmware to obey IEEE80211_F_DROPUNENC.

As we change to state RUN in STA mode, generate a link-status
message on the routing socket with a call to ieee80211_notify_node_join()
instead of calling rt_ifmsg directly.

Run normal net80211 processing (ieee80211_newstate) on the ->RUN
transition.

Revision 1.198 / (download) - annotate - [select for diffs], Wed Jun 22 06:15:51 2005 UTC (4 years ago) by dyoung
Branch: MAIN
Changes since 1.197: +99 -119 lines
Diff to previous 1.197 (colored)

Resolve conflicts in importation of 18-May-2005 ath(4) / net80211(9)
from FreeBSD.  Introduce compatibility shims (sys/dev/ic/ath_netbsd.[ch],
sys/net80211/ieee80211_netbsd.[ch]).  Update drivers (an, atu, atw,
awi, ipw, iwi, rtw, wi) for the new net80211(9) API.

Revision 1.193.2.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:28:53 2005 UTC (4 years, 2 months ago) by kent
Branch: kent-audio2
Changes since 1.193: +17 -23 lines
Diff to previous 1.193 (colored) next main 1.194 (colored)

sync with -current

Revision 1.130.2.10 / (download) - annotate - [select for diffs], Fri Apr 1 14:29:52 2005 UTC (4 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.130.2.9: +6 -6 lines
Diff to previous 1.130.2.9 (colored)

Sync with HEAD.

Revision 1.197 / (download) - annotate - [select for diffs], Sun Mar 27 00:49:14 2005 UTC (4 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: kent-audio2-base
Changes since 1.196: +6 -6 lines
Diff to previous 1.196 (colored)

correct logic so we recognize timeout on alloc

Noticed by:     Coverity Prevent analysis tool

From FreeBSD.  Thanks Sam Leffler for bringing this to my attention.

Revision 1.194.2.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:34:04 2005 UTC (4 years, 3 months ago) by yamt
Branch: yamt-km
Changes since 1.194: +13 -12 lines
Diff to previous 1.194 (colored) next main 1.195 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.130.2.9 / (download) - annotate - [select for diffs], Fri Mar 4 16:41:35 2005 UTC (4 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.130.2.8: +6 -6 lines
Diff to previous 1.130.2.8 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.196 / (download) - annotate - [select for diffs], Sun Feb 27 00:27:03 2005 UTC (4 years, 4 months ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, 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.195: +6 -6 lines
Diff to previous 1.195 (colored)

nuke trailing whitespace

Revision 1.130.2.8 / (download) - annotate - [select for diffs], Tue Feb 15 21:33:12 2005 UTC (4 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.130.2.7: +9 -8 lines
Diff to previous 1.130.2.7 (colored)

Sync with HEAD.

Revision 1.195 / (download) - annotate - [select for diffs], Sun Feb 13 07:33:06 2005 UTC (4 years, 4 months ago) by dyoung
Branch: MAIN
CVS Tags: matt-timespec
Changes since 1.194: +9 -8 lines
Diff to previous 1.194 (colored)

Bug fix: use the MAC that the firmware tells us, resorting to the
CIS MAC only on error.

(NetBSD these days tries to read the MAC address from the PCMCIA
CIS.  Prism cards made by Senao set the MAC in every PCMCIA CIS to
00:02:6f:00:02:15.  In a network of Senao cards, this causes MAC
duplication.)

Revision 1.159.2.2.2.1 / (download) - annotate - [select for diffs], Mon Jan 24 21:39:18 2005 UTC (4 years, 5 months ago) by he
Branch: netbsd-2
CVS Tags: netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1
Changes since 1.159.2.2: +4 -4 lines
Diff to previous 1.159.2.2 (colored) next main 1.160 (colored)

Pull up revision 1.188 (requested by thorpej in ticket #939):
  When adding or deleting multicast addresses, only change
  the address filter if the interface is marked RUNNING.
  Fixes PR#27678.

Revision 1.130.2.7 / (download) - annotate - [select for diffs], Mon Jan 17 19:30:40 2005 UTC (4 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.130.2.6: +2 -9 lines
Diff to previous 1.130.2.6 (colored)

Sync with HEAD.

Revision 1.194 / (download) - annotate - [select for diffs], Mon Jan 17 01:48:56 2005 UTC (4 years, 5 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base
Branch point for: yamt-km
Changes since 1.193: +2 -9 lines
Diff to previous 1.193 (colored)

Delete an out-of-date comment.

Revision 1.130.2.6 / (download) - annotate - [select for diffs], Sat Dec 18 09:31:57 2004 UTC (4 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.130.2.5: +149 -82 lines
Diff to previous 1.130.2.5 (colored)

Sync with HEAD.

Revision 1.193 / (download) - annotate - [select for diffs], Tue Dec 14 19:53:46 2004 UTC (4 years, 6 months ago) by dyoung
Branch: MAIN
CVS Tags: kent-audio1-beforemerge
Branch point for: kent-audio2
Changes since 1.192: +24 -10 lines
Diff to previous 1.192 (colored)

In wi_stop, wait for transmit commands to complete.  Extract
subroutine wi_txcmd_wait from wi_cmd and wi_stop.

This stops wi from griping, "wi0: command timed out, cmd=0x10b,
arg=0x0", when we down/up the interface.  Thanks to Pavel Cahyna
for reporting this bug.

Revision 1.192 / (download) - annotate - [select for diffs], Mon Dec 13 17:55:28 2004 UTC (4 years, 6 months ago) by dyoung
Branch: MAIN
Changes since 1.191: +98 -55 lines
Diff to previous 1.191 (colored)

Bug fix: synchronize Transmit commands with all other commands.

Following Charles Hannum's wi(4) optimizations, there could be a
Transmit command outstanding after wi_tx_intr or wi_start returns.
The driver would blithely issue a second command [*] before the
first command was finished, taking the first command's WI_EV_CMD
indication to mean the second command had finished.  The driver
would be dreadfully confused when the second command's results did
not meet its expectations (e.g., a RID mismatch error would occur).
The packet transmit section of the code would never read the
WI_EV_CMD it expected, so transmissions would cease.

This patch counts the outstanding transmit commands (there can be
only one) and, if a transmit command is outstanding at the top of
wi_cmd(), wi_cmd waits for the command to complete.  If there was
a transmit command outstanding when wi_cmd begins, it calls
wi_cmd_intr() on its way out.

I have tested this on an Orinoco card.  Previously, the card would
stop transmitting or the kernel would panic as desynchronization
occurred.  Now it works beautifully.

[*] A second command could be issued by wi_ioctl or else by
    wi_intr->wi_info_intr->wi_newstate->wi_read_xrid->wi_read_rid.

Revision 1.191 / (download) - annotate - [select for diffs], Mon Dec 13 17:24:09 2004 UTC (4 years, 6 months ago) by dyoung
Branch: MAIN
Changes since 1.190: +4 -3 lines
Diff to previous 1.190 (colored)

In wi_tx_intr, be a little more explicit about which fields we're
reading from the Tx-Complete FID.

Revision 1.190 / (download) - annotate - [select for diffs], Mon Dec 13 17:21:35 2004 UTC (4 years, 6 months ago) by dyoung
Branch: MAIN
Changes since 1.189: +37 -28 lines
Diff to previous 1.189 (colored)

Refactor.  wi_read_rid calls,

  wi_read_rid(sc, rid, &val, &buflen) == 0 && buflen == sizeof(val),

become wi_read_xrid calls

  wi_read_xrid(sc, rid, &val, sizeof(val)) == 0.

If the actual RID length is different from the expected RID length,
wi_read_rid prints to the log.

Revision 1.130.2.5 / (download) - annotate - [select for diffs], Mon Nov 29 07:24:15 2004 UTC (4 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.130.2.4: +3 -3 lines
Diff to previous 1.130.2.4 (colored)

Sync with HEAD.

Revision 1.189 / (download) - annotate - [select for diffs], Fri Nov 26 17:55:41 2004 UTC (4 years, 7 months ago) by mycroft
Branch: MAIN
CVS Tags: kent-audio1-base, kent-audio1
Changes since 1.188: +3 -3 lines
Diff to previous 1.188 (colored)

Fix what appears to be a byte order error on big-endian systems with Symbol
cards.

Revision 1.130.2.4 / (download) - annotate - [select for diffs], Tue Nov 2 07:51:32 2004 UTC (4 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.130.2.3: +4 -4 lines
Diff to previous 1.130.2.3 (colored)

Sync with HEAD.

Revision 1.188 / (download) - annotate - [select for diffs], Sat Oct 30 18:08:41 2004 UTC (4 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.187: +4 -4 lines
Diff to previous 1.187 (colored)

When adding/deleting multicast addresses, only whack the address
filter if the interface is marked RUNNING.

Fixes kern/27678.

Revision 1.130.2.3 / (download) - annotate - [select for diffs], Tue Oct 19 15:56:56 2004 UTC (4 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.130.2.2: +7 -22 lines
Diff to previous 1.130.2.2 (colored)

Sync with HEAD

Revision 1.187 / (download) - annotate - [select for diffs], Tue Sep 28 00:42:11 2004 UTC (4 years, 9 months ago) by dyoung
Branch: MAIN
Changes since 1.186: +7 -22 lines
Diff to previous 1.186 (colored)

Simplify the BSSID synchronization code.

Revision 1.130.2.2 / (download) - annotate - [select for diffs], Thu Aug 12 11:41:27 2004 UTC (4 years, 10 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.130.2.1: +53 -55 lines
Diff to previous 1.130.2.1 (colored)

Sync with HEAD.

Revision 1.186 / (download) - annotate - [select for diffs], Tue Aug 10 00:57:20 2004 UTC (4 years, 10 months ago) by dyoung
Branch: MAIN
Changes since 1.185: +12 -15 lines
Diff to previous 1.185 (colored)

Make the node table into an LRU cache: least-recently used nodes
are at the end of the node queue.  Change the reference-counting
discipline: ni->ni_refcnt indicates how many times net80211 has
granted ni to the driver.  Every node in the table with ni_refcnt=0
is eligible to be garbage-collected.  The mere presence of a node
in the table does not any longer indicate its auth/assoc state;
nodes have a ni_state variable, now.  A sysctl,
net.link.ieee80211.maxnodecache, controls the maximum LRU cache
size.

While I am here, patch ieee80211_find_node_for_beacon to do a "best
match" by bssid/ssid/channel, not a "perfect match."  This keeps
net80211 from caching duplicate nodes in the table.

Revision 1.185 / (download) - annotate - [select for diffs], Sat Aug 7 17:12:44 2004 UTC (4 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.184: +39 -23 lines
Diff to previous 1.184 (colored)

Be much more robust with RID values during attach:
* If the device returns a length too short to even contain the RID number,
  flag it as not supported and return EOPNOTSUPP, rather than returning a
  length of -2 and trying to use the value anyway.
* Check the returned lengths to see if we actually got anything.
* If we get no rate list, fail the attach, so we don't just blow up later.
Allow the frontend to pass in a MAC address.

Revision 1.184 / (download) - annotate - [select for diffs], Fri Aug 6 02:31:25 2004 UTC (4 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.183: +4 -19 lines
Diff to previous 1.183 (colored)

Use bpf_mtap2().

Revision 1.183 / (download) - annotate - [select for diffs], Thu Aug 5 22:57:32 2004 UTC (4 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.182: +4 -4 lines
Diff to previous 1.182 (colored)

Put unadulterated dB values in the radiotap header, not the converted dBm
values.

Revision 1.130.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:46:21 2004 UTC (4 years, 11 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.130: +981 -384 lines
Diff to previous 1.130 (colored)

Sync with HEAD

Revision 1.159.2.2 / (download) - annotate - [select for diffs], Fri Jul 23 23:26:50 2004 UTC (4 years, 11 months ago) by he
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE
Branch point for: netbsd-2
Changes since 1.159.2.1: +365 -207 lines
Diff to previous 1.159.2.1 (colored) to branchpoint 1.159 (colored) next main 1.160 (colored)

Pull up revisions 1.162-1.181 (requested by mycroft in tickets #700,#701):
  Many bug fixes and performance fixes for the wi(4) driver,
  as well as changes paving the way for further performance
  improvements.

Revision 1.182 / (download) - annotate - [select for diffs], Fri Jul 23 08:34:11 2004 UTC (4 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.181: +68 -9 lines
Diff to previous 1.181 (colored)

IEEE80211_F_WEPON -> IEEE80211_F_PRIVACY

Revision 1.181 / (download) - annotate - [select for diffs], Thu Jul 22 21:56:58 2004 UTC (4 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.180: +63 -23 lines
Diff to previous 1.180 (colored)

Add sc_txstart and sc_txstarted, to keep track of the current FID we want to
start and the number we've started that have not been alloced yet.  Currently
sc_txstarted is constained to 0 or 1 because of the way we start the next
packet, but this will change.

Revision 1.180 / (download) - annotate - [select for diffs], Thu Jul 22 21:31:56 2004 UTC (4 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.179: +38 -2 lines
Diff to previous 1.179 (colored)

Copyright maintenance.

Revision 1.179 / (download) - annotate - [select for diffs], Thu Jul 22 20:36:11 2004 UTC (4 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.178: +4 -4 lines
Diff to previous 1.178 (colored)

Change some DELAY(2) to more sensible values.

Revision 1.178 / (download) - annotate - [select for diffs], Thu Jul 22 20:34:52 2004 UTC (4 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.177: +55 -2 lines
Diff to previous 1.177 (colored)

Add some histogram code (controlled by an #ifdef) to track how long various
busy-wait loops take.

Revision 1.177 / (download) - annotate - [select for diffs], Thu Jul 22 20:30:43 2004 UTC (4 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.176: +10 -8 lines
Diff to previous 1.176 (colored)

Keep a count of packets written to the chip but not yet initiated.  This
simplifies some logic, and is needed for later changes.

Revision 1.176 / (download) - annotate - [select for diffs], Thu Jul 22 20:25:23 2004 UTC (4 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.175: +10 -10 lines
Diff to previous 1.175 (colored)

Change some names.
sc_txnext -> sc_txalloc
sc_txcur -> sc_txqueue

Revision 1.175 / (download) - annotate - [select for diffs], Thu Jul 22 20:23:31 2004 UTC (4 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.174: +15 -11 lines
Diff to previous 1.174 (colored)

Keep a count of FIDs allocated, rather than storing a packet length in the
ring.

Revision 1.174 / (download) - annotate - [select for diffs], Thu Jul 22 20:13:20 2004 UTC (4 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.173: +3 -3 lines
Diff to previous 1.173 (colored)

Make the radiotap header reflect the actual transmit rate.

Revision 1.173 / (download) - annotate - [select for diffs], Thu Jul 22 20:12:20 2004 UTC (4 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.172: +4 -13 lines
Diff to previous 1.172 (colored)

Ack events in only one place.  Reduces register writes sometimes.

Revision 1.172 / (download) - annotate - [select for diffs], Thu Jul 22 20:07:38 2004 UTC (4 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.171: +3 -3 lines
Diff to previous 1.171 (colored)

Only read the part of the frame header we use in wi_tx_intr().

Revision 1.171 / (download) - annotate - [select for diffs], Thu Jul 22 20:06:05 2004 UTC (4 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.170: +19 -17 lines
Diff to previous 1.170 (colored)

Rework the rate-lowering hack:
* Update sc_txpending[] when a packet is written, even before we issue the TX
  command, since it may be active when we issue the TX command for the
  following packet.
* Do not lower the rate in ni_txrate or id_rateidx, because these are used to
  keep track of sc_txpending[], and could cause us to get "stuck" at the lower
  rate.

Revision 1.170 / (download) - annotate - [select for diffs], Thu Jul 22 19:56:55 2004 UTC (4 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.169: +29 -29 lines
Diff to previous 1.169 (colored)

Make the logic in wi_write_txrate() less obscure.

Revision 1.169 / (download) - annotate - [select for diffs], Thu Jul 22 19:55:08 2004 UTC (4 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.168: +32 -5 lines
Diff to previous 1.168 (colored)

For Intersil firmware, use the ROM rate list to determine the correct bitmask
for BASIC_RATE and SUPPORT_RATE.  Always set these, because otherwise probe
frames will not get the correct list.

Revision 1.168 / (download) - annotate - [select for diffs], Thu Jul 22 19:51:37 2004 UTC (4 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.167: +5 -4 lines
Diff to previous 1.167 (colored)

Missed one change in the previous.  Now we really don't try to write it.

Revision 1.167 / (download) - annotate - [select for diffs], Thu Jul 22 19:50:43 2004 UTC (4 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.166: +5 -3 lines
Diff to previous 1.166 (colored)

Symbol firmware doesn't support the power management register, so don't try to
do power management there.

Revision 1.166 / (download) - annotate - [select for diffs], Thu Jul 22 19:48:28 2004 UTC (4 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.165: +3 -3 lines
Diff to previous 1.165 (colored)

Whoops, change one back to regular "static" for an inline function.

Revision 1.165 / (download) - annotate - [select for diffs], Thu Jul 22 19:47:24 2004 UTC (4 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.164: +99 -94 lines
Diff to previous 1.164 (colored)

I hate "static".  Add an #ifdef so I can turn it off easily.

Revision 1.164 / (download) - annotate - [select for diffs], Fri Jul 2 23:41:34 2004 UTC (5 years ago) by dyoung
Branch: MAIN
Changes since 1.163: +12 -3 lines
Diff to previous 1.163 (colored)

Indicate link status changes on the routing socket.

Revision 1.163 / (download) - annotate - [select for diffs], Fri Jul 2 21:22:18 2004 UTC (5 years ago) by dyoung
Branch: MAIN
Changes since 1.162: +3 -3 lines
Diff to previous 1.162 (colored)

Cosmetic: shift a break-statement into the right column.

Revision 1.162 / (download) - annotate - [select for diffs], Fri Jul 2 21:20:10 2004 UTC (5 years ago) by dyoung
Branch: MAIN
Changes since 1.161: +10 -24 lines
Diff to previous 1.161 (colored)

wi_start compaction: check for software descriptor exhaustion in
one place.  Check for the _RUN state in one place.

Revision 1.159.2.1 / (download) - annotate - [select for diffs], Mon Jun 7 06:37:28 2004 UTC (5 years ago) by jdc
Branch: netbsd-2-0
Changes since 1.159: +5 -44 lines
Diff to previous 1.159 (colored)

Pull up revision 1.161 (requested by dyoung in ticket #449).

Finally, refactor wi_media_change and ieee80211_media_change.
ieee80211_media_change handles a lot more conditions than
wi_media_change did.

This helps with the second bug mentioned in kern/25604, which causes
"SIOCSIFMEDIA: Invalid argument."

Revision 1.161 / (download) - annotate - [select for diffs], Sun Jun 6 05:32:17 2004 UTC (5 years ago) by dyoung
Branch: MAIN
Changes since 1.160: +5 -44 lines
Diff to previous 1.160 (colored)

Finally, refactor wi_media_change and ieee80211_media_change.
ieee80211_media_change handles a lot more conditions than
wi_media_change did.

This helps with the second bug mentioned in kern/25604, which causes
"SIOCSIFMEDIA: Invalid argument."

Revision 1.160 / (download) - annotate - [select for diffs], Mon May 31 11:42:00 2004 UTC (5 years, 1 month ago) by dyoung
Branch: MAIN
Changes since 1.159: +2 -4 lines
Diff to previous 1.159 (colored)

Don't set a frame's WEP bits, the 802.11 layer already has.

Revision 1.159 / (download) - annotate - [select for diffs], Fri Mar 26 06:43:25 2004 UTC (5 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.158: +4 -19 lines
Diff to previous 1.158 (colored)

Actually, disabling RSS rate-adaptation does not make any discernible
difference in locking up STA f/w 8.42.1.

Revision 1.158 / (download) - annotate - [select for diffs], Fri Mar 26 06:39:56 2004 UTC (5 years, 3 months ago) by dyoung
Branch: MAIN
Changes since 1.157: +5 -5 lines
Diff to previous 1.157 (colored)

Firmware revisions are decimal.

Revision 1.157 / (download) - annotate - [select for diffs], Thu Mar 25 06:17:51 2004 UTC (5 years, 3 months ago) by dyoung
Branch: MAIN
Changes since 1.156: +4 -3 lines
Diff to previous 1.156 (colored)

Enable Tx and TxExc interrupts. Somehow this escaped my initial
commit. The rate adaptation code expects them. Usually wi gets
lucky, and an Rx/Alloc/Info event triggers the interrupt handler,
but I had not intended for wi to count on it.

Without Tx/TxExc interrupts enabled, wi will sometimes exhaust all
its rssdescs and cease transmitting.  Usually it sets IFF_OACTIVE
in that situation.

Revision 1.156 / (download) - annotate - [select for diffs], Wed Mar 17 17:19:13 2004 UTC (5 years, 3 months ago) by dyoung
Branch: MAIN
Changes since 1.155: +3 -3 lines
Diff to previous 1.155 (colored)

Prevent a buffer overflow that's been seen in the wild.  The firmware
will sometimes return 0; subtracting 1 from that yields a too-big
buffer length.

Revision 1.155 / (download) - annotate - [select for diffs], Wed Mar 17 17:00:34 2004 UTC (5 years, 3 months ago) by dyoung
Branch: MAIN
Changes since 1.154: +12 -50 lines
Diff to previous 1.154 (colored)

In wi(4), wi_choose_rate used to contain device-independent code.
I have pulled that code into the function ieee80211_rssadapt_choose
so that I can re-use it in ath(4), atw(4), and in other drivers.

In rssadapt(9), I have also created a struct ieee80211_rssadapt_expavgctl
that contains parameters for rate adaptation. When IEEE80211_RSSADAPT_DEBUG
is enabled, I will using sysctl to expose an ieee80211_rssadapt_expavgctl
for each wireless device.

Also in rssadapt(9), I have introduced an interpolate() macro which
makes the exponential-averaging code more compact.

Revision 1.154 / (download) - annotate - [select for diffs], Tue Feb 10 01:08:05 2004 UTC (5 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.153: +38 -15 lines
Diff to previous 1.153 (colored)

If the firmware returns to us an RSS descriptor index that is out
of bounds, then complain and recover by freeing all of the descriptors.
That will usually provoke additional complaints---see the next
paragraph.

If the firmware returns to us an RSS descriptor that is in-bounds
but out of service (id_node == NULL), then gripe and get out of
the interrupt handler. ***This will still leak RSS descriptors.***
I'm working on a better solution. Possibly I will just free all of
the descriptors.

Revision 1.153 / (download) - annotate - [select for diffs], Tue Feb 10 00:59:38 2004 UTC (5 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.152: +25 -11 lines
Diff to previous 1.152 (colored)

Disable rate-adaptation for Lucent firmware version 8.42.1, per a
bug report from Simon Burge: the firmware seems to lock up.

If rate-adaptation is disabled on a Lucent card, then do all the
rate-adaptation work *except* for writing the new transmit rate,
since I suspect that is what locks-up the firmware.

Revision 1.152 / (download) - annotate - [select for diffs], Tue Feb 10 00:52:12 2004 UTC (5 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.151: +5 -4 lines
Diff to previous 1.151 (colored)

Shorten the retry count on Prism APs to improve the speed of
rate-adaptation.

Revision 1.151 / (download) - annotate - [select for diffs], Tue Feb 10 00:47:41 2004 UTC (5 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.150: +38 -19 lines
Diff to previous 1.150 (colored)

Factor out the initialization/reset of RSS descriptors, making
wi_rssdescs_init, wi_rssdescs_reset, which I will use to receover
when the firmware botches up the RSS descriptor index.

Revision 1.150 / (download) - annotate - [select for diffs], Tue Feb 10 00:32:40 2004 UTC (5 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.149: +9 -5 lines
Diff to previous 1.149 (colored)

The radiotap header is little-endian.

Revision 1.149 / (download) - annotate - [select for diffs], Sat Jan 31 10:40:19 2004 UTC (5 years, 5 months ago) by dyoung
Branch: MAIN
Changes since 1.148: +6 -2 lines
Diff to previous 1.148 (colored)

wi_stop tells which stations' rssadapt descriptors it cleans up
when IFF_DEBUG is set.

Revision 1.148 / (download) - annotate - [select for diffs], Sun Dec 7 05:44:49 2003 UTC (5 years, 6 months ago) by dyoung
Branch: MAIN
Changes since 1.147: +364 -41 lines
Diff to previous 1.147 (colored)

Enable RSSI-based rate-adaptation for wi(4). This enables wi(4)-based
APs to run at "full speed" where before they ran at just 1 or 2Mb/s.
The AP will adapt the data rate for each client based on packet
losses and the received signal strength.

I have also enabled rate adaptation for STA mode and for IBSS mode,
but the hardware gives us less control over the data rate in those
modes.

Revision 1.147 / (download) - annotate - [select for diffs], Thu Dec 4 13:57:30 2003 UTC (5 years, 7 months ago) by keihan
Branch: MAIN
Changes since 1.146: +3 -3 lines
Diff to previous 1.146 (colored)

netbsd.org -> NetBSD.org

This was the last commit of this kind to src/sys, which is now totally
"NetBSD.org clean".  Thanks for the patiance, and sorry for all the commits.

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

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

Revision 1.145 / (download) - annotate - [select for diffs], Sun Nov 16 09:05:53 2003 UTC (5 years, 7 months ago) by dyoung
Branch: MAIN
Changes since 1.144: +4 -4 lines
Diff to previous 1.144 (colored)

Fix spelling/grammar in a comment.

Revision 1.144 / (download) - annotate - [select for diffs], Sun Nov 16 09:02:42 2003 UTC (5 years, 7 months ago) by dyoung
Branch: MAIN
Changes since 1.143: +36 -8 lines
Diff to previous 1.143 (colored)

Add data-link type DLT_IEEE802_11_RADIO to wi and atw. DLT_IEEE802_11_RADIO
lets you monitor radio stats like received signal strength, which
diversity antenna was used, channel/frequency, modulation, and data
rate.

Revision 1.143 / (download) - annotate - [select for diffs], Sun Nov 2 01:55:40 2003 UTC (5 years, 8 months ago) by dyoung
Branch: MAIN
Changes since 1.142: +3 -8 lines
Diff to previous 1.142 (colored)

Use ieee80211_find_rxnode to attribute Rx packets to the write
ieee80211_node. This reduces code duplication.  It will help us
support passive scanning and rate adaptation.

Revision 1.142 / (download) - annotate - [select for diffs], Sun Nov 2 01:39:22 2003 UTC (5 years, 8 months ago) by dyoung
Branch: MAIN
Changes since 1.141: +21 -27 lines
Diff to previous 1.141 (colored)

Mark the available channels using the ic_channels table instead of
setting bits in ic_chan_avail, which is the responsibility of
ieee80211_ifattach. I cannot believe the previous code worked.

Revision 1.141 / (download) - annotate - [select for diffs], Sun Nov 2 00:55:46 2003 UTC (5 years, 8 months ago) by dyoung
Branch: MAIN
Changes since 1.140: +4 -3 lines
Diff to previous 1.140 (colored)

Get the ieee80211_node for management packets from the rcvif field.

Revision 1.140 / (download) - annotate - [select for diffs], Sun Nov 2 00:22:49 2003 UTC (5 years, 8 months ago) by dyoung
Branch: MAIN
Changes since 1.139: +5 -4 lines
Diff to previous 1.139 (colored)

Fix bugs in power-saving:

Use a power-saving station's ieee80211_node, which is stored in
the rcvif field.

Do not free a node if it is put onto the power-saving queue.

Revision 1.139 / (download) - annotate - [select for diffs], Sat Nov 1 23:57:05 2003 UTC (5 years, 8 months ago) by dyoung
Branch: MAIN
Changes since 1.138: +7 -4 lines
Diff to previous 1.138 (colored)

Bug fix: in wi_cfg_txrate, do not divide the 802.11 rate by 2 and
take off the flags before giving it to wi_write_txrate.

Also add a useful debug message to wi_write_txrate.

Revision 1.138 / (download) - annotate - [select for diffs], Fri Oct 24 23:58:22 2003 UTC (5 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.137: +8 -7 lines
Diff to previous 1.137 (colored)

In wi_newstate(), read the BSSID into a temporary buffer that has guaranteed
alignment.  Fixes a really obscure failure mode on Alpha, and panics on other
machines.

Revision 1.137 / (download) - annotate - [select for diffs], Sun Oct 19 22:00:54 2003 UTC (5 years, 8 months ago) by dyoung
Branch: MAIN
Changes since 1.136: +6 -6 lines
Diff to previous 1.136 (colored)

Don't take the 802.11 header off of a frame until after we've given
it to the driver's BPF tap.

Revision 1.136 / (download) - annotate - [select for diffs], Fri Oct 17 03:58:23 2003 UTC (5 years, 8 months ago) by dyoung
Branch: MAIN
Changes since 1.135: +3 -3 lines
Diff to previous 1.135 (colored)

ieee80211_newstate() wants for ic->ic_state to equal the previous
state, so do not update ic->ic_state in wi_newstate() before calling
ieee80211_newstate(). Instead, update ic->ic_state when we do not
let ieee80211_newstate() run.

Revision 1.135 / (download) - annotate - [select for diffs], Thu Oct 16 10:57:35 2003 UTC (5 years, 8 months ago) by dyoung
Branch: MAIN
Changes since 1.134: +55 -22 lines
Diff to previous 1.134 (colored)

Prepare for wi rate adaptation. Add wi_write_txrate, which only
writes a hardware register when the data rate selection actually
changes. Add wi_cfg_txrate, which writes the data rate selection
regardless.

Name some fields in the wi Tx buffer which we will use for rate
adaptation.

Name the Prism "Alternate Retry Count" RID, WI_RID_ALT_RETRY_COUNT.

Revision 1.134 / (download) - annotate - [select for diffs], Thu Oct 16 10:38:07 2003 UTC (5 years, 8 months ago) by dyoung
Branch: MAIN
Changes since 1.133: +2 -7 lines
Diff to previous 1.133 (colored)

The upper & lower bounds on wi RSSI are completely bogus, AFAICT.

Revision 1.133 / (download) - annotate - [select for diffs], Mon Oct 13 08:07:21 2003 UTC (5 years, 8 months ago) by dyoung
Branch: MAIN
Changes since 1.132: +120 -68 lines
Diff to previous 1.132 (colored)

Switch wi(4) to the new 802.11 layer.

Revision 1.132 / (download) - annotate - [select for diffs], Sun Jul 6 20:01:17 2003 UTC (6 years ago) by dyoung
Branch: MAIN
Changes since 1.131: +11 -42 lines
Diff to previous 1.131 (colored)

Still more consolidation of 802.11 media-handling, moving moving
common code from awi and wi into the 802.11 framework. Inspired by
Sam Leffler's patches to FreeBSD.

Revision 1.131 / (download) - annotate - [select for diffs], Sun Jul 6 07:15:55 2003 UTC (6 years ago) by dyoung
Branch: MAIN
Changes since 1.130: +18 -10 lines
Diff to previous 1.130 (colored)

Improved RSSI->dBm conversion, especially for Lucent cards, for
which I borrowed some conversion constants from the Linux orinoco_cs
driver.

Revision 1.130 / (download) - annotate - [select for diffs], Thu Jun 19 06:16:36 2003 UTC (6 years ago) by rh
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.129: +7 -3 lines
Diff to previous 1.129 (colored)

Add and enable monitoring mode for Lucent cards.

Revision 1.129 / (download) - annotate - [select for diffs], Sat May 31 19:38:08 2003 UTC (6 years, 1 month ago) by dyoung
Branch: MAIN
Changes since 1.128: +3 -3 lines
Diff to previous 1.128 (colored)

Picky cosmetic change: remove leading space.

Revision 1.128 / (download) - annotate - [select for diffs], Thu May 22 06:34:45 2003 UTC (6 years, 1 month ago) by dyoung
Branch: MAIN
Changes since 1.127: +12 -7 lines
Diff to previous 1.127 (colored)

Update to wi interrupt handling:

  No longer require a hi-low-hi transition of a status bit before
  we believe it. It's a performance killer, and without it there
  does not seem to be a race.

  Sam Leffler reports that wi_intr needs to be bracketed by
  disable/enable interrupts through WI_INT_EN, or else performance
  is bad on Lucent. So now we do that.

Revision 1.127 / (download) - annotate - [select for diffs], Tue May 20 01:29:35 2003 UTC (6 years, 1 month ago) by dyoung
Branch: MAIN
Changes since 1.126: +20 -22 lines
Diff to previous 1.126 (colored)

Stop wi panics on card ejection in Powerbook in both the enabled
and disabled states. This should fix an x86 panic somebody reported
on icb.

Revision 1.126 / (download) - annotate - [select for diffs], Sat May 17 16:46:03 2003 UTC (6 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.125: +4 -3 lines
Diff to previous 1.125 (colored)

Initialize and reset curtxeps to zero each time the error rate is exceeded.
This stops the continuous spewing of error messages, making it just sporadic.

Revision 1.125 / (download) - annotate - [select for diffs], Fri May 16 01:26:18 2003 UTC (6 years, 1 month ago) by dyoung
Branch: MAIN
Changes since 1.124: +25 -44 lines
Diff to previous 1.124 (colored)

IEEE80211_LOCK and WI_LOCK conceal enormous differences in locking
semantics on FreeBSD and NetBSD, so I am backing them out until
the macro set is enriched.

Revision 1.124 / (download) - annotate - [select for diffs], Tue May 13 08:58:01 2003 UTC (6 years, 1 month ago) by dyoung
Branch: MAIN
Changes since 1.123: +3 -3 lines
Diff to previous 1.123 (colored)

Revert to previous multicast logic, which enami@sm.sony.co.jp says
was correct.

Revision 1.123 / (download) - annotate - [select for diffs], Tue May 13 08:35:58 2003 UTC (6 years, 1 month ago) by dyoung
Branch: MAIN
Changes since 1.122: +76 -56 lines
Diff to previous 1.122 (colored)

Begin synchronization with FreeBSD:

1 Add channel mask, transmit rate-mask arguments to wi_scan_ap.
2 Adopt the macros WI_LOCK/WI_UNLOCK for synchronization. FreeBSD
  uses a different synchronization mechanism.
3 In wi_cmd, adopt constants WI_DELAY/WI_TIMEOUT for timing.
4 Pull debug messages from into wi_read_nicid from FreeBSD.
5 Bug fix: if IFF_ALLMULTI, don't filter any multicasts.
6 Count and report TX exceptions, but don't generate any additional
  interrupts.

Revision 1.122 / (download) - annotate - [select for diffs], Tue May 13 07:17:46 2003 UTC (6 years, 1 month ago) by dyoung
Branch: MAIN
Changes since 1.121: +4 -2 lines
Diff to previous 1.121 (colored)

For converge with FreeBSD:

Revision 1.121 / (download) - annotate - [select for diffs], Tue May 13 07:13:49 2003 UTC (6 years, 1 month ago) by dyoung
Branch: MAIN
Changes since 1.120: +55 -2 lines
Diff to previous 1.120 (colored)

Track TX exceptions. This will eventually enable round-robin retries
(for fairness) and RTM_LOSING or some such other message to indicate
a losing wireless destination.

From FreeBSD.

Revision 1.120 / (download) - annotate - [select for diffs], Tue May 13 06:51:10 2003 UTC (6 years, 1 month ago) by dyoung
Branch: MAIN
Changes since 1.119: +5 -2 lines
Diff to previous 1.119 (colored)

Complete prior patch: dump packets in wi_rx_intr, too.

Revision 1.119 / (download) - annotate - [select for diffs], Tue May 13 06:48:56 2003 UTC (6 years, 1 month ago) by dyoung
Branch: MAIN
Changes since 1.118: +28 -2 lines
Diff to previous 1.118 (colored)

Debug code from FreeBSD: handy packet dumps when IFF_DEBUG|IFF_LINK2
are set.

Revision 1.118 / (download) - annotate - [select for diffs], Tue May 13 06:33:40 2003 UTC (6 years, 1 month ago) by dyoung
Branch: MAIN
Changes since 1.117: +18 -6 lines
Diff to previous 1.117 (colored)

Misc changes to wi_stop. First, block interrupts in wi_stop. (From
FreeBSD.)

Fix a bug in wi_stop where ejecting from the Powerbook crashes the
system. Essentially, the patch makes sure we write *no* registers
when we are no longer attached.

Also, for consistency w/ FreeBSD, use sc_portnum throughout wi,
instead of hard-coding WI_PORT0 .

Revision 1.117 / (download) - annotate - [select for diffs], Tue May 13 06:15:47 2003 UTC (6 years, 1 month ago) by dyoung
Branch: MAIN
Changes since 1.116: +9 -11 lines
Diff to previous 1.116 (colored)

For uniformity between FreeBSD & NetBSD, adopt FreeBSD's more
concise wi_cmd.

Revision 1.116 / (download) - annotate - [select for diffs], Tue Apr 8 04:31:24 2003 UTC (6 years, 2 months ago) by kml
Branch: MAIN
Changes since 1.115: +57 -13 lines
Diff to previous 1.115 (colored)

Host AP power saving support.  The Host AP notices that the power
saving bit is set in incoming frames from a station, and buffers the
outgoing frames for the station until they are polled for.  This
requires support in the driver to set a bit in the TIM bitmap sent
during 802.11 beacons.

So far, support for power saving in Host AP mode is only available
for the PRISM2 chipset.

Revision 1.115 / (download) - annotate - [select for diffs], Thu Mar 27 07:22:47 2003 UTC (6 years, 3 months ago) by dyoung
Branch: MAIN
Changes since 1.114: +2 -5 lines
Diff to previous 1.114 (colored)

802.11 MLME-JOIN.request is an abstract MAC function that is not
necessarily exposed to the host, so Lucent/Agere/whatever is correct
in not supporting it.

Revision 1.114 / (download) - annotate - [select for diffs], Thu Mar 27 05:00:21 2003 UTC (6 years, 3 months ago) by dyoung
Branch: MAIN
Changes since 1.113: +4 -3 lines
Diff to previous 1.113 (colored)

HostAP broke in version 1.4.2 of station firmware. Try 1.3.x, 1.4.9,
or later.

Revision 1.113 / (download) - annotate - [select for diffs], Thu Mar 27 04:34:17 2003 UTC (6 years, 3 months ago) by dyoung
Branch: MAIN
Changes since 1.112: +6 -2 lines
Diff to previous 1.112 (colored)

Introduced sc_reset to wi_softc. The bus-specific front-end gets
to fill this.

Revision 1.112 / (download) - annotate - [select for diffs], Tue Feb 25 01:57:35 2003 UTC (6 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.111: +26 -6 lines
Diff to previous 1.111 (colored)

Add support for Prism monitor mode. From Kevin Lahey
<kml@patheticgeek.net>.

This patch does NOT add monitor mode support for the Lucent radios.

awi(4) was only modified for compatibility with the new mediaopt.
It does NOT support monitor mode.

Tested by Kevin, Daniel Carosone, and I.

Revision 1.111 / (download) - annotate - [select for diffs], Tue Feb 25 00:51:14 2003 UTC (6 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.110: +3 -3 lines
Diff to previous 1.110 (colored)

Disable interrupts before ACKing them to avoid the obvious race.

Revision 1.110 / (download) - annotate - [select for diffs], Tue Feb 25 00:47:11 2003 UTC (6 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.109: +6 -2 lines
Diff to previous 1.109 (colored)

Following implementation for other RIDs, read the driver's notion
of the fragmentation threshold instead of the hardware's notion.

Revision 1.17.2.23 / (download) - annotate - [select for diffs], Wed Jan 15 18:44:16 2003 UTC (6 years, 5 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.17.2.22: +43 -9 lines
Diff to previous 1.17.2.22 (colored) next main 1.18 (colored)

Sync with HEAD.

Revision 1.109 / (download) - annotate - [select for diffs], Thu Jan 9 08:52:19 2003 UTC (6 years, 5 months ago) by dyoung
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base
Changes since 1.108: +3 -3 lines
Diff to previous 1.108 (colored)


Oops. This turns off debugging again.

Revision 1.108 / (download) - annotate - [select for diffs], Thu Jan 9 08:49:39 2003 UTC (6 years, 5 months ago) by dyoung
Branch: MAIN
Changes since 1.107: +44 -10 lines
Diff to previous 1.107 (colored)


wi_start: write an mbuf chain to the driver using wi_mwrite_bap,
  which is safer than the loop there used to be here.

wi_mwrite_bap: if wi_write_bap fails, don't keep on going: this
  way you avoid writing garbage to the radio. First time you see
  an odd-length mbuf, copy the remainder of the chain to sc_txbuf
  and from there to the MAC. This way, you do not read an mbuf past
  the end of its data (occasionally you will cross a page doing
  that!) and you avoid expensive, excess seeks in the radio's own
  buffer chain.

wi_rx_intr: clamp the frame length told to us by the driver to the
  most bytes we can fit in our mbuf cluster.

I am still getting e-mails from my testers telling me how much
better this makes things.

Revision 1.17.2.22 / (download) - annotate - [select for diffs], Fri Jan 3 17:07:43 2003 UTC (6 years, 6 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.17.2.21: +56 -2 lines
Diff to previous 1.17.2.21 (colored)

Sync with HEAD.

Revision 1.107 / (download) - annotate - [select for diffs], Wed Jan 1 02:06:47 2003 UTC (6 years, 6 months ago) by dyoung
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.106: +56 -2 lines
Diff to previous 1.106 (colored)


A Prism firmware participating in an IBSS network will not send a
LINK_STAT notification for every change of BSSID, so the firmware's
BSSID and the driver's BSSID will get out of sync. This has two
bad affects. First, because the 802.11 framework filters received
packets based on BSSID, many packets can be dropped before the
driver adopts the firmware's BSSID.  Second, ifconfig's tells a
misleading BSSID to the operator.

This problem is most apparent in networks where every station does
not hear every other. I reproduce these conditions in an office by
removing/replacing the antennas on my 802.11 cards.

As a solution, in IBSS mode, the driver will ask the firmware for
the BSSID every five seconds. Also, whenever the driver receives
a frame carrying a different BSSID than the driver's BSSID, then
the driver asks the firmware for the BSSID before handing the frame
to ieee80211_input.

Revision 1.17.2.21 / (download) - annotate - [select for diffs], Sun Dec 29 20:49:17 2002 UTC (6 years, 6 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.17.2.20: +31 -4 lines
Diff to previous 1.17.2.20 (colored)

Sync with HEAD.

Revision 1.106 / (download) - annotate - [select for diffs], Fri Dec 27 08:29:46 2002 UTC (6 years, 6 months ago) by dyoung
Branch: MAIN
Changes since 1.105: +14 -3 lines
Diff to previous 1.105 (colored)

On Lucent cards, indicate that changing BSSID with SIOCS80211BSSID
is impossible.  Never write to the Prism-only JOIN RID.

Revision 1.105 / (download) - annotate - [select for diffs], Fri Dec 27 07:54:35 2002 UTC (6 years, 6 months ago) by dyoung
Branch: MAIN
Changes since 1.104: +19 -3 lines
Diff to previous 1.104 (colored)

The RID for the RSSI->dBm adjustment is not supported by Prism
station firmware version <= 1.1.1.

Revision 1.17.2.20 / (download) - annotate - [select for diffs], Wed Dec 11 06:38:03 2002 UTC (6 years, 6 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.17.2.19: +38 -10 lines
Diff to previous 1.17.2.19 (colored)

Sync with HEAD.

Revision 1.104 / (download) - annotate - [select for diffs], Mon Nov 18 15:10:22 2002 UTC (6 years, 7 months ago) by dyoung
Branch: MAIN
CVS Tags: gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw
Changes since 1.103: +19 -8 lines
Diff to previous 1.103 (colored)


Only Prism is known to support WI_RID_FRAG_THRESH.

Revision 1.103 / (download) - annotate - [select for diffs], Sat Nov 16 06:25:05 2002 UTC (6 years, 7 months ago) by dyoung
Branch: MAIN
Changes since 1.102: +12 -12 lines
Diff to previous 1.102 (colored)


In wi_get_cfg, factor the code for getting the tx rate with the
IEEE 802.11 subsystem.

In wi_write_txrate, document the clever code for computing
WI_RID_TX_RATE from a bit rate.

Revision 1.102 / (download) - annotate - [select for diffs], Sat Nov 16 06:02:53 2002 UTC (6 years, 7 months ago) by dyoung
Branch: MAIN
Changes since 1.101: +19 -2 lines
Diff to previous 1.101 (colored)


Support two new RIDs.

  WI_RID_DBM_ADJUST: In preparation for capturing Prism packets
  containing received signal strength indications (RSSI), read the
  constant for conversion from RSSI to dBm (decibels relative to
  a milliwatt).

  WI_RID_FRAG_THRESH: Get/set the packet fragmentation threshold
  on Lucent/Prism.

Revision 1.17.2.19 / (download) - annotate - [select for diffs], Mon Nov 11 22:10:09 2002 UTC (6 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.17.2.18: +1 -1 lines
Diff to previous 1.17.2.18 (colored)

Catch up to -current

Revision 1.101 / (download) - annotate - [select for diffs], Fri Oct 25 01:35:12 2002 UTC (6 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.100: +3 -3 lines
Diff to previous 1.100 (colored)

IBSS mode does in fact work on some earlier Symbol firmware versions, as
witnessed by my home network.

Revision 1.17.2.18 / (download) - annotate - [select for diffs], Fri Oct 18 02:42:03 2002 UTC (6 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.17.2.17: +1637 -3141 lines
Diff to previous 1.17.2.17 (colored)

Catch up to -current.

Revision 1.100 / (download) - annotate - [select for diffs], Tue Oct 15 08:53:46 2002 UTC (6 years, 8 months ago) by onoe
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-aftermerge
Changes since 1.99: +21 -10 lines
Diff to previous 1.99 (colored)

Fix to use 104bit key for Intersil/Symbol firmware:
	It seems that the firmware accept 104bit key only if
	all the keys have 104bit length.  We get the length of
	the transmit key and use it for all other keys.
	Perhaps we should use software WEP for such situation.

Revision 1.21.2.8 / (download) - annotate - [select for diffs], Thu Oct 10 18:39:17 2002 UTC (6 years, 8 months ago) by jdolecek
Branch: kqueue
Changes since 1.21.2.7: +1639 -2367 lines
Diff to previous 1.21.2.7 (colored) next main 1.22 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.99 / (download) - annotate - [select for diffs], Mon Oct 7 11:01:52 2002 UTC (6 years, 8 months ago) by onoe
Branch: MAIN
Changes since 1.98: +4 -3 lines
Diff to previous 1.98 (colored)

Update BSSID at every CONNECTED LINK_STAT notification in IBSS mode,
since it can be updated by IBSS merge. Also the lucent firmware 8.10.1
changes random generated bssid every 10 seconds in IBSS creation enable.
PR 18520

Revision 1.98 / (download) - annotate - [select for diffs], Fri Oct 4 04:23:20 2002 UTC (6 years, 9 months ago) by onoe
Branch: MAIN
Changes since 1.97: +32 -23 lines
Diff to previous 1.97 (colored)

Handle of AP_IN_RANGE/AP_OUT_RANGE, to fix a problem once the station
is out of ragen, it never comes up again.
For HostAP, prohibit sending DATA frame to an unassociated but authenticated
station.

Revision 1.97 / (download) - annotate - [select for diffs], Thu Oct 3 22:32:37 2002 UTC (6 years, 9 months ago) by onoe
Branch: MAIN
Changes since 1.96: +4 -6 lines
Diff to previous 1.96 (colored)

Set IEEE80211_F_IBSSON before test in wi_init() to set CREATE_IBSS
correctly for Lucent firmware to work with IBSS mode.
PR 18520

Revision 1.96 / (download) - annotate - [select for diffs], Wed Oct 2 17:11:34 2002 UTC (6 years, 9 months ago) by onoe
Branch: MAIN
CVS Tags: kqueue-base
Changes since 1.95: +51 -27 lines
Diff to previous 1.95 (colored)

Fix NIC-memory leak for symbol firmware at reinitialization.  After 4-5
times changing of 802.11 parameters, such as nwid, the error
"tx buffer allocation failed" occured unless ifconfig down up.

Pass signal streangth and timestamp to ieee80211_input, though it is not
useful for wi driver for now.

Revision 1.95 / (download) - annotate - [select for diffs], Tue Oct 1 16:11:19 2002 UTC (6 years, 9 months ago) by onoe
Branch: MAIN
Changes since 1.94: +16 -8 lines
Diff to previous 1.94 (colored)

Do not call wi_stop() with disabled flag set from wi_init(), since it
sometimes call within interrupt and deleting handler causes panic.
Fix to display current tx rate as media.
Clear trailer bytes in ssid fields.

Revision 1.94 / (download) - annotate - [select for diffs], Tue Oct 1 09:48:02 2002 UTC (6 years, 9 months ago) by onoe
Branch: MAIN
Changes since 1.93: +4 -3 lines
Diff to previous 1.93 (colored)

Linkstatus AP_IN_RANGE doesn't mean associatted, rather it just mean trying
to associate.

Revision 1.93 / (download) - annotate - [select for diffs], Tue Oct 1 03:27:03 2002 UTC (6 years, 9 months ago) by onoe
Branch: MAIN
Changes since 1.92: +3 -2 lines
Diff to previous 1.92 (colored)

Allow SIOCSIFADDR with AF_LINK and WI_RID_MAC_NODE (wiconfig -m)
to set MAC address.

Revision 1.92 / (download) - annotate - [select for diffs], Tue Oct 1 03:24:35 2002 UTC (6 years, 9 months ago) by onoe
Branch: MAIN
Changes since 1.91: +3 -2 lines
Diff to previous 1.91 (colored)

initialize sc_txcur and sc_txnext at wi_init to avoid reordering after
reinitialized.

Revision 1.91 / (download) - annotate - [select for diffs], Mon Sep 30 15:48:44 2002 UTC (6 years, 9 months ago) by onoe
Branch: MAIN
Changes since 1.90: +43 -50 lines
Diff to previous 1.90 (colored)

old lucent adhoc-demo mode (adhoc,flag0 or wiconfig -p 3) wasn't handled
correctly.  To avoid massive extra code in each driver, now if_iee80211subr.c
also handles non-standard old lucent adhoc-demo mode.
This also fixes PR 14227.

Revision 1.90 / (download) - annotate - [select for diffs], Mon Sep 30 06:50:35 2002 UTC (6 years, 9 months ago) by onoe
Branch: MAIN
Changes since 1.89: +1604 -3157 lines
Diff to previous 1.89 (colored)

Jumbo commit for wi driver.
- Eliminate wi_hostap.c since most of the code are duplicated with
  net/if_ieee80211subr.c
- Station for Infrastructure network and IBSS also use service functions
  as much as possible to be consistent with other wireless drivers.
Now WEP works for station/ibss/hostap.

Revision 1.89 / (download) - annotate - [select for diffs], Mon Sep 30 06:29:29 2002 UTC (6 years, 9 months ago) by onoe
Branch: MAIN
Changes since 1.88: +13 -13 lines
Diff to previous 1.88 (colored)

Nuke unneeded member sc_ifp and use #define sc_if instead,
to prepare jumbo commit for wi.c

Revision 1.88 / (download) - annotate - [select for diffs], Fri Sep 27 21:54:17 2002 UTC (6 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.87: +3 -3 lines
Diff to previous 1.87 (colored)

Increase the timeout in wi_cmd().  Fixes reports of "busy didn't
clear".  From David Young <dyoung@ojctech.com>.

Revision 1.87 / (download) - annotate - [select for diffs], Thu Sep 26 23:55:43 2002 UTC (6 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.86: +3 -3 lines
Diff to previous 1.86 (colored)

If we wi_stop the card in wi_shutdown, better do that before the frontend
removes power from the pcmcia slot (inside the sc_disable hook).

Revision 1.86 / (download) - annotate - [select for diffs], Thu Sep 26 23:47:57 2002 UTC (6 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.85: +4 -2 lines
Diff to previous 1.85 (colored)

Set error = 0 (instead of EINVAL) when it is later tested against != 0.
This allows using wiconfig while the interface is not (yet) marked IFF_UP
again.

Revision 1.85 / (download) - annotate - [select for diffs], Thu Sep 26 22:51:30 2002 UTC (6 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.84: +3 -3 lines
Diff to previous 1.84 (colored)

In wi_shutdown only call wi_stop if sc_enabled is set (don't try to send
commands to a card that is not powered up - it will always fail)

Revision 1.17.2.17 / (download) - annotate - [select for diffs], Mon Sep 23 15:40:22 2002 UTC (6 years, 9 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.17.2.16: +1109 -314 lines
Diff to previous 1.17.2.16 (colored)

Sync with HEAD.

Revision 1.84 / (download) - annotate - [select for diffs], Mon Sep 23 14:31:27 2002 UTC (6 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.83: +1109 -314 lines
Diff to previous 1.83 (colored)

Jumbo patch, from David Young <dyoung@ojctech.com>, with small tweaks
by me:
* Speed up reading/writing buffers from the hardware by avoiding
  slow forward seeks.  In preparation to use the optimization, do
  not read overlapping bytes.  This is currently disabled, but can
  be enabled with OPTIMIZE_RW_DATA.
* Hand 802.11 and Prism-specific frames to BPF.  User can watch these
  frames by specifying an alternate DLT to e.g. tcpdump(8).
* Add support for SIOC[SG]80211BSSID and SIOC[SG]80211CHANNEL.
* Issue join requests and track join/create state through link-status
  notifications.
* Split wi_rxeof into separate routines for receiving Ethernet II,
  802.11 data, and 802.11 management frames.
* Bug fix: Account for aligning m_data to a word boundary in the Rx
  buffer size check.
* Bug fix: Check for LLC/SNAP even if the firmware tells us the frame
  is Ethernet II, as the firmware sometimes gets this wrong.
* Process as many events as possible when we get an interrupt, using
  a simple heuristic to avoid reprocessing an event (which can have
  bad side-effects).  Clamp the time spent in the interrupt handler
  to 4ms.
* Redo the timeout loops to be consistent and less prone to error.
* Add delays to timeout loops which were missing them, so that a
  fast CPU won't win the race.
* Borrow some timeout loop values from the linux-wlan-ng driver,
  which seems to reflect a high level of clue (due to direct support
  from Intersil).
* Get rid of silly wi_read_data(..., len + 2) idiom; simply round up
  in wi_read_data() and wi_write_data().  Also, protect against a
  length of 0.
* Name some frequently-used constants.  Correct spelling.  Other style nits.
* Bug fix: On Prism, set Create IBSS register to 0 *always*.  The meaning
  of Create IBSS == 1 is join an IBSS or *ESS*, and we do not want to
  join an ESS, because that would put us in an inconsistent state.  0
  is the right value for Prism.
* Bug fix: Clean up state at the top of wi_init(), in the event that
  we don't reach the bottom.
* Simplify wi_start() by always providing an RFC1042-encoded 802.11
  frame to the firmware.
* Larval powersave support for HostAP mode, enabled by WI_HOSTAP_POWERSAVE.
* Bug fix: Call wi_stop() from wi_shutdown().
* Bug fix: sync media options with HostAP mode in wi_sync_media().
* In wi_media_status(), inquire firmware for current media state if
  media == auto.  From FreeBSD.
* Clean up the way buffer lengths are computed by using pointer
  arithmetic rather than magic constants.
* Swap the order of comparisons in addr_cmp() for speed.
* Bug fix: Send ReAssoc Response instead of Assoc Response to a
  ReAssoc Request.
* Bug fix: Copy SSID using the correct size.
* Give more meaningful names to offsets in a wi_frame.
* Bug fix: Assign the right values to the named constants for
  Rx frame encoding.
* Get rid of useless SNAP constants.

Revision 1.21.2.7 / (download) - annotate - [select for diffs], Fri Sep 6 08:44:42 2002 UTC (6 years, 9 months ago) by jdolecek
Branch: kqueue
Changes since 1.21.2.6: +554 -131 lines
Diff to previous 1.21.2.6 (colored)

sync kqueue branch with HEAD

Revision 1.72.2.2 / (download) - annotate - [select for diffs], Thu Aug 29 05:22:34 2002 UTC (6 years, 10 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.72.2.1: +554 -131 lines
Diff to previous 1.72.2.1 (colored) to branchpoint 1.72 (colored) next main 1.73 (colored)

catch up with -current.

Revision 1.17.2.16 / (download) - annotate - [select for diffs], Tue Aug 27 23:46:45 2002 UTC (6 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.17.2.15: +69 -102 lines
Diff to previous 1.17.2.15 (colored)

Catch up to -current.

Revision 1.83 / (download) - annotate - [select for diffs], Wed Aug 21 03:26:29 2002 UTC (6 years, 10 months ago) by onoe
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.82: +71 -104 lines
Diff to previous 1.82 (colored)

Make the meaning of media options consistent with other wireless drivers.
	mediaopt adhoc  802.11 adhoc (IBSS) mode.  IBSS creation is enabled
			for cards which can create IBSS.
	mediaopt adhoc,flag0    old lucent adhoc demo mode.
Note that [adhoc] media options for wi driver was used for adhoc demo mode,
which is NOW CHANGED.

Revision 1.17.2.15 / (download) - annotate - [select for diffs], Tue Aug 13 02:19:30 2002 UTC (6 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.17.2.14: +561 -105 lines
Diff to previous 1.17.2.14 (colored)

Catch up to -current.

Revision 1.82 / (download) - annotate - [select for diffs], Mon Aug 12 16:56:39 2002 UTC (6 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.81: +4 -4 lines
Diff to previous 1.81 (colored)

wi_keylen is kept in little-endian order, so le16toh() it before
using it in e.g. a memcpy() call.

Revision 1.81 / (download) - annotate - [select for diffs], Sun Aug 11 22:03:43 2002 UTC (6 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.80: +22 -19 lines
Diff to previous 1.80 (colored)

Pass all 3 parameters to wi_cmd().

Revision 1.80 / (download) - annotate - [select for diffs], Sun Aug 11 21:54:19 2002 UTC (6 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.79: +140 -5 lines
Diff to previous 1.79 (colored)

* Fix a Lucent <-> Prism2 WEP interop bug.  We only want to set the
  EXCLUDE_UNENCRYPTED bit in the WI_RID_P2_ENCRYPTION value if we are
  in shared key mode.  Symbol cards, just to be different, supposedly
  always want the EXCLUDE_UNENCRYPTED bit set (confirmed with the
  Linux orinoco and spectrum24 drivers).

* Flesh out the Host-AP WEP transmit side.  Note this does not yet
  work properly; the frame as seen by the receiver FCS's incorrectly.

Both changes from OpenBSD.  Not confirmed whether or not Host-AP WEP
works with OpenBSD (mail sent to millert).

Revision 1.79 / (download) - annotate - [select for diffs], Sun Aug 11 06:13:53 2002 UTC (6 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.78: +205 -45 lines
Diff to previous 1.78 (colored)

Snapshot of work-in-progress: Add AP support for Prism2-based boards.
WEP for APs is not yet implemented, but without WEP, this works well
enough for my laptop to associate with an AP running this code.

Adapted from OpenBSD.

Revision 1.78 / (download) - annotate - [select for diffs], Sun Aug 11 01:35:10 2002 UTC (6 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.77: +5 -5 lines
Diff to previous 1.77 (colored)

Use WI_RID_DATA_RATES to fetch the supported rates.  From OpenBSD.

Revision 1.77 / (download) - annotate - [select for diffs], Sun Aug 11 01:30:28 2002 UTC (6 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.76: +159 -30 lines
Diff to previous 1.76 (colored)

* Add "wi_flags" to the softc to indicate capabilities of the card.  Fill
  in this info based on firmware type and version.  Replace "wi_has_wep"
  with a flag.
* For cards which support IBSS, add "ibss" has a media option.
* For cards which support CREATE_IBSS, add "ibss-master" as a media
  option.
* Use the "ibss" and "ibss-master" media options to determine if
  we should go into IBSS mode and/or create the IBSS.
* Internally convert between the generic WI_PORTTYPE_IBSS and the
  value the firmware wants to use for IBSS.
* When setting the IBSS name, if a desired-SSID is set, and we're
  an ibss-master, write the desired-SSID into the own-SSID slot.
  This ensures that "ifconfig wi0 nwid FOO" will do the expected
  thing.
* Only set the roaming mode if the card supports roaming.

From OpenBSD.

Revision 1.76 / (download) - annotate - [select for diffs], Sun Aug 11 00:11:52 2002 UTC (6 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.75: +4 -4 lines
Diff to previous 1.75 (colored)

Only read supported rates on Prism2 boards.

Revision 1.75 / (download) - annotate - [select for diffs], Sun Aug 11 00:00:41 2002 UTC (6 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.74: +45 -16 lines
Diff to previous 1.74 (colored)

Read supported rates from the card and report them.  Only add
media types if that rate is supported.

Adapted from OpenBSD.

Revision 1.74 / (download) - annotate - [select for diffs], Sat Aug 10 23:16:14 2002 UTC (6 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.73: +3 -3 lines
Diff to previous 1.73 (colored)

Fix some whitespace.

Revision 1.17.2.14 / (download) - annotate - [select for diffs], Fri Jul 12 01:40:08 2002 UTC (6 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.17.2.13: +2 -3 lines
Diff to previous 1.17.2.13 (colored)

No longer need to pull in lwp.h; proc.h pulls it in for us.

Revision 1.17.2.13 / (download) - annotate - [select for diffs], Mon Jun 24 22:10:04 2002 UTC (7 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.17.2.12: +4 -4 lines
Diff to previous 1.17.2.12 (colored)

Curproc->curlwp renaming.

Change uses of "curproc->l_proc" back to "curproc", which is more like the
original use. Bare uses of "curproc" are now "curlwp".

"curproc" is now #defined in proc.h as ((curlwp) ? (curlwp)->l_proc) : NULL)
so that it is always safe to reference curproc (*de*referencing curproc
is another story, but that's always been true).

Revision 1.21.2.6 / (download) - annotate - [select for diffs], Sun Jun 23 17:46:58 2002 UTC (7 years ago) by jdolecek
Branch: kqueue
Changes since 1.21.2.5: +202 -105 lines
Diff to previous 1.21.2.5 (colored)

catch up with -current on kqueue branch

Revision 1.72.2.1 / (download) - annotate - [select for diffs], Thu Jun 20 16:33:22 2002 UTC (7 years ago) by gehenna
Branch: gehenna-devsw
Changes since 1.72: +9 -9 lines
Diff to previous 1.72 (colored)

catch up with -current.

Revision 1.17.2.12 / (download) - annotate - [select for diffs], Thu Jun 20 03:45:07 2002 UTC (7 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.17.2.11: +9 -9 lines
Diff to previous 1.17.2.11 (colored)

Catch up to -current.

Revision 1.72.4.1 / (download) - annotate - [select for diffs], Sat Jun 1 22:33:23 2002 UTC (7 years, 1 month ago) by tv
Branch: netbsd-1-6
CVS Tags: 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
Changes since 1.72: +9 -9 lines
Diff to previous 1.72 (colored) next main 1.73 (colored)

Pull up revision 1.73 (requested by mycroft in ticket #109):
Makes some cards with Symbol firmware work in ad-hoc mode.

Revision 1.73 / (download) - annotate - [select for diffs], Fri May 31 15:52:55 2002 UTC (7 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.72: +9 -9 lines
Diff to previous 1.72 (colored)

Mask off extraneous bits in the RX frame status when testing it.  My cards set
bit 3 in ad hoc mode.
Also, some minor constant folding.

Revision 1.72 / (download) - annotate - [select for diffs], Thu Apr 18 05:24:28 2002 UTC (7 years, 2 months ago) by onoe
Branch: MAIN
CVS Tags: netbsd-1-6-base
Branch point for: netbsd-1-6, gehenna-devsw
Changes since 1.71: +2 -2 lines
Diff to previous 1.71 (colored)

(force commit: no changes in the code)
WI_RID_SCAN_APS in previous commit works for Intel Pro/Wirelss 2011
with firmware 2.51.1.
It seems that the firmware automatically updated after the card runs on
Windows 2000 with 2011_2011B_CD_3.0 in Intel web site.

Revision 1.17.2.11 / (download) - annotate - [select for diffs], Wed Apr 17 00:05:53 2002 UTC (7 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.17.2.10: +146 -86 lines
Diff to previous 1.17.2.10 (colored)

Catch up to -current.

Revision 1.71 / (download) - annotate - [select for diffs], Tue Apr 16 07:24:06 2002 UTC (7 years, 2 months ago) by onoe
Branch: MAIN
Changes since 1.70: +40 -11 lines
Diff to previous 1.70 (colored)

Support WI_RID_SCAN_APS (wiconfig -D) for Symbol CF Card.
It apparently requires newer firmware (3.10.4), and doesn't work on
Intel PRO/Wireless 2011 (2.0.11).

Revision 1.70 / (download) - annotate - [select for diffs], Sun Apr 14 19:55:23 2002 UTC (7 years, 2 months ago) by onoe
Branch: MAIN
Changes since 1.69: +27 -7 lines
Diff to previous 1.69 (colored)

Some fixes for Symbol card.
- The version string doesn't need to start with 'V'.
- Symbol firmware also support CREATE_IBSS.
- But it doesn't support ROAMING_MODE nor MICROWAVE_OVEN.

Revision 1.69 / (download) - annotate - [select for diffs], Thu Apr 11 11:21:26 2002 UTC (7 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored)

Put device name at start of line.

Revision 1.68 / (download) - annotate - [select for diffs], Fri Apr 5 00:59:38 2002 UTC (7 years, 3 months ago) by ichiro
Branch: MAIN
Changes since 1.67: +3 -3 lines
Diff to previous 1.67 (colored)

Upps, fix typo

Revision 1.67 / (download) - annotate - [select for diffs], Fri Apr 5 00:54:51 2002 UTC (7 years, 3 months ago) by ichiro
Branch: MAIN
Changes since 1.66: +28 -24 lines
Diff to previous 1.66 (colored)

fix minor bugs for lucent cards. (point out from Warner Losh)

Revision 1.66 / (download) - annotate - [select for diffs], Thu Apr 4 17:43:31 2002 UTC (7 years, 3 months ago) by jdolecek
Branch: MAIN
Changes since 1.65: +2 -16 lines
Diff to previous 1.65 (colored)

move wi_pci_reset() from ic/wi.c to pci/if_wi_pci.c, where is belongs

Revision 1.65 / (download) - annotate - [select for diffs], Thu Apr 4 17:30:32 2002 UTC (7 years, 3 months ago) by jdolecek
Branch: MAIN
Changes since 1.64: +3 -4 lines
Diff to previous 1.64 (colored)

fix sligh confusion on whether or not to supply dv_xname to printf() in
  error cases of attach
Noticed in kern/16197 by George E Sollish.

Revision 1.64 / (download) - annotate - [select for diffs], Thu Apr 4 07:06:16 2002 UTC (7 years, 3 months ago) by ichiro
Branch: MAIN
Changes since 1.63: +41 -67 lines
Diff to previous 1.63 (colored)

using table driven for Prism2 family IDs/Names.

Revision 1.63 / (download) - annotate - [select for diffs], Wed Apr 3 15:43:14 2002 UTC (7 years, 3 months ago) by ichiro
Branch: MAIN
Changes since 1.62: +4 -4 lines
Diff to previous 1.62 (colored)

s/WI_NIC_3842/WI_NIC_3842_EVA

Revision 1.62 / (download) - annotate - [select for diffs], Wed Apr 3 15:33:20 2002 UTC (7 years, 3 months ago) by ichiro
Branch: MAIN
Changes since 1.61: +21 -9 lines
Diff to previous 1.61 (colored)

add more IDs of PRISM family

Revision 1.17.2.10 / (download) - annotate - [select for diffs], Mon Apr 1 07:45:46 2002 UTC (7 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.17.2.9: +126 -66 lines
Diff to previous 1.17.2.9 (colored)

Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.61 / (download) - annotate - [select for diffs], Mon Apr 1 02:46:47 2002 UTC (7 years, 3 months ago) by ichiro
Branch: MAIN
Changes since 1.60: +18 -5 lines
Diff to previous 1.60 (colored)

add more IDs of PRISM family

Revision 1.60 / (download) - annotate - [select for diffs], Sun Mar 31 10:44:44 2002 UTC (7 years, 3 months ago) by jdolecek
Branch: MAIN
Changes since 1.59: +7 -3 lines
Diff to previous 1.59 (colored)

add some bound checking
patch submitted by IWAMOTO Toshihiro in kern/13112

Revision 1.59 / (download) - annotate - [select for diffs], Sun Mar 31 05:51:47 2002 UTC (7 years, 3 months ago) by ichiro
Branch: MAIN
Changes since 1.58: +6 -4 lines
Diff to previous 1.58 (colored)

Dont use magic number.
added parameter of WEP flags

Revision 1.58 / (download) - annotate - [select for diffs], Sat Mar 30 16:44:59 2002 UTC (7 years, 3 months ago) by ichiro
Branch: MAIN
Changes since 1.57: +28 -11 lines
Diff to previous 1.57 (colored)

added sc_pri_firmware_ver, and print Primary/Station firmware versions.
cosmetic change.

Revision 1.57 / (download) - annotate - [select for diffs], Sat Mar 30 15:58:45 2002 UTC (7 years, 3 months ago) by ichiro
Branch: MAIN
Changes since 1.56: +4 -4 lines
Diff to previous 1.56 (colored)

the kind of "firmware" was clarified.
firmware -> station firmware

Revision 1.56 / (download) - annotate - [select for diffs], Wed Mar 27 08:01:22 2002 UTC (7 years, 3 months ago) by onoe
Branch: MAIN
Changes since 1.55: +72 -33 lines
Diff to previous 1.55 (colored)

Fix to work Symbol firmware card, which cannot be initialized more than once.
Tested with 3Com 3CRWE737A and Intel Pro/Wireless 2011.

Revision 1.55 / (download) - annotate - [select for diffs], Mon Mar 25 09:10:54 2002 UTC (7 years, 3 months ago) by dbj
Branch: MAIN
Changes since 1.54: +16 -18 lines
Diff to previous 1.54 (colored)


changes from Warner Losh to read firmware version for non prism2 cards

Revision 1.54 / (download) - annotate - [select for diffs], Thu Mar 21 07:31:37 2002 UTC (7 years, 3 months ago) by itohy
Branch: MAIN
CVS Tags: eeh-devprop-base, eeh-devprop
Changes since 1.53: +5 -5 lines
Diff to previous 1.53 (colored)

I have Prism2 with 0.8.2 firmware, and have no problem
using WEP without promisc on the device.

Revision 1.53 / (download) - annotate - [select for diffs], Sun Mar 17 02:52:59 2002 UTC (7 years, 3 months ago) by dbj
Branch: MAIN
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored)


don't set prism2 bit when WI_NIC_LUCENT is detected

Revision 1.21.2.5 / (download) - annotate - [select for diffs], Sat Mar 16 16:01:04 2002 UTC (7 years, 3 months ago) by jdolecek
Branch: kqueue
Changes since 1.21.2.4: +83 -39 lines
Diff to previous 1.21.2.4 (colored)

Catch up with -current.

Revision 1.52 / (download) - annotate - [select for diffs], Sun Mar 10 14:43:38 2002 UTC (7 years, 3 months ago) by ichiro
Branch: MAIN
Changes since 1.51: +12 -15 lines
Diff to previous 1.51 (colored)

fix 128bit WEP work with Prism2 Card.
from FreeBSD

Revision 1.51 / (download) - annotate - [select for diffs], Sun Mar 10 00:16:47 2002 UTC (7 years, 3 months ago) by augustss
Branch: MAIN
CVS Tags: newlock-base, newlock
Changes since 1.50: +6 -2 lines
Diff to previous 1.50 (colored)

Add a nic I don't really know much about, but it's used on my D-Link card.

Revision 1.50 / (download) - annotate - [select for diffs], Wed Mar 6 14:41:39 2002 UTC (7 years, 4 months ago) by dbj
Branch: MAIN
Changes since 1.49: +3 -3 lines
Diff to previous 1.49 (colored)

return EINPROGRESS instead of EINVAL when trying to read
the results of an AP scan that is not finished

Revision 1.49 / (download) - annotate - [select for diffs], Mon Mar 4 01:56:12 2002 UTC (7 years, 4 months ago) by dbj
Branch: MAIN
Changes since 1.48: +6 -5 lines
Diff to previous 1.48 (colored)

Don't attempt to gather unrequested statistics.

Allow SIOCSWAVELAN with WI_RID_IFACE_STATS to request
an immediate statistics update.

We might in the future want to have SIOCGWAVELAN with
WI_RID_IFACE_STATS return an error if a statistics gathering is in
progress.  Then the caller could request fresh statistics and gather
them when they are done.  Instead, we currently just return whatever
statistics are available, which may be up to 60 seconds old.

Revision 1.48 / (download) - annotate - [select for diffs], Mon Mar 4 01:33:17 2002 UTC (7 years, 4 months ago) by dbj
Branch: MAIN
Changes since 1.47: +23 -3 lines
Diff to previous 1.47 (colored)

fix byte swapping when gathering statistics
this should complete the fix to pr 14385
AP scanning and statistic gathering should work on le hosts now

Revision 1.47 / (download) - annotate - [select for diffs], Mon Mar 4 01:30:04 2002 UTC (7 years, 4 months ago) by dbj
Branch: MAIN
Changes since 1.46: +5 -5 lines
Diff to previous 1.46 (colored)

correctly handle AP scanning result when there are no APs

Revision 1.46 / (download) - annotate - [select for diffs], Mon Mar 4 01:21:07 2002 UTC (7 years, 4 months ago) by dbj
Branch: MAIN
Changes since 1.45: +5 -4 lines
Diff to previous 1.45 (colored)

used %02x instead of %x when printing out BSS ids

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

s/Faild/Failed/

Revision 1.17.2.9 / (download) - annotate - [select for diffs], Thu Feb 28 04:13:32 2002 UTC (7 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.17.2.8: +230 -17 lines
Diff to previous 1.17.2.8 (colored)

Catch up to -current.

Revision 1.44 / (download) - annotate - [select for diffs], Tue Feb 26 09:29:18 2002 UTC (7 years, 4 months ago) by dbj
Branch: MAIN
CVS Tags: ifpoll-base, ifpoll
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (colored)


use #ifdef WI_DEBUG instead of #if WI_DEBUG

Revision 1.43 / (download) - annotate - [select for diffs], Tue Feb 26 09:18:54 2002 UTC (7 years, 4 months ago) by dbj
Branch: MAIN
Changes since 1.42: +7 -6 lines
Diff to previous 1.42 (colored)


avoid walking full length of unknown stats structure.
this partially addresses pr14385.
there is still a byte swapping bug retrieving the
stats structure.  Since both the type and the length
are incorrectly swapped, we would timeout while reading
an extra long section (caused by the byteswapped length)
of garbage data.
turning on WI_DEBUG now just reports the unknown info type
which can be seen to be obviously incorrectly swapped
on macppc

Revision 1.42 / (download) - annotate - [select for diffs], Mon Feb 18 14:45:56 2002 UTC (7 years, 4 months ago) by yamt
Branch: MAIN
Changes since 1.41: +4 -4 lines
Diff to previous 1.41 (colored)

fix indent

Revision 1.41 / (download) - annotate - [select for diffs], Mon Feb 18 14:41:50 2002 UTC (7 years, 4 months ago) by yamt
Branch: MAIN
Changes since 1.40: +3 -2 lines
Diff to previous 1.40 (colored)

add a missing splx in the case of error.

Revision 1.40 / (download) - annotate - [select for diffs], Sun Feb 17 19:24:18 2002 UTC (7 years, 4 months ago) by martin
Branch: MAIN
Changes since 1.39: +27 -8 lines
Diff to previous 1.39 (colored)

Protect calls to wi_cmd() from callout handlers by proper splnet()/splx()
pairs. Without this, the interrupt handler will steal the "command completed"
status and wi_cmd will busy loop until it times out.

Add some error output to make failure modes like this more prominent.

This should fix PR 14559.

Revision 1.39 / (download) - annotate - [select for diffs], Wed Feb 13 22:06:17 2002 UTC (7 years, 4 months ago) by itojun
Branch: MAIN
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored)

make the driver even more silent; print state change messages only if IFF_DEBUG.

Revision 1.21.2.4 / (download) - annotate - [select for diffs], Mon Feb 11 20:09:49 2002 UTC (7 years, 4 months ago) by jdolecek
Branch: kqueue
Changes since 1.21.2.3: +204 -12 lines
Diff to previous 1.21.2.3 (colored)

Sync w/ -current.

Revision 1.38 / (download) - annotate - [select for diffs], Fri Feb 1 13:35:41 2002 UTC (7 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.37: +9 -3 lines
Diff to previous 1.37 (colored)

Don't display some (non-exceptional) events unless IFF_DEBUG is set.
I have a card that fires a continuos stream of "connected" events (one
every 30 seconds) while it hasn't found any peer.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Jan 21 21:55:05 2002 UTC (7 years, 5 months ago) by ichiro
Branch: MAIN
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored)

if AP is nothing, FrameLen is 3 or less.

Revision 1.36 / (download) - annotate - [select for diffs], Mon Jan 21 11:29:22 2002 UTC (7 years, 5 months ago) by ichiro
Branch: MAIN
Changes since 1.35: +37 -0 lines
Diff to previous 1.35 (colored)

Print Association status changes to the console.

Revision 1.35 / (download) - annotate - [select for diffs], Mon Jan 21 11:28:18 2002 UTC (7 years, 5 months ago) by ichiro
Branch: MAIN
Changes since 1.34: +137 -5 lines
Diff to previous 1.34 (colored)

"Association Faild" was added to "Link Stat" messages.
;
Implement wi_scan into wi.c.
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.34 / (download) - annotate - [select for diffs], Sun Jan 20 07:26:14 2002 UTC (7 years, 5 months ago) by ichiro
Branch: MAIN
Changes since 1.33: +4 -4 lines
Diff to previous 1.33 (colored)

mistake bit number of tx_rate
case 4 -> case 5

Revision 1.33 / (download) - annotate - [select for diffs], Sun Jan 20 05:39:52 2002 UTC (7 years, 5 months ago) by ichiro
Branch: MAIN
Changes since 1.32: +25 -8 lines
Diff to previous 1.32 (colored)

When the length of the key of WEP was 5 or less octets, WEP was set to 40Bit.
5.5MBps were added to ifmedia.

Revision 1.32 / (download) - annotate - [select for diffs], Fri Jan 18 11:41:49 2002 UTC (7 years, 5 months ago) by ichiro
Branch: MAIN
Changes since 1.31: +5 -5 lines
Diff to previous 1.31 (colored)

to use 104bit WEP key

Revision 1.17.2.8 / (download) - annotate - [select for diffs], Fri Jan 11 23:39:01 2002 UTC (7 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.17.2.7: +55 -18 lines
Diff to previous 1.17.2.7 (colored)

More catchup.

Revision 1.21.2.3 / (download) - annotate - [select for diffs], Thu Jan 10 19:55:10 2002 UTC (7 years, 5 months ago) by thorpej
Branch: kqueue
Changes since 1.21.2.2: +83 -24 lines
Diff to previous 1.21.2.2 (colored)

Sync kqueue branch with -current.

Revision 1.31 / (download) - annotate - [select for diffs], Wed Jan 9 19:37:02 2002 UTC (7 years, 5 months ago) by drochner
Branch: MAIN
Changes since 1.30: +56 -19 lines
Diff to previous 1.30 (colored)

print link status changes to the console

Revision 1.17.2.7 / (download) - annotate - [select for diffs], Wed Jan 9 00:36:29 2002 UTC (7 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.17.2.6: +29 -7 lines
Diff to previous 1.17.2.6 (colored)

Catch up to -current. No, really, for sure this time.

Revision 1.17.2.6 / (download) - annotate - [select for diffs], Tue Jan 8 00:30:13 2002 UTC (7 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.17.2.5: +43 -258 lines
Diff to previous 1.17.2.5 (colored)

Catch up to -current.

Revision 1.30 / (download) - annotate - [select for diffs], Sat Jan 5 20:10:53 2002 UTC (7 years, 5 months ago) by explorer
Branch: MAIN
Changes since 1.29: +39 -232 lines
Diff to previous 1.29 (colored)

revert changes I made a long time ago.  This should undo the changes which are causing problems on some non-x86 platforms.  I'll probsably redo some of these changes, but after the next release branch.

Revision 1.17.2.5 / (download) - annotate - [select for diffs], Thu Nov 15 17:43:57 2001 UTC (7 years, 7 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.17.2.4: +258 -43 lines
Diff to previous 1.17.2.4 (colored)

Merge from -current; compilation fix (pcmcia front-end out of sync
with bus-independent part .. merge error, I guess).

Revision 1.29 / (download) - annotate - [select for diffs], Tue Nov 13 13:14:46 2001 UTC (7 years, 7 months ago) by lukem
Branch: MAIN
Changes since 1.28: +4 -1 lines
Diff to previous 1.28 (colored)

add/cleanup RCSID

Revision 1.27.2.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:18:09 2001 UTC (7 years, 7 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.27: +5 -5 lines
Diff to previous 1.27 (colored) next main 1.28 (colored)

Sync the thorpej-mips-cache branch with -current.

Revision 1.28 / (download) - annotate - [select for diffs], Sun Nov 11 00:16:07 2001 UTC (7 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.27: +5 -5 lines
Diff to previous 1.27 (colored)

Get rid of duplicate RID definitions.

Revision 1.27 / (download) - annotate - [select for diffs], Sun Oct 14 12:33:18 2001 UTC (7 years, 8 months ago) by ichiro
Branch: MAIN
Branch point for: thorpej-mips-cache
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

The description about soft-reset of WI_PCI_COR was added
and WI_PCI_SOFT_RESET was used.
Cosmetic change.

Revision 1.26 / (download) - annotate - [select for diffs], Sat Oct 13 15:00:23 2001 UTC (7 years, 8 months ago) by ichiro
Branch: MAIN
Changes since 1.25: +19 -1 lines
Diff to previous 1.25 (colored)

Add Intersil Prism2.5 Mini-PCI wavelan.

Revision 1.17.2.4 / (download) - annotate - [select for diffs], Mon Oct 8 20:11:03 2001 UTC (7 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.17.2.3: +39 -233 lines
Diff to previous 1.17.2.3 (colored)

Catch up to -current.

Revision 1.24.2.1 / (download) - annotate - [select for diffs], Mon Oct 1 12:45:44 2001 UTC (7 years, 9 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.24: +233 -39 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

Catch up with -current.

Revision 1.17.2.3 / (download) - annotate - [select for diffs], Wed Sep 26 19:54:53 2001 UTC (7 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.17.2.2: +233 -39 lines
Diff to previous 1.17.2.2 (colored)

Catch up to -current.
Again.

Revision 1.25 / (download) - annotate - [select for diffs], Sat Sep 22 17:22:25 2001 UTC (7 years, 9 months ago) by explorer
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2
Changes since 1.24: +233 -39 lines
Diff to previous 1.24 (colored)

Implement two major items:

	(1) Add an IOCTL to tell the Lucent based cards how often to
	    do an access point scan.  These results are returned by
	    calling another IOCTL to get the most recent scan data.

	    This function works with prism2 cards as well, but the
	    data is returned in a different format, or perhaps it is
	    data only for the closest access point.

	(2) For prism2 cards, add the ability to put it into LAN monitor
	    mode, where (via BPF) all packets can be received.  This
	    mode works best with "wiconfig wi0 -p 3 -f ?" to put the
	    card into pseudo-IBSS mode (to keep it from channel-hopping
	    and scanning for access points) and to set the frequency of
	    the AP you wish to monitor.

	    The returned data has a partial wi_frame header (down to the
	    wi_dat_len field) followed by the raw data of the packet.
	    I have and will put up on http://www.flame.org/NetBSD/wireless/
	    some simple utilities which do some perhaps interesting things,
	    like scan for access points, capture packets, etc.

Revision 1.21.2.2 / (download) - annotate - [select for diffs], Sat Aug 25 06:16:18 2001 UTC (7 years, 10 months ago) by thorpej
Branch: kqueue
Changes since 1.21.2.1: +38 -38 lines
Diff to previous 1.21.2.1 (colored)

Merge Aug 24 -current into the kqueue branch.

Revision 1.17.2.2 / (download) - annotate - [select for diffs], Fri Aug 24 00:09:40 2001 UTC (7 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.17.2.1: +73 -74 lines
Diff to previous 1.17.2.1 (colored)

Catch up with -current.

Revision 1.24 / (download) - annotate - [select for diffs], Thu Aug 16 13:37:32 2001 UTC (7 years, 10 months ago) by wiz
Branch: MAIN
CVS Tags: thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp
Changes since 1.23: +37 -37 lines
Diff to previous 1.23 (colored)

Fix indentation in switch statement, per kern/13725 by seebs.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Aug 13 22:52:26 2001 UTC (7 years, 10 months ago) by wiz
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

Space nit. kern/13712 by seebs.

Revision 1.21.2.1 / (download) - annotate - [select for diffs], Fri Aug 3 04:13:06 2001 UTC (7 years, 11 months ago) by lukem
Branch: kqueue
Changes since 1.21: +3 -2 lines
Diff to previous 1.21 (colored)

update to -current

Revision 1.22 / (download) - annotate - [select for diffs], Thu Jul 26 19:46:01 2001 UTC (7 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.21: +3 -2 lines
Diff to previous 1.21 (colored)

make local variable 'len' in wi_set_nwkey() size_t (hence unsigned)
this one is merely cosmetic, no functional change

Revision 1.21 / (download) - annotate - [select for diffs], Sat Jul 7 16:13:51 2001 UTC (7 years, 11 months ago) by thorpej
Branch: MAIN
Branch point for: kqueue
Changes since 1.20: +6 -6 lines
Diff to previous 1.20 (colored)

bzero -> memset

Revision 1.20 / (download) - annotate - [select for diffs], Sat Jul 7 15:53:22 2001 UTC (7 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.19: +26 -26 lines
Diff to previous 1.19 (colored)

bcopy -> memcpy

Revision 1.19 / (download) - annotate - [select for diffs], Sat Jul 7 05:35:42 2001 UTC (7 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

bcmp -> memcmp

Revision 1.18 / (download) - annotate - [select for diffs], Wed Jun 27 22:22:12 2001 UTC (8 years ago) by nathanw
Branch: MAIN
Changes since 1.17: +2 -4 lines
Diff to previous 1.17 (colored)

The back end driver doesn't need PCMCIA headers, but it does need
<machine/bus.h>.

Revision 1.17.2.1 / (download) - annotate - [select for diffs], Thu Jun 21 20:03:30 2001 UTC (8 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.17: +4 -3 lines
Diff to previous 1.17 (colored)

Catch up to -current.

Revision 1.17 / (download) - annotate - [select for diffs], Tue Jun 12 22:32:51 2001 UTC (8 years ago) by thorpej
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.16: +1 -10 lines
Diff to previous 1.16 (colored)

Don't need INET or NS includes here.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Jun 4 03:34:47 2001 UTC (8 years, 1 month ago) by toshii
Branch: MAIN
Changes since 1.15: +5 -3 lines
Diff to previous 1.15 (colored)

Don't pass nonpositive repeat count to CSR_*_MULTI_2.
Should fix kern/13092.

Revision 1.15 / (download) - annotate - [select for diffs], Sat Jun 2 15:49:16 2001 UTC (8 years, 1 month ago) by toshii
Branch: MAIN
Changes since 1.14: +6 -12 lines
Diff to previous 1.14 (colored)

Use bus_space_{read,write}_multi_stream_2 where available.

Revision 1.14 / (download) - annotate - [select for diffs], Sun May 20 13:14:54 2001 UTC (8 years, 1 month ago) by ichiro
Branch: MAIN
Changes since 1.13: +5 -3 lines
Diff to previous 1.13 (colored)

add more comment about firmware of EVAL-CARD.

Revision 1.13 / (download) - annotate - [select for diffs], Sun May 20 12:57:57 2001 UTC (8 years, 1 month ago) by ichiro
Branch: MAIN
Changes since 1.12: +9 -9 lines
Diff to previous 1.12 (colored)

chenge chip and card identity,
print RF-chipset, Medium Access Controller(MAC) and CARD-identity

Revision 1.12 / (download) - annotate - [select for diffs], Wed May 16 14:33:21 2001 UTC (8 years, 1 month ago) by ichiro
Branch: MAIN
Changes since 1.11: +5 -1 lines
Diff to previous 1.11 (colored)

support BUFFALO AirStation WLI-PCM-S11
this card are PRISM2.5 card.

Revision 1.11 / (download) - annotate - [select for diffs], Wed May 16 10:45:36 2001 UTC (8 years, 1 month ago) by tsubai
Branch: MAIN
Changes since 1.10: +129 -118 lines
Diff to previous 1.10 (colored)

Big-endian support.

Revision 1.10 / (download) - annotate - [select for diffs], Wed May 16 07:53:28 2001 UTC (8 years, 1 month ago) by ichiro
Branch: MAIN
Changes since 1.9: +12 -8 lines
Diff to previous 1.9 (colored)

add prism chip identity, Prism2 with SST flush.

Revision 1.9 / (download) - annotate - [select for diffs], Wed May 16 02:36:37 2001 UTC (8 years, 1 month ago) by ichiro
Branch: MAIN
Changes since 1.8: +16 -22 lines
Diff to previous 1.8 (colored)

cosmetic change.
change version format: <major>.<minor> variant <num>

Revision 1.8 / (download) - annotate - [select for diffs], Tue May 15 11:45:50 2001 UTC (8 years, 1 month ago) by ichiro
Branch: MAIN
Changes since 1.7: +5 -5 lines
Diff to previous 1.7 (colored)

fixed mistake.
major version and minor version were made reverse.

Revision 1.7 / (download) - annotate - [select for diffs], Tue May 15 09:06:15 2001 UTC (8 years, 1 month ago) by ichiro
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

Fix indentation in recent commit.

Revision 1.6 / (download) - annotate - [select for diffs], Tue May 15 09:01:27 2001 UTC (8 years, 1 month ago) by ichiro
Branch: MAIN
Changes since 1.5: +26 -12 lines
Diff to previous 1.5 (colored)

getting prism2 firm ver routine to wi_get_id().
if firm ver is more than 0.8c3, promiscuous mode is off.

typo WI_RID_STA_IDENEITY -> WI_RID_STA_IDENTITY

Revision 1.5 / (download) - annotate - [select for diffs], Tue May 15 04:27:22 2001 UTC (8 years, 1 month ago) by ichiro
Branch: MAIN
Changes since 1.4: +5 -4 lines
Diff to previous 1.4 (colored)

WEP cannot be used when Prism2 Firm version is lower than 0.8.3.
Although WEP is used in Windows also in an old firm,
because WEP is processed by the windows driver side.
If Prism2 Firm version is more than 0.8.3, WEP does work without 'Promiscuous ON'.

Revision 1.4 / (download) - annotate - [select for diffs], Tue May 15 04:14:06 2001 UTC (8 years, 1 month ago) by ichiro
Branch: MAIN
Changes since 1.3: +118 -13 lines
Diff to previous 1.3 (colored)

It enabled it to control roaming mode and authentication mode.
Roaming mode can change value into 'firm mode' and disable.
Authentication mode can change into 'Open System authentication'
and 'Shared Key Authentication' with Prism2 chip.

wi_get_id() was introduced in order that chip might judge automatically
whether it is Prism2 chip. Therefore, a pp_prism2 entry in
"struct wi_pcmcia_product" became unnecessary.

Revision 1.3 / (download) - annotate - [select for diffs], Tue May 8 16:42:49 2001 UTC (8 years, 1 month ago) by ichiro
Branch: MAIN
Changes since 1.2: +31 -10 lines
Diff to previous 1.2 (colored)

change promisc mode in case of SIOCSIFFLAGS of wi_ioctl.
Fix indentation.

Revision 1.2 / (download) - annotate - [select for diffs], Tue May 8 13:42:04 2001 UTC (8 years, 1 month ago) by ichiro
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

delay(10) is too much enough for command waiting routine.

Revision 1.1 / (download) - annotate - [select for diffs], Sun May 6 03:26:39 2001 UTC (8 years, 2 months ago) by ichiro
Branch: MAIN

divided into PCMCIA attachment and common code of wi.
since if_wi_ieee.h does not depend for pcmcia,
sys/dev/pcmcia/if_wi_ieee.h was moved to sys/dev/ic/wi_ieee.h .

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>