The NetBSD Project

CVS log for src/sys/dev/pci/if_iwn.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.61.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:07:47 2012 UTC (5 weeks, 4 days ago) by yamt
Branch: yamt-pagecache
Changes since 1.61: +3 -7 lines
Diff to previous 1.61 (colored) next main 1.62 (colored)

sync with head

Revision 1.61.6.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:34:40 2012 UTC (3 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.61: +3 -7 lines
Diff to previous 1.61 (colored) next main 1.62 (colored)

merge to -current.

Revision 1.62 / (download) - annotate - [select for diffs], Mon Jan 30 19:41:20 2012 UTC (3 months, 3 weeks ago) by drochner
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, netbsd-6, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, HEAD
Changes since 1.61: +3 -7 lines
Diff to previous 1.61 (colored)

Use pci_aprint_devinfo(9) instead of pci_devinfo+aprint_{normal,naive}
where it looks straightforward, and pci_aprint_devinfo_fancy in a few
others where drivers want to supply their own device names instead
of the pcidevs generated one. More complicated cases, where names
are composed at runtime, are left alone for now. It certainly makes
sense to simplify the drivers here rather than inventing a catch-all API.
This should serve as as example for new drivers, and also ensure
consistent output in the AB_QUIET ("boot -q") case. Also, it avoids
excessive stack usage where drivers attach child devices because the
buffer for the device name is not kept on the local stack anymore.

Revision 1.61 / (download) - annotate - [select for diffs], Sat Oct 8 11:07:09 2011 UTC (7 months, 2 weeks ago) by elric
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.60: +4 -4 lines
Diff to previous 1.60 (colored)

Use aprint_error_dev().

Revision 1.60 / (download) - annotate - [select for diffs], Sat Oct 8 10:21:16 2011 UTC (7 months, 2 weeks ago) by mbalmer
Branch: MAIN
Changes since 1.59: +4 -4 lines
Diff to previous 1.59 (colored)

Make this compile again: Use the device_xname() macro to get the devic name.

Revision 1.59 / (download) - annotate - [select for diffs], Fri Oct 7 22:42:18 2011 UTC (7 months, 2 weeks ago) by elric
Branch: MAIN
Changes since 1.58: +34 -2 lines
Diff to previous 1.58 (colored)

Update from OpenBSD merging in 1.111 and 1.112 with log messages:

1.112	Differential gain calibration makes the 6005 firmware crap
	out, so skip it for now until we figure out why.  This
	probably means the device won't function optimally, but
	that's better than not functioning at all.  Makes my "Intel
	Centrinto Advanced-N 6205" work quite well.

1.111	The 6005 and 6050-based parts need DC calibration turned
	on, otherwise the firmware will crap out, at least on the
	6005.  First step to getting my "Intel Centrino Advanced-N
	6205" to work.

Both are commited by kettenis@openbsd.org.

Revision 1.58 / (download) - annotate - [select for diffs], Sun Aug 28 16:33:51 2011 UTC (8 months, 4 weeks ago) by elric
Branch: MAIN
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored)

Revert prior inadvertent checkin.

Revision 1.57 / (download) - annotate - [select for diffs], Sun Aug 28 16:26:29 2011 UTC (8 months, 4 weeks ago) by elric
Branch: MAIN
Changes since 1.56: +3 -3 lines
Diff to previous 1.56 (colored)

Remove crypto/dist/heimdal and its associated build infrastructure as
it has been replaced by crypto/external/bsd/heimdal.

Revision 1.52.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:08:13 2011 UTC (11 months, 2 weeks ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.52: +249 -322 lines
Diff to previous 1.52 (colored) next main 1.53 (colored)

Sync with HEAD.

Revision 1.37.2.4 / (download) - annotate - [select for diffs], Tue May 31 03:04:40 2011 UTC (11 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.37.2.3: +247 -320 lines
Diff to previous 1.37.2.3 (colored) to branchpoint 1.37 (colored) next main 1.38 (colored)

sync with head

Revision 1.56 / (download) - annotate - [select for diffs], Sat May 21 12:51:47 2011 UTC (12 months ago) by msaitoh
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Changes since 1.55: +8 -15 lines
Diff to previous 1.55 (colored)

Add newer Wireless WiFi Link 4965 devices, Centrino Wireless-N 1030
and Centrino Advanced-N 6230

Revision 1.55 / (download) - annotate - [select for diffs], Fri May 20 01:59:15 2011 UTC (12 months, 1 week ago) by msaitoh
Branch: MAIN
Changes since 1.54: +4 -5 lines
Diff to previous 1.54 (colored)

Add support for 6050(6250 and 6150) and 6005(6205).
TODO: update iwn.4 manpage.

Revision 1.54 / (download) - annotate - [select for diffs], Wed May 18 01:02:43 2011 UTC (12 months, 1 week ago) by dyoung
Branch: MAIN
Changes since 1.53: +3 -3 lines
Diff to previous 1.53 (colored)

#include <sys/bus.h>, not <machine/bus.h>.

Revision 1.53 / (download) - annotate - [select for diffs], Sun May 15 13:56:20 2011 UTC (12 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.52: +241 -306 lines
Diff to previous 1.52 (colored)

update from OpenBSD by msaitoh. Tested on amd64.

Revision 1.37.2.3 / (download) - annotate - [select for diffs], Sat Mar 5 20:53:41 2011 UTC (14 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.37.2.2: +14 -9 lines
Diff to previous 1.37.2.2 (colored) to branchpoint 1.37 (colored)

sync with head

Revision 1.52 / (download) - annotate - [select for diffs], Thu Dec 30 19:27:27 2010 UTC (16 months, 3 weeks ago) by jruoho
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Changes since 1.51: +4 -3 lines
Diff to previous 1.51 (colored)

Use "temperature" rather than "TEMP" as the sensor name. No functional change.

Revision 1.51 / (download) - annotate - [select for diffs], Thu Dec 30 18:27:01 2010 UTC (16 months, 3 weeks ago) by jruoho
Branch: MAIN
Changes since 1.50: +3 -2 lines
Diff to previous 1.50 (colored)

Fill out struct ifnet::if_stop, which is required for network class devices
in pmf(9). Fixes the panic reported in PR # kern/44296.

Revision 1.36.2.3 / (download) - annotate - [select for diffs], Fri Oct 22 07:22:05 2010 UTC (19 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.36.2.2: +4 -2 lines
Diff to previous 1.36.2.2 (colored) to branchpoint 1.36 (colored) next main 1.37 (colored)

Sync with HEAD (-D20101022).

Revision 1.9.4.7 / (download) - annotate - [select for diffs], Sat Oct 9 03:32:09 2010 UTC (19 months, 2 weeks ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.9.4.6: +6 -4 lines
Diff to previous 1.9.4.6 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)

sync with head

Revision 1.50 / (download) - annotate - [select for diffs], Sun Aug 29 07:00:13 2010 UTC (20 months, 3 weeks ago) by christos
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, uebayasi-xip-base4, uebayasi-xip-base3
Changes since 1.49: +6 -4 lines
Diff to previous 1.49 (colored)

Don't try to hold the mutex if we are disabling the card because we can
be called from an interrupt context. While this is not strictly correct,
we are SoL anyway so this does not matter.

Revision 1.36.2.2 / (download) - annotate - [select for diffs], Tue Aug 17 06:46:25 2010 UTC (21 months, 1 week ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.36.2.1: +272 -442 lines
Diff to previous 1.36.2.1 (colored) to branchpoint 1.36 (colored)

Sync with HEAD.

Revision 1.9.4.6 / (download) - annotate - [select for diffs], Wed Aug 11 22:53:47 2010 UTC (21 months, 2 weeks ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.9.4.5: +1782 -1449 lines
Diff to previous 1.9.4.5 (colored) to branchpoint 1.9 (colored)

sync with head.

Revision 1.49 / (download) - annotate - [select for diffs], Sat Jul 10 04:09:35 2010 UTC (22 months, 2 weeks ago) by christos
Branch: MAIN
CVS Tags: yamt-nfs-mp-base10, uebayasi-xip-base2
Changes since 1.48: +4 -3 lines
Diff to previous 1.48 (colored)

V() the mutex when firmware is initialized, duh!

Revision 1.48 / (download) - annotate - [select for diffs], Sat Jul 3 21:43:37 2010 UTC (22 months, 3 weeks ago) by christos
Branch: MAIN
Changes since 1.47: +7 -7 lines
Diff to previous 1.47 (colored)

Don't use spinlocks.

Revision 1.37.2.2 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:36 2010 UTC (22 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.37.2.1: +201 -57 lines
Diff to previous 1.37.2.1 (colored) to branchpoint 1.37 (colored)

sync with head

Revision 1.47 / (download) - annotate - [select for diffs], Fri Jul 2 14:47:25 2010 UTC (22 months, 3 weeks ago) by christos
Branch: MAIN
Changes since 1.46: +17 -22 lines
Diff to previous 1.46 (colored)

- Fix the recursive iwn_init() call problem properly.
- Don't print the scan request while scanning all the time. Perhaps I will
  remove this completely.

Revision 1.46 / (download) - annotate - [select for diffs], Fri Jun 18 21:10:23 2010 UTC (23 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.45: +203 -54 lines
Diff to previous 1.45 (colored)

Patch from Sverre Froyen to avoid panic when an ioctl happens while the
driver is initializing.

Revision 1.37.2.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:33 2010 UTC (23 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.37: +1623 -1435 lines
Diff to previous 1.37 (colored)

sync with head

Revision 1.45 / (download) - annotate - [select for diffs], Wed May 12 12:26:16 2010 UTC (2 years ago) by christos
Branch: MAIN
Changes since 1.44: +3 -18 lines
Diff to previous 1.44 (colored)

Use device names from the OpenBSD iwn driver, adding and modifying device
names as needed. From Sverre Froyen

Revision 1.44 / (download) - annotate - [select for diffs], Sun May 2 02:06:15 2010 UTC (2 years ago) by christos
Branch: MAIN
Changes since 1.43: +74 -374 lines
Diff to previous 1.43 (colored)

Replace iwn_tx from rev. 1.39 with a port of the current OpenBSD version.
Remove superfluous call to bpf_detach.
Add comments regarding porting issues and add a couple of cosmetic changes
that reduce the diffs to the OpenBSD version. From Sverre Froyen

Revision 1.36.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:43:35 2010 UTC (2 years ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.36: +1958 -1455 lines
Diff to previous 1.36 (colored)

Sync with HEAD.

Revision 1.43 / (download) - annotate - [select for diffs], Wed Apr 28 15:56:24 2010 UTC (2 years ago) by christos
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Changes since 1.42: +2 -3 lines
Diff to previous 1.42 (colored)

kill stray free. from Sverre Froyen.

Revision 1.42 / (download) - annotate - [select for diffs], Fri Apr 23 20:56:20 2010 UTC (2 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.41: +25 -18 lines
Diff to previous 1.41 (colored)

Align usage of *free and *alloc and clean up the firmware read code.
This fixes two panics that occur for kernels compiled with DIAGNOSTIC and
DEBUG. From Sverre Froyen

Revision 1.41 / (download) - annotate - [select for diffs], Sat Apr 17 15:57:22 2010 UTC (2 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored)

add support for the 6000. From sverre froyen

Revision 1.40 / (download) - annotate - [select for diffs], Fri Apr 16 01:40:41 2010 UTC (2 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.39: +1931 -1436 lines
Diff to previous 1.39 (colored)

Update with newer version from Sverre Froyen

Revision 1.39 / (download) - annotate - [select for diffs], Sun Apr 11 02:02:14 2010 UTC (2 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.38: +18 -14 lines
Diff to previous 1.38 (colored)

avoid rbuf starvation.  when grabbing a recieve buffer, if a local
4KB buffer isn't available, try to MEXTMALLOC() one.  only if both
of these fail to we abort the recieve operation.

based on a patch from Sverre Froyen <sverre@viewmark.com>, thanks!

tested by myself, sverre and jeremy reed.

Revision 1.38 / (download) - annotate - [select for diffs], Mon Apr 5 07:20:26 2010 UTC (2 years, 1 month ago) by joerg
Branch: MAIN
Changes since 1.37: +8 -10 lines
Diff to previous 1.37 (colored)

Push the bpf_ops usage back into bpf.h. Push the common ifp->if_bpf
check into the inline functions as well the fourth argument for
bpf_attach.

Revision 1.9.4.5 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:46 2010 UTC (2 years, 2 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.9.4.4: +17 -31 lines
Diff to previous 1.9.4.4 (colored) to branchpoint 1.9 (colored)

sync with head

Revision 1.37 / (download) - annotate - [select for diffs], Wed Feb 24 22:38:00 2010 UTC (2 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9
Branch point for: rmind-uvmplock
Changes since 1.36: +4 -4 lines
Diff to previous 1.36 (colored)

A pointer typedef entails trading too much flexibility to declare const
and non-const types, and the kernel uses both const and non-const
PMF qualifiers and device suspensors, so change the pmf_qual_t and
device_suspensor_t typedefs from "pointers to const" to non-pointer,
non-const types.

Revision 1.36 / (download) - annotate - [select for diffs], Tue Jan 19 22:07:00 2010 UTC (2 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.35: +11 -25 lines
Diff to previous 1.35 (colored)

Redefine bpf linkage through an always present op vector, i.e.
#if NBPFILTER is no longer required in the client.  This change
doesn't yet add support for loading bpf as a module, since drivers
can register before bpf is attached.  However, callers of bpf can
now be modularized.

Dynamically loadable bpf could probably be done fairly easily with
coordination from the stub driver and the real driver by registering
attachments in the stub before the real driver is loaded and doing
a handoff.  ... and I'm not going to ponder the depths of unload
here.

Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.

Revision 1.35 / (download) - annotate - [select for diffs], Fri Jan 8 19:56:51 2010 UTC (2 years, 4 months ago) by dyoung
Branch: MAIN
Changes since 1.34: +4 -4 lines
Diff to previous 1.34 (colored)

Expand PMF_FN_* macros.

Revision 1.34 / (download) - annotate - [select for diffs], Sat Nov 21 14:51:04 2009 UTC (2 years, 6 months ago) by njoly
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.33: +6 -6 lines
Diff to previous 1.33 (colored)

Cleanup boot messages, use aprint functions.

Revision 1.9.4.4 / (download) - annotate - [select for diffs], Wed Sep 16 13:37:51 2009 UTC (2 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.9.4.3: +3886 -2072 lines
Diff to previous 1.9.4.3 (colored) to branchpoint 1.9 (colored)

sync with head

Revision 1.33 / (download) - annotate - [select for diffs], Fri Sep 11 01:28:20 2009 UTC (2 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, jym-xensuspend-nbase
Changes since 1.32: +3873 -2059 lines
Diff to previous 1.32 (colored)

Add support for the 5100 and newer firmware. Tested also with the 4900.
Thanks to everyone for helping and testing.

Revision 1.32 / (download) - annotate - [select for diffs], Sat Sep 5 14:09:55 2009 UTC (2 years, 8 months ago) by tsutsui
Branch: MAIN
Changes since 1.31: +5 -5 lines
Diff to previous 1.31 (colored)

Invert logic around nested pmf(9) registrations for readability.

Revision 1.9.4.3 / (download) - annotate - [select for diffs], Sat May 16 10:41:34 2009 UTC (3 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.9.4.2: +6 -6 lines
Diff to previous 1.9.4.2 (colored) to branchpoint 1.9 (colored)

sync with head

Revision 1.28.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:20:25 2009 UTC (3 years ago) by jym
Branch: jym-xensuspend
Changes since 1.28: +6 -6 lines
Diff to previous 1.28 (colored) next main 1.29 (colored)

Sync with HEAD.

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

Revision 1.31 / (download) - annotate - [select for diffs], Tue May 12 08:23:00 2009 UTC (3 years ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, jymxensuspend-base, jym-xensuspend-base
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

use device_private().
"looks good" ad@
XXX for the device_t/softc split, please check the driver that no cases have been missed.

Revision 1.30 / (download) - annotate - [select for diffs], Thu May 7 08:10:02 2009 UTC (3 years ago) by cegger
Branch: MAIN
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

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

Revision 1.29 / (download) - annotate - [select for diffs], Wed May 6 09:25:15 2009 UTC (3 years ago) by cegger
Branch: MAIN
Changes since 1.28: +4 -4 lines
Diff to previous 1.28 (colored)

struct cfdata * -> cfdata_t, no functional changes intended.

Revision 1.9.4.2 / (download) - annotate - [select for diffs], Mon May 4 08:12:56 2009 UTC (3 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.9.4.1: +366 -169 lines
Diff to previous 1.9.4.1 (colored) to branchpoint 1.9 (colored)

sync with head.

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:18:25 2009 UTC (3 years, 4 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.22: +112 -47 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

Sync with HEAD.

Revision 1.5.8.4 / (download) - annotate - [select for diffs], Sat Jan 17 13:28:59 2009 UTC (3 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.5.8.3: +194 -65 lines
Diff to previous 1.5.8.3 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

Sync with HEAD.

Revision 1.28 / (download) - annotate - [select for diffs], Mon Dec 22 11:32:04 2008 UTC (3 years, 5 months ago) by blymn
Branch: MAIN
CVS Tags: yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, mjf-devfs2-base
Branch point for: jym-xensuspend
Changes since 1.27: +89 -24 lines
Diff to previous 1.27 (colored)

Pay more attention to the state of the RF kill switch, such as don't
bring the interface up when the RF is off.

Revision 1.10.4.2 / (download) - annotate - [select for diffs], Sat Dec 13 01:14:35 2008 UTC (3 years, 5 months ago) by haad
Branch: haad-dm
Changes since 1.10.4.1: +26 -27 lines
Diff to previous 1.10.4.1 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

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

Revision 1.22.4.3 / (download) - annotate - [select for diffs], Sat Nov 15 03:13:51 2008 UTC (3 years, 6 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b
Changes since 1.22.4.2: +5 -5 lines
Diff to previous 1.22.4.2 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored)

Pull up following revision(s) (requested by blymn in ticket #58):
	sys/dev/pci/if_iwn.c: revision 1.24
Move init of essid to the attach code.

Revision 1.22.4.2 / (download) - annotate - [select for diffs], Sat Nov 15 03:08:27 2008 UTC (3 years, 6 months ago) by snj
Branch: netbsd-5
Changes since 1.22.4.1: +6 -3 lines
Diff to previous 1.22.4.1 (colored) to branchpoint 1.22 (colored)

Pull up following revision(s) (requested by blymn in ticket #58):
	sys/dev/pci/if_iwn.c: revision 1.23
* Disable aborting the scan for the moment - it causes a firmware error if
  a scan was never initiated which breaks WEP and open wireless
  connections
* Make sure the ESSID is cleared.

Revision 1.27 / (download) - annotate - [select for diffs], Thu Nov 13 12:04:09 2008 UTC (3 years, 6 months ago) by blymn
Branch: MAIN
CVS Tags: haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.26: +18 -23 lines
Diff to previous 1.26 (colored)

Actually declare the structures used in iwn_scan_hdr instead of using
pointer arithmetic to create the elements on the fly.

Other changes to scan routine taken from FreeBSD driver.

Revision 1.22.4.1 / (download) - annotate - [select for diffs], Sun Nov 9 04:00:06 2008 UTC (3 years, 6 months ago) by snj
Branch: netbsd-5
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

Pull up following revision(s) (requested by joerg in ticket #25):
	sys/dev/pci/if_ipw.c: revision 1.44
	sys/dev/pci/if_ipwvar.h: revision 1.14
	sys/dev/pci/if_iwi.c: revision 1.76
	sys/dev/pci/if_iwn.c: revision 1.26
Match image name with upstream distfiles.

Revision 1.26 / (download) - annotate - [select for diffs], Fri Nov 7 14:58:27 2008 UTC (3 years, 6 months ago) by joerg
Branch: MAIN
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

Match image name with upstream distfiles.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Nov 7 00:20:07 2008 UTC (3 years, 6 months ago) by dyoung
Branch: MAIN
Changes since 1.24: +4 -2 lines
Diff to previous 1.24 (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.24 / (download) - annotate - [select for diffs], Thu Nov 6 12:03:43 2008 UTC (3 years, 6 months ago) by blymn
Branch: MAIN
Changes since 1.23: +5 -5 lines
Diff to previous 1.23 (colored)

Move init of essid to the attach code.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Nov 5 09:42:20 2008 UTC (3 years, 6 months ago) by blymn
Branch: MAIN
Changes since 1.22: +6 -3 lines
Diff to previous 1.22 (colored)

* Disable aborting the scan for the moment - it causes a firmware error if
  a scan was never initiated which breaks WEP and open wireless connections
* Make sure the ESSID is cleared.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Oct 20 09:33:48 2008 UTC (3 years, 7 months ago) by rtr
Branch: MAIN
CVS Tags: netbsd-5-base, matt-mips64-base2
Branch point for: nick-hppapmap, netbsd-5
Changes since 1.21: +3 -4 lines
Diff to previous 1.21 (colored)

- fix crazy condition that always evaluates to false without this
  iwn_fix_channel() never gets called.
- remove hardcode to ic->ic_channels[11]

fixes a problem in associating to access points

Revision 1.10.4.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:16:38 2008 UTC (3 years, 7 months ago) by haad
Branch: haad-dm
Changes since 1.10: +261 -128 lines
Diff to previous 1.10 (colored)

Sync with HEAD.

Revision 1.21 / (download) - annotate - [select for diffs], Sat Oct 18 15:55:27 2008 UTC (3 years, 7 months ago) by blymn
Branch: MAIN
CVS Tags: haad-dm-base1
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

Make scan abort command async as newstate is called from an interrupt
context so we cannot ltsleep.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Oct 13 12:41:45 2008 UTC (3 years, 7 months ago) by blymn
Branch: MAIN
Changes since 1.19: +90 -25 lines
Diff to previous 1.19 (colored)

DMA fixes thanks to rtr & skrll
Don't set tsf in auth, this stops firmware errors on WPA renegotiation
Various other tweaks that the linux driver seems to have that we did not

Revision 1.9.6.4 / (download) - annotate - [select for diffs], Fri Oct 10 22:32:16 2008 UTC (3 years, 7 months ago) by skrll
Branch: wrstuden-revivesa
Changes since 1.9.6.3: +3 -6 lines
Diff to previous 1.9.6.3 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)

Sync with HEAD.

Revision 1.5.8.3 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:26 2008 UTC (3 years, 7 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.5.8.2: +181 -113 lines
Diff to previous 1.5.8.2 (colored) to branchpoint 1.5 (colored)

Sync with HEAD.

Revision 1.9.6.3 / (download) - annotate - [select for diffs], Wed Sep 24 16:38:53 2008 UTC (3 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.9.6.2: +3 -3 lines
Diff to previous 1.9.6.2 (colored) to branchpoint 1.9 (colored)

Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Sep 20 18:28:28 2008 UTC (3 years, 8 months ago) by freza
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4
Changes since 1.18: +3 -6 lines
Diff to previous 1.18 (colored)

iwn_node_alloc(): Allocate 'iwn_node' in M_80211_NODE (which is what
    ieee80211_node:node_free() expects), not M_DEVBUF. Fixes DIAGNOSTIC
    crashes due to suspected double-free.

Revision 1.9.6.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:35:06 2008 UTC (3 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.9.6.1: +182 -111 lines
Diff to previous 1.9.6.1 (colored) to branchpoint 1.9 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Sep 14 10:09:39 2008 UTC (3 years, 8 months ago) by freza
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

* iwn_rx_intr(): free rbuf is available if 'nb_free_entries > 0'.
    This used to have '>=' resulting in kernel crash accessing NULL
    rbuf under non-trivial Rx load.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Aug 18 21:19:22 2008 UTC (3 years, 9 months ago) by cube
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-2
Changes since 1.16: +21 -9 lines
Diff to previous 1.16 (colored)

- Make RX queue free list code look like in if_wpi.c, including:
- Protect RX queue free list with a mutex, as it was done in so many
  network drivers now that it calls for common code, as dyoung@ points
  out.

However, for now it should improve a bit iwn(4)'s stability.

Revision 1.10.2.2 / (download) - annotate - [select for diffs], Thu Jul 31 04:51:01 2008 UTC (3 years, 9 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.10.2.1: +58 -53 lines
Diff to previous 1.10.2.1 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

Sync with head.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Jul 29 12:01:41 2008 UTC (3 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: simonb-wapbl-nbase, simonb-wapbl-base, nick-csl-alignment-base5
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

fix typo.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Jul 28 17:02:45 2008 UTC (3 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.14: +45 -45 lines
Diff to previous 1.14 (colored)

just whitespace fixes.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Jul 28 17:01:16 2008 UTC (3 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.13: +13 -8 lines
Diff to previous 1.13 (colored)

fix type punned warnings.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Jul 28 15:28:27 2008 UTC (3 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.12: +4 -4 lines
Diff to previous 1.12 (colored)

lint wins again :-) From Anon Ymous:
- fix a mis-placed parenthesis.
- fix assignment to the wrong variable.

Revision 1.10.2.1 / (download) - annotate - [select for diffs], Mon Jul 28 14:37:27 2008 UTC (3 years, 9 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.10: +109 -55 lines
Diff to previous 1.10 (colored)

Sync with head.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Jul 26 15:10:34 2008 UTC (3 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

make sure we write little endian. From Anon Ymous

Revision 1.11 / (download) - annotate - [select for diffs], Thu Jul 24 13:04:00 2008 UTC (3 years, 10 months ago) by blymn
Branch: MAIN
Changes since 1.10: +108 -54 lines
Diff to previous 1.10 (colored)

* Add the BSS node during the auth phase so negotiation can occur
* Make the adding of a node into a function instead of duplicating code

Revision 1.9.6.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:11 2008 UTC (3 years, 11 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.5.8.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:39 2008 UTC (3 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.5.8.1: +1 -1 lines
Diff to previous 1.5.8.1 (colored) to branchpoint 1.5 (colored)

Sync with HEAD.

Revision 1.9.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:34:19 2008 UTC (4 years ago) by yamt
Branch: yamt-pf42
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored) next main 1.10 (colored)

sync with head.

Revision 1.9.4.1 / (download) - annotate - [select for diffs], Fri May 16 02:24:43 2008 UTC (4 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

sync with head.

Revision 1.10 / (download) - annotate - [select for diffs], Sat May 10 12:56:28 2008 UTC (4 years ago) by degroote
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: simonb-wapbl, haad-dm
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

Fix error handling after m_pullup

Revision 1.5.8.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:42:50 2008 UTC (4 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.5: +48 -49 lines
Diff to previous 1.5 (colored)

Sync with HEAD.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Mar 29 09:38:42 2008 UTC (4 years, 1 month ago) by blymn
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base
Branch point for: yamt-pf42, yamt-nfs-mp, wrstuden-revivesa
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

Remove erroneous byteswap of flags - the flags are byteswapped when
assigned to the tx struct.

Revision 1.8 / (download) - annotate - [select for diffs], Sat Mar 29 09:36:29 2008 UTC (4 years, 1 month ago) by blymn
Branch: MAIN
Changes since 1.7: +45 -45 lines
Diff to previous 1.7 (colored)

Clean up trailing whitespace.

Revision 1.5.4.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:15:48 2008 UTC (4 years, 2 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.5: +4 -5 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

sync with head.

Revision 1.7.2.2 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:47 2008 UTC (4 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.7.2.1: +3823 -0 lines
Diff to previous 1.7.2.1 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored)

sync with HEAD

Revision 1.4.2.4 / (download) - annotate - [select for diffs], Mon Mar 17 09:15:11 2008 UTC (4 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.4.2.3: +4 -5 lines
Diff to previous 1.4.2.3 (colored) next main 1.5 (colored)

sync with head.

Revision 1.7.2.1, Thu Mar 13 16:29:48 2008 UTC (4 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.7: +0 -3823 lines
FILE REMOVED

file if_iwn.c was added on branch matt-armv6 on 2008-03-23 02:04:47 +0000

Revision 1.7 / (download) - annotate - [select for diffs], Thu Mar 13 16:29:48 2008 UTC (4 years, 2 months ago) by taca
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Branch point for: matt-armv6
Changes since 1.6: +4 -4 lines
Diff to previous 1.6 (colored)

Reflect change of PMF_FN_ARGS.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Mar 11 20:55:32 2008 UTC (4 years, 2 months ago) by dyoung
Branch: MAIN
Changes since 1.5: +2 -3 lines
Diff to previous 1.5 (colored)

pci_disable_retry() is now a no-op, so don't call it any more.

Revision 1.4.2.3 / (download) - annotate - [select for diffs], Wed Feb 27 08:36:35 2008 UTC (4 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.4.2.2: +2 -21 lines
Diff to previous 1.4.2.2 (colored)

sync with head.

Revision 1.5.2.2 / (download) - annotate - [select for diffs], Mon Feb 18 21:05:57 2008 UTC (4 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.5.2.1: +3824 -0 lines
Diff to previous 1.5.2.1 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

Sync with HEAD.

Revision 1.5.2.1, Sat Feb 16 18:51:42 2008 UTC (4 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.5: +0 -3824 lines
FILE REMOVED

file if_iwn.c was added on branch mjf-devfs on 2008-02-18 21:05:57 +0000

Revision 1.5 / (download) - annotate - [select for diffs], Sat Feb 16 18:51:42 2008 UTC (4 years, 3 months ago) by ober
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, hpcarm-cleanup-base
Branch point for: mjf-devfs2, mjf-devfs, keiichi-mipv6
Changes since 1.4: +2 -21 lines
Diff to previous 1.4 (colored)

More cleanup. Removal of debug comments.

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Mon Feb 11 14:59:38 2008 UTC (4 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.4.2.1: +3843 -0 lines
Diff to previous 1.4.2.1 (colored)

sync with head.

Revision 1.4.2.1, Sun Feb 10 10:33:10 2008 UTC (4 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.4: +0 -3843 lines
FILE REMOVED

file if_iwn.c was added on branch yamt-lazymbuf on 2008-02-11 14:59:38 +0000

Revision 1.4 / (download) - annotate - [select for diffs], Sun Feb 10 10:33:10 2008 UTC (4 years, 3 months ago) by skrll
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

Use PRIu64 in a DPRINTF.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Feb 9 19:14:53 2008 UTC (4 years, 3 months ago) by skrll
Branch: MAIN
Changes since 1.2: +7 -8 lines
Diff to previous 1.2 (colored)

More whitespace and RCSIds.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Feb 9 18:19:33 2008 UTC (4 years, 3 months ago) by ober
Branch: MAIN
Changes since 1.1: +121 -121 lines
Diff to previous 1.1 (colored)

Clean up white space and KNF everything.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Feb 9 12:25:43 2008 UTC (4 years, 3 months ago) by ober
Branch: MAIN

Intel PRO/Wireless LAN 4965AGN Mini-PCI Adapter Driver ported from OpenBSD
by deroote@.  OK nick@ moof@

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>