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.224.6.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:28 2008 UTC (7 weeks, 3 days ago) by mjf
Branch: mjf-devfs2
Changes since 1.224: +55 -66 lines
Diff to previous 1.224 (colored) next main 1.225 (colored)

Sync with HEAD.

Revision 1.225.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:33:46 2008 UTC (2 months, 1 week 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 (2 months, 1 week ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.225: +2 -9 lines
Diff to previous 1.225 (colored) next main 1.226 (colored)

sync with head.

Revision 1.226 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:51 2008 UTC (2 months, 3 weeks ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, mjf-devfs2-base, hpcarm-cleanup-nbase, haad-dm-base, haad-dm, HEAD
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 (3 months, 2 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 (6 months 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 (6 months, 2 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 (6 months, 3 weeks 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 (6 months, 4 weeks 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 (7 months 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 (7 months, 1 week 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 (7 months, 2 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 (8 months, 2 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 (8 months, 4 weeks 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 (8 months, 4 weeks 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 (8 months, 4 weeks 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 (9 months 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 (9 months 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 (9 months, 2 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 (10 months, 2 weeks 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 (10 months, 3 weeks 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 (10 months, 3 weeks 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 (10 months, 3 weeks 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 (10 months, 3 weeks 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, nick-csl-alignment-base4
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 (12 months, 2 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 (12 months, 2 weeks ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base3, nick-csl-alignment-base2, nick-csl-alignment-base, mjf-ufs-trans-base, matt-mips64-base, 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 (12 months, 3 weeks 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 (16 months, 2 weeks 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 (16 months, 3 weeks 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 (16 months, 4 weeks 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 (18 months, 1 week 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 (18 months, 2 weeks 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 (18 months, 3 weeks 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 (19 months, 2 weeks 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 (20 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 (20 months, 1 week ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, 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, 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 (21 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 (21 months, 1 week 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 (22 months, 2 weeks 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 (23 months, 2 weeks 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 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 (2 years, 1 month 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 (2 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 (2 years, 2 months 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 (2 years, 2 months 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 (2 years, 2 months 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 (2 years, 3 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 (2 years, 3 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 (2 years, 4 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 (2 years, 4 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 (2 years, 4 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 (2 years, 4 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 (2 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 (2 years, 5 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 (2 years, 7 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 (2 years, 7 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 (2 years, 8 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 (2 years, 8 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 (2 years, 8 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 (2 years, 11 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 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 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 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 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 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 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 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 (3 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 (3 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 (3 years, 1 month 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 (3 years, 1 month 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 (3 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 (3 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 (3 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 (3 years, 4 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 (3 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 (3 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 (3 years, 5 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 (3 years, 5 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 (3 years, 6 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 (3 years, 6 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 (3 years, 6 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 (3 years, 7 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 (3 years, 7 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 (3 years, 7 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 (3 years, 7 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 (3 years, 7 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 (3 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 (3 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 (3 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 (3 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 (3 years, 9 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.130.2.2: +7 -22 lines
Diff to previous 1.130.2.2 (