CVS log for src/sys/dev/ic/wi.c
Up to [cvs.NetBSD.org] / src / sys / dev / ic
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.258: download - view: text, markup, annotated - select for diffs
Tue Aug 1 07:04:15 2023 UTC (3 years, 3 months ago) by mrg
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation,
perseant-exfatfs-base-20261102,
perseant-exfatfs-base-20250801,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
netbsd-11-base,
netbsd-11-1-RELEASE,
netbsd-11-0-RELEASE,
netbsd-11-0-RC7,
netbsd-11-0-RC6,
netbsd-11-0-RC5,
netbsd-11-0-RC4,
netbsd-11-0-RC3,
netbsd-11-0-RC2,
netbsd-11-0-RC1,
netbsd-11,
HEAD
Diff to: previous 1.257: preferred, colored
Changes since revision 1.257: +8 -6
lines
fix simple mis-matched function prototype and definitions.
most of these are like, eg
void foo(int[2]);
with either of these
void foo(int*) { ... }
void foo(int[]) { ... }
in some cases (such as stat or utimes* calls found in our header files),
we now match standard definition from opengroup.
found by GCC 12.
Revision 1.257: download - view: text, markup, annotated - select for diffs
Tue Sep 21 14:50:12 2021 UTC (5 years, 1 month ago) by christos
Branches: MAIN
CVS tags: netbsd-10-base,
netbsd-10-2-RELEASE,
netbsd-10-1-RELEASE,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm
Diff to: previous 1.256: preferred, colored
Changes since revision 1.256: +3 -3
lines
don't opencode kauth_cred_get()
Revision 1.255.10.1: download - view: text, markup, annotated - select for diffs
Thu Jun 17 04:46:28 2021 UTC (5 years, 5 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.255: preferred, colored; next MAIN 1.256: preferred, colored
Changes since revision 1.255: +4 -11
lines
Sync w/ HEAD.
Revision 1.256: download - view: text, markup, annotated - select for diffs
Wed Jun 16 00:21:18 2021 UTC (5 years, 5 months ago) by riastradh
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2,
thorpej-i2c-spi-conf-base,
thorpej-futex2-base,
thorpej-futex2,
thorpej-cfargs2-base,
thorpej-cfargs2
Diff to: previous 1.255: preferred, colored
Changes since revision 1.255: +4 -11
lines
if_attach and if_initialize cannot fail, don't test return value
These were originally made failable back in 2017 when if_initialize
allocated a softint in every interface for link state changes, so
that it could fail gracefully instead of panicking:
https://mail-index.NetBSD.org/source-changes/2017/10/23/msg089053.html
However, this spawned many seldom- or never-tested error branches,
which are risky to have around. And that softint in every interface
has since been replaced by a single global workqueue, because link
state changes require thread context but not low latency or high
throughput:
https://mail-index.NetBSD.org/source-changes/2020/02/06/msg113759.html
So there is no longer any reason for if_initialize to fail. (The
subroutine if_stats_init can't fail because percpu_alloc can't fail
either.)
There is a snag: the softint_establish in if_percpuq_create could
fail, potentially leading to bad consequences later on trying to use
the softint. This change doesn't introduce any new bugs because of
the snag -- if_percpuq_attach was already broken. However, the snag
can be better addressed without spawning error branches, either by
using a single softint or making softints less scarce.
(Separate commit will change the signatures of if_attach and
if_initialize to return void, scheduled to ride whatever is the next
convenient kernel bump.)
Patch and testing on amd64 and evbmips64-eb by maya@; commit message
soliloquy, and compile-testing on evbppc/i386/earmv7hf, by me.
Revision 1.247.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:06 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.247.2.1: preferred, colored; branchpoint 1.247: preferred, colored; next MAIN 1.248: preferred, colored
Changes since revision 1.247.2.1: +17 -21
lines
Merge changes from current as of 20200406
Revision 1.254.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 29 20:19:08 2020 UTC (6 years, 8 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.254: preferred, colored; next MAIN 1.255: preferred, colored
Changes since revision 1.254: +17 -16
lines
Sync with head.
Revision 1.255: download - view: text, markup, annotated - select for diffs
Thu Jan 30 04:56:11 2020 UTC (6 years, 9 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-futex-base,
thorpej-futex,
thorpej-cfargs-base,
thorpej-cfargs,
phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
is-mlppp-base,
is-mlppp,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1,
bouyer-xenpvh-base,
bouyer-xenpvh,
ad-namecache-base3
Branch point for: thorpej-i2c-spi-conf
Diff to: previous 1.254: preferred, colored
Changes since revision 1.254: +17 -16
lines
Adopt <net/if_stats.h>.
Revision 1.254: download - view: text, markup, annotated - select for diffs
Thu Dec 5 03:11:40 2019 UTC (6 years, 11 months ago) by msaitoh
Branches: MAIN
CVS tags: ad-namecache-base2,
ad-namecache-base1,
ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.253: preferred, colored
Changes since revision 1.253: +2 -7
lines
Remove SIOC[GS]IFMEDIA because ieee80211_ioctl() does the same thing.
Revision 1.247.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:11 2019 UTC (7 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.247: preferred, colored
Changes since revision 1.247: +81 -77
lines
Sync with HEAD
Revision 1.253: download - view: text, markup, annotated - select for diffs
Tue May 28 07:41:48 2019 UTC (7 years, 5 months ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-20191119,
phil-wifi-20190609,
netbsd-9-base,
netbsd-9-5-RELEASE,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9
Diff to: previous 1.252: preferred, colored
Changes since revision 1.252: +9 -4
lines
Use ETHER_LOCK()/ETHER_UNLOCK() for all ethernet drivers to protect ec_multi*.
Revision 1.252: download - view: text, markup, annotated - select for diffs
Thu May 23 13:10:51 2019 UTC (7 years, 5 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.251: preferred, colored
Changes since revision 1.251: +13 -13
lines
Whitespace fix (mainly tabify).
Revision 1.251: download - view: text, markup, annotated - select for diffs
Thu May 23 10:57:28 2019 UTC (7 years, 5 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.250: preferred, colored
Changes since revision 1.250: +60 -60
lines
-No functional change:
- KNF
- u_int*_t -> uint*_t.
Revision 1.250: download - view: text, markup, annotated - select for diffs
Tue Feb 5 06:17:02 2019 UTC (7 years, 9 months ago) by msaitoh
Branches: MAIN
CVS tags: isaki-audio2-base,
isaki-audio2
Diff to: previous 1.249: preferred, colored
Changes since revision 1.249: +3 -4
lines
Remove very old IFF_NOTRAILERS flag.
Revision 1.244.2.4: download - view: text, markup, annotated - select for diffs
Mon Nov 26 01:52:31 2018 UTC (7 years, 11 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.244.2.3: preferred, colored; branchpoint 1.244: preferred, colored; next MAIN 1.245: preferred, colored
Changes since revision 1.244.2.3: +3 -3
lines
Sync with HEAD, resolve a couple of conflicts
Revision 1.249: download - view: text, markup, annotated - select for diffs
Thu Nov 15 10:56:29 2018 UTC (8 years ago) by maxv
Branches: MAIN
CVS tags: pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126
Diff to: previous 1.248: preferred, colored
Changes since revision 1.248: +3 -3
lines
Remove the 'copy' argument from m_devget(), unused. While here rename
off0->off.
Revision 1.244.2.3: download - view: text, markup, annotated - select for diffs
Thu Sep 6 06:55:50 2018 UTC (8 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.244.2.2: preferred, colored; branchpoint 1.244: preferred, colored
Changes since revision 1.244.2.2: +4 -4
lines
Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
Revision 1.248: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:29:31 2018 UTC (8 years, 2 months ago) by riastradh
Branches: MAIN
CVS tags: pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906
Diff to: previous 1.247: preferred, colored
Changes since revision 1.247: +4 -4
lines
Rename min/max -> uimin/uimax for better honesty.
These functions are defined on unsigned int. The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.
HOWEVER! Some subsystems have
#define min(a, b) ((a) < (b) ? (a) : (b))
#define max(a, b) ((a) > (b) ? (a) : (b))
even though our standard name for that is MIN/MAX. Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.
To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.
I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:
cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))
It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.
Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate. But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all. (Who knows, maybe in some cases integer
truncation is actually intended!)
Revision 1.244.2.2: download - view: text, markup, annotated - select for diffs
Sat Jul 28 04:37:45 2018 UTC (8 years, 3 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.244.2.1: preferred, colored; branchpoint 1.244: preferred, colored
Changes since revision 1.244.2.1: +8 -6
lines
Sync with HEAD
Revision 1.243.6.2: download - view: text, markup, annotated - select for diffs
Thu Jul 26 23:55:30 2018 UTC (8 years, 3 months ago) by snj
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1
Diff to: previous 1.243.6.1: preferred, colored; branchpoint 1.243: preferred, colored; next MAIN 1.244: preferred, colored
Changes since revision 1.243.6.1: +3 -5
lines
Pull up following revision(s) (requested by msaitoh in ticket #938):
sys/arch/acorn32/podulebus/if_ie.c: revision 1.41
sys/arch/amiga/dev/if_es.c: revision 1.58
sys/arch/amiga/dev/if_qn.c: revision 1.45
sys/arch/arm/at91/at91emac.c: revision 1.20
sys/arch/arm/ep93xx/epe.c: revision 1.37
sys/arch/emips/ebus/if_le_ebus.c: revision 1.14
sys/arch/emips/ebus/if_le_ebus.c: revision 1.15
sys/arch/mac68k/dev/if_mc.c: revision 1.46
sys/arch/macppc/dev/am79c950.c: revision 1.39
sys/arch/newsmips/apbus/if_sn.c: revision 1.40
sys/arch/next68k/dev/mb8795.c: revision 1.59
sys/arch/playstation2/dev/if_smap.c: revision 1.25
sys/arch/playstation2/dev/if_smap.c: revision 1.26
sys/arch/sun2/dev/if_ec.c: revision 1.28
sys/arch/sun3/dev/if_ie.c: revision 1.63
sys/arch/x68k/dev/if_ne_intio.c: revision 1.19
sys/arch/xen/xen/if_xennet_xenbus.c: revision 1.75
sys/arch/xen/xen/xennetback_xenbus.c: revision 1.63
sys/dev/bi/if_ni.c: revision 1.45
sys/dev/cadence/if_cemac.c: revision 1.12
sys/dev/ic/am7990.c: revision 1.78
sys/dev/ic/am79900.c: revision 1.27
sys/dev/ic/an.c: revision 1.67
sys/dev/ic/cs89x0.c: revision 1.40
sys/dev/ic/dm9000.c: revision 1.13
sys/dev/ic/dm9000.c: revision 1.14
sys/dev/ic/dp8390.c: revision 1.88
sys/dev/ic/elink3.c: revision 1.141
sys/dev/ic/elinkxl.c: revision 1.122
sys/dev/ic/hme.c: revision 1.98
sys/dev/ic/i82586.c: revision 1.77
sys/dev/ic/lance.c: revision 1.53
sys/dev/ic/mb86950.c: revision 1.27
sys/dev/ic/mb86960.c: revision 1.86
sys/dev/ic/mtd803.c: revision 1.34
sys/dev/ic/pdq_ifsubr.c: revision 1.59
sys/dev/ic/rrunner.c: revision 1.86
sys/dev/ic/seeq8005.c: revision 1.58
sys/dev/ic/sgec.c: revision 1.47
sys/dev/ic/smc90cx6.c: revision 1.72
sys/dev/ic/smc91cxx.c: revision 1.96
sys/dev/ic/tropic.c: revision 1.49
sys/dev/ic/wi.c: revision 1.245
sys/dev/isa/if_eg.c: revision 1.93
sys/dev/isa/if_el.c: revision 1.95
sys/dev/isa/if_iy.c: revision 1.101
sys/dev/ofw/ofnet.c: revision 1.58
sys/dev/pci/if_alc.c: revision 1.27
sys/dev/pci/if_de.c: revision 1.152
sys/dev/pci/if_fpa.c: revision 1.61
sys/dev/pci/if_jme.c: revision 1.34
sys/dev/pci/if_tl.c: revision 1.108
sys/dev/pci/if_vte.c: revision 1.19
sys/dev/pci/ixgbe/ixgbe.h: revision 1.50
sys/dev/pcmcia/if_cnw.c: revision 1.62
sys/dev/pcmcia/if_malo_pcmcia.c: revision 1.17
sys/dev/pcmcia/if_ray.c: revision 1.89
sys/dev/pcmcia/if_xi.c: revision 1.81
sys/dev/pcmcia/mhzc.c: revision 1.51
sys/dev/pcmcia/xirc.c: revision 1.34
sys/dev/qbus/if_de.c: revision 1.33
sys/dev/qbus/if_qe.c: revision 1.78
sys/dev/qbus/if_qt.c: revision 1.22
sys/dev/sbus/be.c: revision 1.87
sys/dev/sbus/qe.c: revision 1.68
sys/dev/scsipi/if_se.c: revision 1.96
sys/dev/usb/if_atu.c: revision 1.59
sys/net/if_l2tp.c: revision 1.28 via patch
sys/net/if_ppp.c: revision 1.160
It's not required to include net/bpfdesc.h. Remove it.
--
Simplify like other drivers. NULL check of ifp->if_bpf is done in
bpf_mtap(), so it's not required to do it here.
--
Remove duplicated inclusion of net/bpf.h.
--
Remove duplicated inclusion of net/bpf.h.
--
Simplify bpf_mtap() call. No functional change.
Revision 1.247: download - view: text, markup, annotated - select for diffs
Tue Jun 26 06:48:00 2018 UTC (8 years, 4 months ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-base,
pgoyette-compat-0728,
jdolecek-ncqfixes-base,
jdolecek-ncqfixes
Branch point for: phil-wifi
Diff to: previous 1.246: preferred, colored
Changes since revision 1.246: +8 -6
lines
Implement the BPF direction filter (BIOC[GS]DIRECTION). It provides backward
compatibility with BIOC[GS]SEESENT ioctl. The userland interface is the same
as FreeBSD.
This change also fixes a bug that the direction is misunderstand on some
environment by passing the direction to bpf_mtap*() instead of checking
m->m_pkthdr.rcvif.
Revision 1.244.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 25 07:25:50 2018 UTC (8 years, 4 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.244: preferred, colored
Changes since revision 1.244: +5 -8
lines
Sync with HEAD
Revision 1.246: download - view: text, markup, annotated - select for diffs
Sat Jun 23 06:40:43 2018 UTC (8 years, 4 months ago) by maxv
Branches: MAIN
CVS tags: pgoyette-compat-0625
Diff to: previous 1.245: preferred, colored
Changes since revision 1.245: +4 -5
lines
constify
Revision 1.245: download - view: text, markup, annotated - select for diffs
Fri Jun 22 04:17:42 2018 UTC (8 years, 4 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.244: preferred, colored
Changes since revision 1.244: +3 -5
lines
It's not required to include net/bpfdesc.h. Remove it.
Revision 1.243.6.1: download - view: text, markup, annotated - select for diffs
Sun Dec 10 10:10:23 2017 UTC (8 years, 11 months ago) by snj
Branches: netbsd-8
CVS tags: netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1
Diff to: previous 1.243: preferred, colored
Changes since revision 1.243: +11 -4
lines
Pull up following revision(s) (requested by msaitoh in ticket #427):
sys/arch/amiga/dev/if_bah_zbus.c: 1.17
sys/arch/arm/broadcom/bcm53xx_eth.c: 1.30
sys/arch/powerpc/booke/dev/pq3etsec.c: 1.32
sys/arch/usermode/dev/if_veth.c: 1.9
sys/dev/ic/an.c: 1.66
sys/dev/ic/athn.c: 1.17
sys/dev/ic/atw.c: 1.162
sys/dev/ic/bwi.c: 1.33
sys/dev/ic/dwc_gmac.c: 1.41-1.42
sys/dev/ic/malo.c: 1.10
sys/dev/ic/rt2560.c: 1.31
sys/dev/ic/rt2661.c: 1.36
sys/dev/ic/rt2860.c: 1.29
sys/dev/ic/rtw.c: 1.127
sys/dev/ic/rtwvar.h: 1.46
sys/dev/ic/smc90cx6.c: 1.71
sys/dev/ic/smc90cx6var.h: 1.12
sys/dev/ic/wi.c: 1.244
sys/dev/pci/if_ipw.c: 1.66
sys/dev/pci/if_iwi.c: 1.104
sys/dev/pci/if_iwm.c: 1.76
sys/dev/pci/if_iwn.c: 1.86
sys/dev/pci/if_rtwn.c: 1.13
sys/dev/pci/if_wm.c: 1.541
sys/dev/pci/if_wpi.c: 1.79
sys/dev/pci/ixgbe/ixgbe.c: 1.106
sys/dev/pci/ixgbe/ixv.c: 1.73 via patch
sys/dev/pcmcia/if_malo_pcmcia.c: 1.15
sys/dev/scsipi/if_se.c: 1.95
sys/dev/usb/if_upl.c: 1.60
sys/net/if.c: 1.396
sys/net/if.h: 1.241
sys/net/if_arc.h: 1.23
sys/net/if_arcsubr.c: 1.78
sys/net/if_bridge.c: 1.136-1.137
sys/net/if_etherip.c: 1.39
sys/net/if_faith.c: 1.56
sys/net/if_gif.c: 1.131
sys/net/if_loop.c: 1.96
sys/net/if_mpls.c: 1.30
sys/net/if_pppoe.c: 1.129
sys/net/if_srt.c: 1.27
sys/net/if_stf.c: 1.102
sys/net/if_tap.c: 1.100
sys/net/if_vlan.c: 1.105
sys/netinet/ip_carp.c: 1.91
sys/rump/net/lib/libshmif/if_shmem.c: 1.73-1.74
sys/rump/net/lib/libvirtif/if_virt.c: 1.55-1.56
if_initalize() and if_attach() failed when resource allocation failed
(e.g. allocating softint). Without this change, it panics. It's bad because
resource shortage really occured when a lot of pseudo interface is created.
To avoid this problem, don't panic and change return value of if_initialize()
and if_attach() to int. Caller fanction will be recover from error cleanly by
checking the return value.
Return if bah_attach_subr() failed.
If if_attach() failed in the attach function, return.
- If if_initialize() failed in the attach function, free resources and return.
- Add some missing frees in bridge_clone_destroy().
- KNF
If error occured in bcmeth_ccb_attach(), free resources and return.
If error occured in pq3etsec_attach(), free resources and return.
If error occured in the attach function, free resources and return.
- If if_initialize() failed in athn_attach(), free resources and return.
- Add missing pmf_event_deregister() in athn_detach().
- Free resources correctly on some errors in atw_attach().
- Use apint*() insread of printf() in the attach function.
If if_initialize() failed in the attach function, return.
- If if_initialize() failed in the attach function, free resources and return.
- Add missing dwc_gmac_free_dma_rings() and mutex_destroy() when attach
failed.
- If if_initialize() failed in the attach function, free resources and return.
- ifp is always not NULL in iwi_detach(). Check correctly with ifp->if_softc.
- If if_initialize() failed in the attach function, free resources and return.
- Fix error path in the attach function correctly.
If if_initialize() failed in the attach function, free resources and return.
If if_attach() failed in the attach function, free resources and return.
- If if_initialize() failed in the attach function, free resources and return.
- KNF
- If if_attach() failed in the attach function, free resources and return.
- KNF
Fix compile error.
Fix compile error.
We don't need '&mii', but just 'mii' for mii_detach().
Don't free sc_rthash twice
Revision 1.235.12.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:04 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.235.12.1: preferred, colored; branchpoint 1.235: preferred, colored; next MAIN 1.236: preferred, colored
Changes since revision 1.235.12.1: +122 -25
lines
update from HEAD
Revision 1.244: download - view: text, markup, annotated - select for diffs
Mon Oct 23 09:31:17 2017 UTC (9 years ago) by msaitoh
Branches: MAIN
CVS tags: tls-maxphys-base-20171202,
pgoyette-compat-base,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315
Branch point for: pgoyette-compat
Diff to: previous 1.243: preferred, colored
Changes since revision 1.243: +11 -4
lines
If if_initialize() failed in the attach function, free resources and return.
Revision 1.237.6.4: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:52:04 2017 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.237.6.3: preferred, colored; branchpoint 1.237: preferred, colored; next MAIN 1.238: preferred, colored
Changes since revision 1.237.6.3: +3 -3
lines
Sync with HEAD
Revision 1.240.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 26 02:53:11 2017 UTC (9 years, 6 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.240.2.1: preferred, colored; branchpoint 1.240: preferred, colored; next MAIN 1.241: preferred, colored
Changes since revision 1.240.2.1: +3 -3
lines
Sync with HEAD
Revision 1.240.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:53:46 2017 UTC (9 years, 6 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.240: preferred, colored; next MAIN 1.241: preferred, colored
Changes since revision 1.240: +113 -23
lines
Sync with HEAD
Revision 1.243: download - view: text, markup, annotated - select for diffs
Wed Mar 29 09:04:35 2017 UTC (9 years, 7 months ago) by msaitoh
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-20170426,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
netbsd-8-base,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1
Branch point for: netbsd-8
Diff to: previous 1.242: preferred, colored
Changes since revision 1.242: +3 -3
lines
Fix 0x%d and 0x%u.
Revision 1.240.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:28 2017 UTC (9 years, 7 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.240: preferred, colored
Changes since revision 1.240: +112 -22
lines
Sync with HEAD
Revision 1.237.6.3: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:28 2017 UTC (9 years, 9 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.237.6.2: preferred, colored; branchpoint 1.237: preferred, colored
Changes since revision 1.237.6.2: +112 -22
lines
Sync with HEAD
Revision 1.242: download - view: text, markup, annotated - select for diffs
Thu Feb 2 10:05:35 2017 UTC (9 years, 9 months ago) by nonaka
Branches: MAIN
CVS tags: pgoyette-localcount-20170320,
nick-nhusb-base-20170204
Diff to: previous 1.241: preferred, colored
Changes since revision 1.241: +109 -21
lines
wlan interfaces make interrupt routine running on softint context.
see http://mail-index.netbsd.org/tech-kern/2016/12/06/msg021281.html
tested device:
* ath at pci: AR5212, AR5424
* athn at pci: AR9287
* ipw at pci: 2100BG
* iwi at pci: 2915ABG
* iwm at pci: 3165, 7260, 8260
* iwn at pci: 4945, 6235
* ral at pci: RT2560
* rtwn at pci: RTL8192CE
Revision 1.241: download - view: text, markup, annotated - select for diffs
Wed Feb 1 02:37:43 2017 UTC (9 years, 9 months ago) by nonaka
Branches: MAIN
Diff to: previous 1.240: preferred, colored
Changes since revision 1.240: +5 -3
lines
Added missing splx(s).
Revision 1.237.6.2: download - view: text, markup, annotated - select for diffs
Sat Jul 9 20:25:02 2016 UTC (10 years, 4 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.237.6.1: preferred, colored; branchpoint 1.237: preferred, colored
Changes since revision 1.237.6.1: +3 -3
lines
Sync with HEAD
Revision 1.240: download - view: text, markup, annotated - select for diffs
Fri Jun 10 13:27:14 2016 UTC (10 years, 5 months ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-localcount-base,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
nick-nhusb-base-20161204,
nick-nhusb-base-20161004,
nick-nhusb-base-20160907,
localcount-20160914,
bouyer-socketcan-base
Branch point for: pgoyette-localcount,
bouyer-socketcan
Diff to: previous 1.239: preferred, colored
Changes since revision 1.239: +3 -3
lines
Introduce m_set_rcvif and m_reset_rcvif
The API is used to set (or reset) a received interface of a mbuf.
They are counterpart of m_get_rcvif, which will come in another
commit, hide internal of rcvif operation, and reduce the diff of
the upcoming change.
No functional change.
Revision 1.237.6.1: download - view: text, markup, annotated - select for diffs
Sun May 29 08:44:21 2016 UTC (10 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.237: preferred, colored
Changes since revision 1.237: +4 -4
lines
Sync with HEAD
Revision 1.239: download - view: text, markup, annotated - select for diffs
Thu May 26 05:04:46 2016 UTC (10 years, 5 months ago) by ozaki-r
Branches: MAIN
CVS tags: nick-nhusb-base-20160529
Diff to: previous 1.238: preferred, colored
Changes since revision 1.238: +3 -3
lines
Introduce M_CLEARCTX and use it instead of open-coding rcvif
No functional change.
Revision 1.238: download - view: text, markup, annotated - select for diffs
Thu May 26 05:01:12 2016 UTC (10 years, 5 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.237: preferred, colored
Changes since revision 1.237: +3 -3
lines
Use M_GETCTX
No functional change.
Revision 1.235.12.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:38 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.235: preferred, colored
Changes since revision 1.235: +4 -9
lines
Rebase to HEAD as of a few days ago.
Revision 1.235.2.1: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:22 2014 UTC (12 years, 5 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.235: preferred, colored; next MAIN 1.236: preferred, colored
Changes since revision 1.235: +4 -9
lines
sync with head.
for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
Revision 1.235.16.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:38 2014 UTC (12 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.235: preferred, colored; next MAIN 1.236: preferred, colored
Changes since revision 1.235: +4 -9
lines
sync with head
Revision 1.237: download - view: text, markup, annotated - select for diffs
Tue Feb 25 18:30:09 2014 UTC (12 years, 8 months ago) by pooka
Branches: MAIN
CVS tags: yamt-pagecache-base9,
tls-maxphys-base,
tls-earlyentropy-base,
tls-earlyentropy,
rmind-smpnet-nbase,
rmind-smpnet-base,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3,
nick-nhusb-base-20160422,
nick-nhusb-base-20160319,
nick-nhusb-base-20151226,
nick-nhusb-base-20150921,
nick-nhusb-base-20150606,
nick-nhusb-base-20150406,
nick-nhusb-base,
netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-base,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0,
netbsd-7
Branch point for: nick-nhusb
Diff to: previous 1.236: preferred, colored
Changes since revision 1.236: +3 -8
lines
Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.
Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.
Revision 1.236: download - view: text, markup, annotated - select for diffs
Sun Sep 15 16:10:45 2013 UTC (13 years, 2 months ago) by martin
Branches: MAIN
Diff to: previous 1.235: preferred, colored
Changes since revision 1.235: +3 -3
lines
Mark a potentially unused variable
Revision 1.235: download - view: text, markup, annotated - select for diffs
Mon Aug 15 18:24:34 2011 UTC (15 years, 3 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-pagecache-tag8,
yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4,
yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
netbsd-6-base,
netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
netbsd-6,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus,
khorben-n900,
jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base9,
jmcneill-usbmp-base8,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3,
jmcneill-usbmp-base2,
jmcneill-usbmp-base10,
jmcneill-usbmp-base,
jmcneill-usbmp,
jmcneill-audiomp3-base,
jmcneill-audiomp3,
agc-symver-base,
agc-symver
Branch point for: yamt-pagecache,
tls-maxphys,
rmind-smpnet
Diff to: previous 1.234: preferred, colored
Changes since revision 1.234: +75 -2
lines
Use a recursive lock to ensure that only on thread is in wi_ioctl() at
one time. It's a recursive lock because sometimes wi_ioctl() recurses
through the network stack (ick).
Revision 1.232.4.2: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:53:23 2011 UTC (15 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.232.4.1: preferred, colored; branchpoint 1.232: preferred, colored; next MAIN 1.233: preferred, colored
Changes since revision 1.232.4.1: +58 -52
lines
sync with head
Revision 1.234: download - view: text, markup, annotated - select for diffs
Tue Nov 23 04:33:09 2010 UTC (15 years, 11 months ago) by christos
Branches: MAIN
CVS tags: rmind-uvmplock-nbase,
rmind-uvmplock-base,
matt-mips64-premerge-20101231,
jruoho-x86intr-base,
jruoho-x86intr,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Diff to: previous 1.233: preferred, colored
Changes since revision 1.233: +58 -52
lines
split if_wi
Revision 1.225.4.6: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:53:33 2010 UTC (16 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.225.4.5: preferred, colored; branchpoint 1.225: preferred, colored; next MAIN 1.226: preferred, colored
Changes since revision 1.225.4.5: +7 -10
lines
sync with head.
Revision 1.232.4.1: download - view: text, markup, annotated - select for diffs
Sun May 30 05:17:26 2010 UTC (16 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.232: preferred, colored
Changes since revision 1.232: +7 -10
lines
sync with head
Revision 1.232.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:43:24 2010 UTC (16 years, 6 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.232: preferred, colored; next MAIN 1.233: preferred, colored
Changes since revision 1.232: +7 -10
lines
Sync with HEAD.
Revision 1.233: download - view: text, markup, annotated - select for diffs
Mon Apr 5 07:19:37 2010 UTC (16 years, 7 months ago) by joerg
Branches: MAIN
CVS tags: yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base4,
uebayasi-xip-base3,
uebayasi-xip-base2,
uebayasi-xip-base1
Diff to: previous 1.232: preferred, colored
Changes since revision 1.232: +7 -10
lines
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.225.4.5: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:03:36 2010 UTC (16 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.225.4.4: preferred, colored; branchpoint 1.225: preferred, colored
Changes since revision 1.225.4.4: +8 -20
lines
sync with head
Revision 1.232: download - view: text, markup, annotated - select for diffs
Tue Jan 19 22:06:25 2010 UTC (16 years, 10 months ago) by pooka
Branches: MAIN
CVS tags: yamt-nfs-mp-base9,
uebayasi-xip-base
Branch point for: uebayasi-xip,
rmind-uvmplock
Diff to: previous 1.231: preferred, colored
Changes since revision 1.231: +8 -20
lines
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.225.4.4: download - view: text, markup, annotated - select for diffs
Wed Sep 16 13:37:49 2009 UTC (17 years, 2 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.225.4.3: preferred, colored; branchpoint 1.225: preferred, colored
Changes since revision 1.225.4.3: +6 -14
lines
sync with head
Revision 1.231: download - view: text, markup, annotated - select for diffs
Tue Sep 15 20:51:12 2009 UTC (17 years, 2 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base8,
matt-premerge-20091211,
jym-xensuspend-nbase
Diff to: previous 1.230: preferred, colored
Changes since revision 1.230: +6 -14
lines
Simplify activation routines. Don't block interrupts, if_deactivate()
does it. Compile-tested, only.
Revision 1.225.4.3: download - view: text, markup, annotated - select for diffs
Sat May 16 10:41:24 2009 UTC (17 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.225.4.2: preferred, colored; branchpoint 1.225: preferred, colored
Changes since revision 1.225.4.2: +3 -3
lines
sync with head
Revision 1.228.4.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:19:25 2009 UTC (17 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.228: preferred, colored; next MAIN 1.229: preferred, colored
Changes since revision 1.228: +7 -5
lines
Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
Revision 1.230: download - view: text, markup, annotated - select for diffs
Tue May 12 14:25:18 2009 UTC (17 years, 6 months ago) by cegger
Branches: MAIN
CVS tags: yamt-nfs-mp-base7,
yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
yamt-nfs-mp-base4,
jymxensuspend-base,
jym-xensuspend-base
Diff to: previous 1.229: preferred, colored
Changes since revision 1.229: +3 -3
lines
struct device * -> device_t, no functional changes intended.
Revision 1.225.4.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:12:45 2009 UTC (17 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.225.4.1: preferred, colored; branchpoint 1.225: preferred, colored
Changes since revision 1.225.4.1: +12 -7
lines
sync with head.
Revision 1.226.8.2: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:35:27 2009 UTC (17 years, 6 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.226.8.1: preferred, colored; branchpoint 1.226: preferred, colored; next MAIN 1.227: preferred, colored
Changes since revision 1.226.8.1: +6 -4
lines
Sync with HEAD.
Revision 1.229: download - view: text, markup, annotated - select for diffs
Wed Apr 15 20:44:25 2009 UTC (17 years, 7 months ago) by elad
Branches: MAIN
CVS tags: yamt-nfs-mp-base3,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base
Diff to: previous 1.228: preferred, colored
Changes since revision 1.228: +6 -4
lines
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 - view: text, markup, annotated - select for diffs
Mon Jan 19 13:17:56 2009 UTC (17 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.226: preferred, colored
Changes since revision 1.226: +8 -5
lines
Sync with HEAD.
Revision 1.224.6.2: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:28:56 2009 UTC (17 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.224.6.1: preferred, colored; branchpoint 1.224: preferred, colored; next MAIN 1.225: preferred, colored
Changes since revision 1.224.6.1: +6 -3
lines
Sync with HEAD.
Revision 1.226.6.1: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:14:15 2008 UTC (17 years, 11 months ago) by haad
Branches: haad-dm
Diff to: previous 1.226: preferred, colored; next MAIN 1.227: preferred, colored
Changes since revision 1.226: +8 -5
lines
Update haad-dm branch to haad-dm-base2.
Revision 1.228: download - view: text, markup, annotated - select for diffs
Wed Nov 12 12:36:11 2008 UTC (18 years ago) by ad
Branches: 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
Diff to: previous 1.227: preferred, colored
Changes since revision 1.227: +4 -4
lines
Remove LKMs and switch to the module framework, pass 1.
Proposed on tech-kern@.
Revision 1.227: download - view: text, markup, annotated - select for diffs
Fri Nov 7 00:20:03 2008 UTC (18 years ago) by dyoung
Branches: MAIN
Diff to: previous 1.226: preferred, colored
Changes since revision 1.226: +6 -3
lines
*** 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 - view: text, markup, annotated - select for diffs
Mon Jun 2 13:23:28 2008 UTC (18 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.224: preferred, colored
Changes since revision 1.224: +55 -66
lines
Sync with HEAD.
Revision 1.225.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:33:46 2008 UTC (18 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.225: preferred, colored; next MAIN 1.226: preferred, colored
Changes since revision 1.225: +2 -9
lines
sync with head.
Revision 1.225.4.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:24:06 2008 UTC (18 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.225: preferred, colored
Changes since revision 1.225: +2 -9
lines
sync with head.
Revision 1.226: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:23:51 2008 UTC (18 years, 6 months ago) by martin
Branches: 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-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-2,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
netbsd-5,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2,
hpcarm-cleanup-nbase,
haad-dm-base1
Branch point for: nick-hppapmap,
haad-dm
Diff to: previous 1.225: preferred, colored
Changes since revision 1.225: +2 -9
lines
Remove clause 3 and 4 from TNF licenses
Revision 1.225: download - view: text, markup, annotated - select for diffs
Tue Apr 8 12:07:27 2008 UTC (18 years, 7 months ago) by cegger
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base,
yamt-nfs-mp-base
Branch point for: yamt-pf42,
yamt-nfs-mp
Diff to: previous 1.224: preferred, colored
Changes since revision 1.224: +55 -59
lines
use aprint_*_dev and device_xname
Revision 1.202.2.6: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:43:12 2008 UTC (18 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.202.2.5: preferred, colored; next MAIN 1.203: preferred, colored
Changes since revision 1.202.2.5: +4 -39
lines
sync with head
Revision 1.220.8.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:53:05 2008 UTC (18 years, 10 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.220.8.1: preferred, colored; branchpoint 1.220: preferred, colored; next MAIN 1.221: preferred, colored
Changes since revision 1.220.8.1: +4 -39
lines
sync with HEAD
Revision 1.223.2.1: download - view: text, markup, annotated - select for diffs
Wed Jan 2 21:54:19 2008 UTC (18 years, 10 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.223: preferred, colored; next MAIN 1.224: preferred, colored
Changes since revision 1.223: +4 -4
lines
Sync with HEAD
Revision 1.222.4.1: download - view: text, markup, annotated - select for diffs
Wed Dec 26 19:46:25 2007 UTC (18 years, 10 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.222: preferred, colored; next MAIN 1.223: preferred, colored
Changes since revision 1.222: +4 -39
lines
Sync with head.
Revision 1.224: download - view: text, markup, annotated - select for diffs
Thu Dec 20 21:08:18 2007 UTC (18 years, 11 months ago) by dyoung
Branches: 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
Diff to: previous 1.223: preferred, colored
Changes since revision 1.223: +4 -4
lines
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 - view: text, markup, annotated - select for diffs
Tue Dec 11 15:27:43 2007 UTC (18 years, 11 months ago) by yamt
Branches: yamt-kmem
Diff to: previous 1.222: preferred, colored; next MAIN 1.223: preferred, colored
Changes since revision 1.222: +2 -37
lines
sync with head.
Revision 1.223: download - view: text, markup, annotated - select for diffs
Sun Dec 9 20:28:00 2007 UTC (18 years, 11 months ago) by jmcneill
Branches: MAIN
CVS tags: yamt-kmem-base3,
yamt-kmem-base2,
cube-autoconf-base,
cube-autoconf
Branch point for: bouyer-xeni386
Diff to: previous 1.222: preferred, colored
Changes since revision 1.222: +2 -37
lines
Merge jmcneill-pm branch.
Revision 1.220.8.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:27:20 2007 UTC (19 years ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.220: preferred, colored
Changes since revision 1.220: +4 -7
lines
sync with HEAD
Revision 1.202.2.5: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:31:14 2007 UTC (19 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.202.2.4: preferred, colored
Changes since revision 1.202.2.4: +3 -3
lines
sync with head.
Revision 1.220.6.3: download - view: text, markup, annotated - select for diffs
Fri Oct 26 15:45:06 2007 UTC (19 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.220.6.2: preferred, colored; branchpoint 1.220: preferred, colored; next MAIN 1.221: preferred, colored
Changes since revision 1.220.6.2: +3 -3
lines
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 - view: text, markup, annotated - select for diffs
Thu Oct 25 22:38:03 2007 UTC (19 years ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.221: preferred, colored; next MAIN 1.222: preferred, colored
Changes since revision 1.221: +3 -3
lines
Sync with HEAD.
Revision 1.219.2.3: download - view: text, markup, annotated - select for diffs
Tue Oct 23 20:07:53 2007 UTC (19 years ago) by ad
Branches: vmlocking
Diff to: previous 1.219.2.2: preferred, colored; branchpoint 1.219: preferred, colored; next MAIN 1.220: preferred, colored
Changes since revision 1.219.2.2: +3 -3
lines
Sync with head.
Revision 1.222: download - view: text, markup, annotated - select for diffs
Fri Oct 19 12:00:05 2007 UTC (19 years, 1 month ago) by ad
Branches: 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
Diff to: previous 1.221: preferred, colored
Changes since revision 1.221: +3 -3
lines
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
Revision 1.219.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 9 13:41:34 2007 UTC (19 years, 1 month ago) by ad
Branches: vmlocking
Diff to: previous 1.219.2.1: preferred, colored; branchpoint 1.219: preferred, colored
Changes since revision 1.219.2.1: +3 -6
lines
Sync with head.
Revision 1.220.6.2: download - view: text, markup, annotated - select for diffs
Tue Sep 4 15:05:47 2007 UTC (19 years, 2 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.220.6.1: preferred, colored; branchpoint 1.220: preferred, colored
Changes since revision 1.220.6.1: +2 -37
lines
Convert wi(4) to jmcneill-pm style power management.
Revision 1.220.6.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:48:10 2007 UTC (19 years, 2 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.220: preferred, colored
Changes since revision 1.220: +3 -6
lines
Sync with HEAD.
Revision 1.202.2.4: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:35:23 2007 UTC (19 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.202.2.3: preferred, colored
Changes since revision 1.202.2.3: +16 -19
lines
sync with head.
Revision 1.220.2.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 10:20:28 2007 UTC (19 years, 2 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.220: preferred, colored; next MAIN 1.221: preferred, colored
Changes since revision 1.220: +3 -6
lines
Sync with HEAD.
Revision 1.221: download - view: text, markup, annotated - select for diffs
Sat Sep 1 07:32:28 2007 UTC (19 years, 2 months ago) by dyoung
Branches: 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
Diff to: previous 1.220: preferred, colored
Changes since revision 1.220: +3 -6
lines
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 - view: text, markup, annotated - select for diffs
Wed Jul 11 20:06:19 2007 UTC (19 years, 4 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.219: preferred, colored; next MAIN 1.220: preferred, colored
Changes since revision 1.219: +3 -3
lines
Sync with head.
Revision 1.220: download - view: text, markup, annotated - select for diffs
Mon Jul 9 21:00:40 2007 UTC (19 years, 4 months ago) by ad
Branches: 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
Diff to: previous 1.219: preferred, colored
Changes since revision 1.219: +3 -3
lines
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 - view: text, markup, annotated - select for diffs
Sun Jul 1 21:47:58 2007 UTC (19 years, 4 months ago) by ad
Branches: vmlocking
Diff to: previous 1.219: preferred, colored
Changes since revision 1.219: +3 -3
lines
Adapt to callout API change.
Revision 1.218.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:53:48 2007 UTC (19 years, 8 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.218: preferred, colored; next MAIN 1.219: preferred, colored
Changes since revision 1.218: +14 -14
lines
Sync with HEAD.
Revision 1.219: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:02:03 2007 UTC (19 years, 8 months ago) by christos
Branches: MAIN
CVS tags: yamt-idlelwp-base8,
thorpej-atomic-base,
thorpej-atomic,
reinoud-bufcleanup
Branch point for: vmlocking,
mjf-ufs-trans
Diff to: previous 1.218: preferred, colored
Changes since revision 1.218: +14 -14
lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
Revision 1.202.2.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:10:13 2007 UTC (19 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.202.2.2: preferred, colored
Changes since revision 1.202.2.2: +3 -3
lines
sync with head.
Revision 1.215.4.2: download - view: text, markup, annotated - select for diffs
Fri Jan 12 00:57:36 2007 UTC (19 years, 10 months ago) by ad
Branches: newlock2
Diff to: previous 1.215.4.1: preferred, colored; branchpoint 1.215: preferred, colored; next MAIN 1.216: preferred, colored
Changes since revision 1.215.4.1: +3 -3
lines
Sync with head.
Revision 1.218: download - view: text, markup, annotated - select for diffs
Thu Jan 4 18:44:45 2007 UTC (19 years, 10 months ago) by elad
Branches: MAIN
CVS tags: post-newlock2-merge,
newlock2-nbase,
newlock2-base,
ad-audiomp-base,
ad-audiomp
Branch point for: yamt-idlelwp
Diff to: previous 1.217: preferred, colored
Changes since revision 1.217: +3 -3
lines
Consistent usage of KAUTH_GENERIC_ISSUSER.
Revision 1.202.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:48:04 2006 UTC (19 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.202.2.1: preferred, colored
Changes since revision 1.202.2.1: +4 -5
lines
sync with head.
Revision 1.215.6.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:17:07 2006 UTC (19 years, 11 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.215.6.1: preferred, colored; branchpoint 1.215: preferred, colored; next MAIN 1.216: preferred, colored
Changes since revision 1.215.6.1: +7 -7
lines
sync with head.
Revision 1.215.4.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:34:15 2006 UTC (20 years ago) by ad
Branches: newlock2
Diff to: previous 1.215: preferred, colored
Changes since revision 1.215: +2 -2
lines
Sync with head.
Revision 1.217: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:32:52 2006 UTC (20 years ago) by christos
Branches: 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
Diff to: previous 1.216: preferred, colored
Changes since revision 1.216: +7 -7
lines
__unused removal on arguments; approved by core.
Revision 1.215.6.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:05:45 2006 UTC (20 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.215: preferred, colored
Changes since revision 1.215: +7 -7
lines
sync with head
Revision 1.216: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:31:02 2006 UTC (20 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.215: preferred, colored
Changes since revision 1.215: +7 -7
lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
Revision 1.211.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:50:03 2006 UTC (20 years, 2 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.211: preferred, colored; next MAIN 1.212: preferred, colored
Changes since revision 1.211: +11 -9
lines
sync with head
Revision 1.212.2.3: download - view: text, markup, annotated - select for diffs
Fri Aug 11 15:44:11 2006 UTC (20 years, 3 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.212.2.2: preferred, colored; branchpoint 1.212: preferred, colored; next MAIN 1.213: preferred, colored
Changes since revision 1.212.2.2: +4 -5
lines
sync with head
Revision 1.215: download - view: text, markup, annotated - select for diffs
Fri Jul 21 16:48:49 2006 UTC (20 years, 4 months ago) by ad
Branches: 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
Diff to: previous 1.214: preferred, colored
Changes since revision 1.214: +4 -5
lines
- Use the LWP cached credentials where sane.
- Minor cosmetic changes.
Revision 1.202.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:02:57 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.202: preferred, colored
Changes since revision 1.202: +124 -47
lines
sync with head.
Revision 1.211.6.2: download - view: text, markup, annotated - select for diffs
Thu Jun 1 22:36:27 2006 UTC (20 years, 5 months ago) by kardel
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.211.6.1: preferred, colored; next MAIN 1.212: preferred, colored
Changes since revision 1.211.6.1: +6 -3
lines
Sync with head.
Revision 1.213.2.1: download - view: text, markup, annotated - select for diffs
Wed May 24 15:50:25 2006 UTC (20 years, 5 months ago) by tron
Branches: peter-altq
Diff to: previous 1.213: preferred, colored; next MAIN 1.214: preferred, colored
Changes since revision 1.213: +6 -3
lines
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
Revision 1.212.2.2: download - view: text, markup, annotated - select for diffs
Wed May 24 10:57:42 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.212.2.1: preferred, colored; branchpoint 1.212: preferred, colored
Changes since revision 1.212.2.1: +6 -3
lines
sync with head.
Revision 1.214: download - view: text, markup, annotated - select for diffs
Sun May 14 21:42:27 2006 UTC (20 years, 6 months ago) by elad
Branches: 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
Diff to: previous 1.213: preferred, colored
Changes since revision 1.213: +6 -3
lines
integrate kauth.
Revision 1.211.6.1: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:38:56 2006 UTC (20 years, 6 months ago) by simonb
Branches: simonb-timecounters
Diff to: previous 1.211: preferred, colored
Changes since revision 1.211: +8 -8
lines
Sync with head.
Revision 1.212.4.3: download - view: text, markup, annotated - select for diffs
Wed Apr 19 03:24:41 2006 UTC (20 years, 7 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.212.4.2: preferred, colored; branchpoint 1.212: preferred, colored; next MAIN 1.213: preferred, colored
Changes since revision 1.212.4.2: +6 -6
lines
sync with head.
Revision 1.212.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 13 09:07:21 2006 UTC (20 years, 8 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.212: preferred, colored
Changes since revision 1.212: +6 -6
lines
sync with head.
Revision 1.213: download - view: text, markup, annotated - select for diffs
Sun Mar 12 03:22:02 2006 UTC (20 years, 8 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-pdpolicy-base4,
yamt-pdpolicy-base3,
yamt-pdpolicy-base2,
peter-altq-base,
elad-kernelauth-base
Branch point for: peter-altq
Diff to: previous 1.212: preferred, colored
Changes since revision 1.212: +6 -6
lines
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 - view: text, markup, annotated - select for diffs
Fri Mar 10 14:39:02 2006 UTC (20 years, 8 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.212.4.1: preferred, colored; branchpoint 1.212: preferred, colored
Changes since revision 1.212.4.1: +3 -3
lines
generic_authorize() -> kauth_authorize_generic().
Revision 1.212.4.1: download - view: text, markup, annotated - select for diffs
Wed Mar 8 01:44:48 2006 UTC (20 years, 8 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.212: preferred, colored
Changes since revision 1.212: +6 -3
lines
Adapt to kernel authorization KPI.
Revision 1.211.2.1: download - view: text, markup, annotated - select for diffs
Wed Mar 1 09:28:13 2006 UTC (20 years, 8 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.211: preferred, colored; next MAIN 1.212: preferred, colored
Changes since revision 1.211: +4 -4
lines
sync with head.
Revision 1.212: download - view: text, markup, annotated - select for diffs
Mon Feb 20 16:50:37 2006 UTC (20 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5,
yamt-pdpolicy-base
Branch point for: yamt-pdpolicy,
elad-kernelauth
Diff to: previous 1.211: preferred, colored
Changes since revision 1.211: +4 -4
lines
Use device_is_active() rather than testing dv_flags for DVF_ACTIVE
directly.
Revision 1.211: download - view: text, markup, annotated - select for diffs
Sat Dec 24 20:27:30 2005 UTC (20 years, 10 months ago) by perry
Branches: MAIN
Branch point for: yamt-uio_vmspace,
simonb-timecounters,
rpaulo-netinet-merge-pcb
Diff to: previous 1.210: preferred, colored
Changes since revision 1.210: +3 -3
lines
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
Revision 1.130.2.12: download - view: text, markup, annotated - select for diffs
Sun Dec 11 10:28:51 2005 UTC (20 years, 11 months ago) by christos
Branches: ktrace-lwp
Diff to: previous 1.130.2.11: preferred, colored; next MAIN 1.131: preferred, colored
Changes since revision 1.130.2.11: +6 -22
lines
Sync with head.
Revision 1.209.6.1: download - view: text, markup, annotated - select for diffs
Tue Nov 22 16:08:07 2005 UTC (20 years, 11 months ago) by yamt
Branches: yamt-readahead
Diff to: previous 1.209: preferred, colored; next MAIN 1.210: preferred, colored
Changes since revision 1.209: +6 -22
lines
sync with head.
Revision 1.210: download - view: text, markup, annotated - select for diffs
Fri Nov 18 16:53:56 2005 UTC (21 years ago) by skrll
Branches: MAIN
CVS tags: yamt-readahead-base3,
yamt-readahead-base2,
ktrace-lwp-base
Diff to: previous 1.209: preferred, colored
Changes since revision 1.209: +6 -22
lines
Adapt drivers to the new net80211(9).
Most of this is from dyoung@. Thanks!
Revision 1.130.2.11: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:04:16 2005 UTC (21 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.130.2.10: preferred, colored
Changes since revision 1.130.2.10: +365 -154
lines
Sync with HEAD. Here we go again...
Revision 1.209: download - view: text, markup, annotated - select for diffs
Wed Aug 10 13:20:42 2005 UTC (21 years, 3 months ago) by christos
Branches: 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
Diff to: previous 1.208: preferred, colored
Changes since revision 1.208: +9 -2
lines
Allow setting the MAC address via wiconfig -m (Lord Isildur)
Revision 1.208: download - view: text, markup, annotated - select for diffs
Sat Jul 23 16:09:39 2005 UTC (21 years, 3 months ago) by drochner
Branches: MAIN
Diff to: previous 1.207: preferred, colored
Changes since revision 1.207: +4 -2
lines
disable SYSCTL_SETUP for _LKM until we have a plan how to deal with
it correctly
Revision 1.207: download - view: text, markup, annotated - select for diffs
Sat Jul 16 04:06:39 2005 UTC (21 years, 4 months ago) by yamt
Branches: MAIN
Diff to: previous 1.206: preferred, colored
Changes since revision 1.206: +6 -3
lines
#ifdef out an unused variable in the case of !WI_DEBUG.
Revision 1.206: download - view: text, markup, annotated - select for diffs
Fri Jul 15 22:33:29 2005 UTC (21 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.205: preferred, colored
Changes since revision 1.205: +70 -3
lines
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 - view: text, markup, annotated - select for diffs
Thu Jul 14 00:28:51 2005 UTC (21 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.204: preferred, colored
Changes since revision 1.204: +27 -18
lines
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 - view: text, markup, annotated - select for diffs
Wed Jul 6 23:58:14 2005 UTC (21 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.203: preferred, colored
Changes since revision 1.203: +3 -2
lines
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 - view: text, markup, annotated - select for diffs
Wed Jul 6 23:44:16 2005 UTC (21 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.202: preferred, colored
Changes since revision 1.202: +3 -2
lines
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 - view: text, markup, annotated - select for diffs
Wed Jul 6 06:49:25 2005 UTC (21 years, 4 months ago) by dyoung
Branches: MAIN
Branch point for: yamt-lazymbuf
Diff to: previous 1.201: preferred, colored
Changes since revision 1.201: +4 -3
lines
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 - view: text, markup, annotated - select for diffs
Sun Jun 26 21:51:37 2005 UTC (21 years, 4 months ago) by erh
Branches: MAIN
Diff to: previous 1.200: preferred, colored
Changes since revision 1.200: +8 -3
lines
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 - view: text, markup, annotated - select for diffs
Sun Jun 26 04:37:25 2005 UTC (21 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.199: preferred, colored
Changes since revision 1.199: +14 -2
lines
Do not build AP support if 'options IEEE80211_NO_HOSTAP' is in the
kernel configuration.
Revision 1.199: download - view: text, markup, annotated - select for diffs
Sat Jun 25 03:56:53 2005 UTC (21 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.198: preferred, colored
Changes since revision 1.198: +151 -28
lines
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 - view: text, markup, annotated - select for diffs
Wed Jun 22 06:15:51 2005 UTC (21 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.197: preferred, colored
Changes since revision 1.197: +99 -119
lines
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 - view: text, markup, annotated - select for diffs
Fri Apr 29 11:28:53 2005 UTC (21 years, 6 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.193: preferred, colored; next MAIN 1.194: preferred, colored
Changes since revision 1.193: +17 -23
lines
sync with -current
Revision 1.130.2.10: download - view: text, markup, annotated - select for diffs
Fri Apr 1 14:29:52 2005 UTC (21 years, 7 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.130.2.9: preferred, colored
Changes since revision 1.130.2.9: +6 -6
lines
Sync with HEAD.
Revision 1.197: download - view: text, markup, annotated - select for diffs
Sun Mar 27 00:49:14 2005 UTC (21 years, 7 months ago) by dyoung
Branches: MAIN
CVS tags: kent-audio2-base
Diff to: previous 1.196: preferred, colored
Changes since revision 1.196: +6 -6
lines
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 - view: text, markup, annotated - select for diffs
Sat Mar 19 08:34:04 2005 UTC (21 years, 8 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.194: preferred, colored; next MAIN 1.195: preferred, colored
Changes since revision 1.194: +13 -12
lines
sync with head. xen and whitespace. xen part is not finished.
Revision 1.130.2.9: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:41:35 2005 UTC (21 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.130.2.8: preferred, colored
Changes since revision 1.130.2.8: +6 -6
lines
Sync with HEAD.
Hi Perry!
Revision 1.196: download - view: text, markup, annotated - select for diffs
Sun Feb 27 00:27:03 2005 UTC (21 years, 8 months ago) by perry
Branches: 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
Diff to: previous 1.195: preferred, colored
Changes since revision 1.195: +6 -6
lines
nuke trailing whitespace
Revision 1.130.2.8: download - view: text, markup, annotated - select for diffs
Tue Feb 15 21:33:12 2005 UTC (21 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.130.2.7: preferred, colored
Changes since revision 1.130.2.7: +9 -8
lines
Sync with HEAD.
Revision 1.195: download - view: text, markup, annotated - select for diffs
Sun Feb 13 07:33:06 2005 UTC (21 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.194: preferred, colored
Changes since revision 1.194: +9 -8
lines
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 - view: text, markup, annotated - select for diffs
Mon Jan 24 21:39:18 2005 UTC (21 years, 9 months ago) by he
Branches: 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
Diff to: previous 1.159.2.2: preferred, colored; next MAIN 1.160: preferred, colored
Changes since revision 1.159.2.2: +4 -4
lines
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 - view: text, markup, annotated - select for diffs
Mon Jan 17 19:30:40 2005 UTC (21 years, 10 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.130.2.6: preferred, colored
Changes since revision 1.130.2.6: +2 -9
lines
Sync with HEAD.
Revision 1.194: download - view: text, markup, annotated - select for diffs
Mon Jan 17 01:48:56 2005 UTC (21 years, 10 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-km-base2,
yamt-km-base
Branch point for: yamt-km
Diff to: previous 1.193: preferred, colored
Changes since revision 1.193: +2 -9
lines
Delete an out-of-date comment.
Revision 1.130.2.6: download - view: text, markup, annotated - select for diffs
Sat Dec 18 09:31:57 2004 UTC (21 years, 11 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.130.2.5: preferred, colored
Changes since revision 1.130.2.5: +149 -82
lines
Sync with HEAD.
Revision 1.193: download - view: text, markup, annotated - select for diffs
Tue Dec 14 19:53:46 2004 UTC (21 years, 11 months ago) by dyoung
Branches: MAIN
CVS tags: kent-audio1-beforemerge
Branch point for: kent-audio2
Diff to: previous 1.192: preferred, colored
Changes since revision 1.192: +24 -10
lines
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 - view: text, markup, annotated - select for diffs
Mon Dec 13 17:55:28 2004 UTC (21 years, 11 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.191: preferred, colored
Changes since revision 1.191: +98 -55
lines
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 - view: text, markup, annotated - select for diffs
Mon Dec 13 17:24:09 2004 UTC (21 years, 11 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.190: preferred, colored
Changes since revision 1.190: +4 -3
lines
In wi_tx_intr, be a little more explicit about which fields we're
reading from the Tx-Complete FID.
Revision 1.190: download - view: text, markup, annotated - select for diffs
Mon Dec 13 17:21:35 2004 UTC (21 years, 11 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.189: preferred, colored
Changes since revision 1.189: +37 -28
lines
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 - view: text, markup, annotated - select for diffs
Mon Nov 29 07:24:15 2004 UTC (21 years, 11 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.130.2.4: preferred, colored
Changes since revision 1.130.2.4: +3 -3
lines
Sync with HEAD.
Revision 1.189: download - view: text, markup, annotated - select for diffs
Fri Nov 26 17:55:41 2004 UTC (21 years, 11 months ago) by mycroft
Branches: MAIN
CVS tags: kent-audio1-base,
kent-audio1
Diff to: previous 1.188: preferred, colored
Changes since revision 1.188: +3 -3
lines
Fix what appears to be a byte order error on big-endian systems with Symbol
cards.
Revision 1.130.2.4: download - view: text, markup, annotated - select for diffs
Tue Nov 2 07:51:32 2004 UTC (22 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.130.2.3: preferred, colored
Changes since revision 1.130.2.3: +4 -4
lines
Sync with HEAD.
Revision 1.188: download - view: text, markup, annotated - select for diffs
Sat Oct 30 18:08:41 2004 UTC (22 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.187: preferred, colored
Changes since revision 1.187: +4 -4
lines
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 - view: text, markup, annotated - select for diffs
Tue Oct 19 15:56:56 2004 UTC (22 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.130.2.2: preferred, colored
Changes since revision 1.130.2.2: +7 -22
lines
Sync with HEAD
Revision 1.187: download - view: text, markup, annotated - select for diffs
Tue Sep 28 00:42:11 2004 UTC (22 years, 1 month ago) by dyoung
Branches: MAIN
Diff to: previous 1.186: preferred, colored
Changes since revision 1.186: +7 -22
lines
Simplify the BSSID synchronization code.
Revision 1.130.2.2: download - view: text, markup, annotated - select for diffs
Thu Aug 12 11:41:27 2004 UTC (22 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.130.2.1: preferred, colored
Changes since revision 1.130.2.1: +53 -55
lines
Sync with HEAD.
Revision 1.186: download - view: text, markup, annotated - select for diffs
Tue Aug 10 00:57:20 2004 UTC (22 years, 3 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.185: preferred, colored
Changes since revision 1.185: +12 -15
lines
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 - view: text, markup, annotated - select for diffs
Sat Aug 7 17:12:44 2004 UTC (22 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.184: preferred, colored
Changes since revision 1.184: +39 -23
lines
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 - view: text, markup, annotated - select for diffs
Fri Aug 6 02:31:25 2004 UTC (22 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.183: preferred, colored
Changes since revision 1.183: +4 -19
lines
Use bpf_mtap2().
Revision 1.183: download - view: text, markup, annotated - select for diffs
Thu Aug 5 22:57:32 2004 UTC (22 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.182: preferred, colored
Changes since revision 1.182: +4 -4
lines
Put unadulterated dB values in the radiotap header, not the converted dBm
values.
Revision 1.130.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:46:21 2004 UTC (22 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +981 -384
lines
Sync with HEAD
Revision 1.159.2.2: download - view: text, markup, annotated - select for diffs
Fri Jul 23 23:26:50 2004 UTC (22 years, 3 months ago) by he
Branches: 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
Diff to: previous 1.159.2.1: preferred, colored; branchpoint 1.159: preferred, colored; next MAIN 1.160: preferred, colored
Changes since revision 1.159.2.1: +365 -207
lines
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 - view: text, markup, annotated - select for diffs
Fri Jul 23 08:34:11 2004 UTC (22 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.181: preferred, colored
Changes since revision 1.181: +68 -9
lines
IEEE80211_F_WEPON -> IEEE80211_F_PRIVACY
Revision 1.181: download - view: text, markup, annotated - select for diffs
Thu Jul 22 21:56:58 2004 UTC (22 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.180: preferred, colored
Changes since revision 1.180: +63 -23
lines
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 - view: text, markup, annotated - select for diffs
Thu Jul 22 21:31:56 2004 UTC (22 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.179: preferred, colored
Changes since revision 1.179: +38 -2
lines
Copyright maintenance.
Revision 1.179: download - view: text, markup, annotated - select for diffs
Thu Jul 22 20:36:11 2004 UTC (22 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.178: preferred, colored
Changes since revision 1.178: +4 -4
lines
Change some DELAY(2) to more sensible values.
Revision 1.178: download - view: text, markup, annotated - select for diffs
Thu Jul 22 20:34:52 2004 UTC (22 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.177: preferred, colored
Changes since revision 1.177: +55 -2
lines
Add some histogram code (controlled by an #ifdef) to track how long various
busy-wait loops take.
Revision 1.177: download - view: text, markup, annotated - select for diffs
Thu Jul 22 20:30:43 2004 UTC (22 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.176: preferred, colored
Changes since revision 1.176: +10 -8
lines
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 - view: text, markup, annotated - select for diffs
Thu Jul 22 20:25:23 2004 UTC (22 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.175: preferred, colored
Changes since revision 1.175: +10 -10
lines
Change some names.
sc_txnext -> sc_txalloc
sc_txcur -> sc_txqueue
Revision 1.175: download - view: text, markup, annotated - select for diffs
Thu Jul 22 20:23:31 2004 UTC (22 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.174: preferred, colored
Changes since revision 1.174: +15 -11
lines
Keep a count of FIDs allocated, rather than storing a packet length in the
ring.
Revision 1.174: download - view: text, markup, annotated - select for diffs
Thu Jul 22 20:13:20 2004 UTC (22 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.173: preferred, colored
Changes since revision 1.173: +3 -3
lines
Make the radiotap header reflect the actual transmit rate.
Revision 1.173: download - view: text, markup, annotated - select for diffs
Thu Jul 22 20:12:20 2004 UTC (22 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.172: preferred, colored
Changes since revision 1.172: +4 -13
lines
Ack events in only one place. Reduces register writes sometimes.
Revision 1.172: download - view: text, markup, annotated - select for diffs
Thu Jul 22 20:07:38 2004 UTC (22 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.171: preferred, colored
Changes since revision 1.171: +3 -3
lines
Only read the part of the frame header we use in wi_tx_intr().
Revision 1.171: download - view: text, markup, annotated - select for diffs
Thu Jul 22 20:06:05 2004 UTC (22 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.170: preferred, colored
Changes since revision 1.170: +19 -17
lines
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 - view: text, markup, annotated - select for diffs
Thu Jul 22 19:56:55 2004 UTC (22 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.169: preferred, colored
Changes since revision 1.169: +29 -29
lines
Make the logic in wi_write_txrate() less obscure.
Revision 1.169: download - view: text, markup, annotated - select for diffs
Thu Jul 22 19:55:08 2004 UTC (22 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.168: preferred, colored
Changes since revision 1.168: +32 -5
lines
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 - view: text, markup, annotated - select for diffs
Thu Jul 22 19:51:37 2004 UTC (22 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.167: preferred, colored
Changes since revision 1.167: +5 -4
lines
Missed one change in the previous. Now we really don't try to write it.
Revision 1.167: download - view: text, markup, annotated - select for diffs
Thu Jul 22 19:50:43 2004 UTC (22 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.166: preferred, colored
Changes since revision 1.166: +5 -3
lines
Symbol firmware doesn't support the power management register, so don't try to
do power management there.
Revision 1.166: download - view: text, markup, annotated - select for diffs
Thu Jul 22 19:48:28 2004 UTC (22 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.165: preferred, colored
Changes since revision 1.165: +3 -3
lines
Whoops, change one back to regular "static" for an inline function.
Revision 1.165: download - view: text, markup, annotated - select for diffs
Thu Jul 22 19:47:24 2004 UTC (22 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.164: preferred, colored
Changes since revision 1.164: +99 -94
lines
I hate "static". Add an #ifdef so I can turn it off easily.
Revision 1.164: download - view: text, markup, annotated - select for diffs
Fri Jul 2 23:41:34 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.163: preferred, colored
Changes since revision 1.163: +12 -3
lines
Indicate link status changes on the routing socket.
Revision 1.163: download - view: text, markup, annotated - select for diffs
Fri Jul 2 21:22:18 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.162: preferred, colored
Changes since revision 1.162: +3 -3
lines
Cosmetic: shift a break-statement into the right column.
Revision 1.162: download - view: text, markup, annotated - select for diffs
Fri Jul 2 21:20:10 2004 UTC (22 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.161: preferred, colored
Changes since revision 1.161: +10 -24
lines
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 - view: text, markup, annotated - select for diffs
Mon Jun 7 06:37:28 2004 UTC (22 years, 5 months ago) by jdc
Branches: netbsd-2-0
Diff to: previous 1.159: preferred, colored
Changes since revision 1.159: +5 -44
lines
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 - view: text, markup, annotated - select for diffs
Sun Jun 6 05:32:17 2004 UTC (22 years, 5 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.160: preferred, colored
Changes since revision 1.160: +5 -44
lines
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 - view: text, markup, annotated - select for diffs
Mon May 31 11:42:00 2004 UTC (22 years, 5 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.159: preferred, colored
Changes since revision 1.159: +2 -4
lines
Don't set a frame's WEP bits, the 802.11 layer already has.
Revision 1.159: download - view: text, markup, annotated - select for diffs
Fri Mar 26 06:43:25 2004 UTC (22 years, 7 months ago) by dyoung
Branches: MAIN
CVS tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Diff to: previous 1.158: preferred, colored
Changes since revision 1.158: +4 -19
lines
Actually, disabling RSS rate-adaptation does not make any discernible
difference in locking up STA f/w 8.42.1.
Revision 1.158: download - view: text, markup, annotated - select for diffs
Fri Mar 26 06:39:56 2004 UTC (22 years, 7 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.157: preferred, colored
Changes since revision 1.157: +5 -5
lines
Firmware revisions are decimal.
Revision 1.157: download - view: text, markup, annotated - select for diffs
Thu Mar 25 06:17:51 2004 UTC (22 years, 7 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.156: preferred, colored
Changes since revision 1.156: +4 -3
lines
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 - view: text, markup, annotated - select for diffs
Wed Mar 17 17:19:13 2004 UTC (22 years, 8 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.155: preferred, colored
Changes since revision 1.155: +3 -3
lines
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 - view: text, markup, annotated - select for diffs
Wed Mar 17 17:00:34 2004 UTC (22 years, 8 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.154: preferred, colored
Changes since revision 1.154: +12 -50
lines
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 - view: text, markup, annotated - select for diffs
Tue Feb 10 01:08:05 2004 UTC (22 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.153: preferred, colored
Changes since revision 1.153: +38 -15
lines
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 - view: text, markup, annotated - select for diffs
Tue Feb 10 00:59:38 2004 UTC (22 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.152: preferred, colored
Changes since revision 1.152: +25 -11
lines
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 - view: text, markup, annotated - select for diffs
Tue Feb 10 00:52:12 2004 UTC (22 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.151: preferred, colored
Changes since revision 1.151: +5 -4
lines
Shorten the retry count on Prism APs to improve the speed of
rate-adaptation.
Revision 1.151: download - view: text, markup, annotated - select for diffs
Tue Feb 10 00:47:41 2004 UTC (22 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.150: preferred, colored
Changes since revision 1.150: +38 -19
lines
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 - view: text, markup, annotated - select for diffs
Tue Feb 10 00:32:40 2004 UTC (22 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.149: preferred, colored
Changes since revision 1.149: +9 -5
lines
The radiotap header is little-endian.
Revision 1.149: download - view: text, markup, annotated - select for diffs
Sat Jan 31 10:40:19 2004 UTC (22 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.148: preferred, colored
Changes since revision 1.148: +6 -2
lines
wi_stop tells which stations' rssadapt descriptors it cleans up
when IFF_DEBUG is set.
Revision 1.148: download - view: text, markup, annotated - select for diffs
Sun Dec 7 05:44:49 2003 UTC (22 years, 11 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.147: preferred, colored
Changes since revision 1.147: +364 -41
lines
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 - view: text, markup, annotated - select for diffs
Thu Dec 4 13:57:30 2003 UTC (22 years, 11 months ago) by keihan
Branches: MAIN
Diff to: previous 1.146: preferred, colored
Changes since revision 1.146: +3 -3
lines
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 - view: text, markup, annotated - select for diffs
Sun Nov 16 09:41:01 2003 UTC (23 years ago) by dyoung
Branches: MAIN
Diff to: previous 1.145: preferred, colored
Changes since revision 1.145: +13 -8
lines
From Steve Woodford (scw@): fix wi(4) and wiconfig(8) on big-endian
machines.
Revision 1.145: download - view: text, markup, annotated - select for diffs
Sun Nov 16 09:05:53 2003 UTC (23 years ago) by dyoung
Branches: MAIN
Diff to: previous 1.144: preferred, colored
Changes since revision 1.144: +4 -4
lines
Fix spelling/grammar in a comment.
Revision 1.144: download - view: text, markup, annotated - select for diffs
Sun Nov 16 09:02:42 2003 UTC (23 years ago) by dyoung
Branches: MAIN
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +36 -8
lines
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 - view: text, markup, annotated - select for diffs
Sun Nov 2 01:55:40 2003 UTC (23 years ago) by dyoung
Branches: MAIN
Diff to: previous 1.142: preferred, colored
Changes since revision 1.142: +3 -8
lines
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 - view: text, markup, annotated - select for diffs
Sun Nov 2 01:39:22 2003 UTC (23 years ago) by dyoung
Branches: MAIN
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +21 -27
lines
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 - view: text, markup, annotated - select for diffs
Sun Nov 2 00:55:46 2003 UTC (23 years ago) by dyoung
Branches: MAIN
Diff to: previous 1.140: preferred, colored
Changes since revision 1.140: +4 -3
lines
Get the ieee80211_node for management packets from the rcvif field.
Revision 1.140: download - view: text, markup, annotated - select for diffs
Sun Nov 2 00:22:49 2003 UTC (23 years ago) by dyoung
Branches: MAIN
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +5 -4
lines
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 - view: text, markup, annotated - select for diffs
Sat Nov 1 23:57:05 2003 UTC (23 years ago) by dyoung
Branches: MAIN
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +7 -4
lines
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 - view: text, markup, annotated - select for diffs
Fri Oct 24 23:58:22 2003 UTC (23 years ago) by mycroft
Branches: MAIN
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +8 -7
lines
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 - view: text, markup, annotated - select for diffs
Sun Oct 19 22:00:54 2003 UTC (23 years, 1 month ago) by dyoung
Branches: MAIN
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +6 -6
lines
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 - view: text, markup, annotated - select for diffs
Fri Oct 17 03:58:23 2003 UTC (23 years, 1 month ago) by dyoung
Branches: MAIN
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +3 -3
lines
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 - view: text, markup, annotated - select for diffs
Thu Oct 16 10:57:35 2003 UTC (23 years, 1 month ago) by dyoung
Branches: MAIN
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +55 -22
lines
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 - view: text, markup, annotated - select for diffs
Thu Oct 16 10:38:07 2003 UTC (23 years, 1 month ago) by dyoung
Branches: MAIN
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +2 -7
lines
The upper & lower bounds on wi RSSI are completely bogus, AFAICT.
Revision 1.133: download - view: text, markup, annotated - select for diffs
Mon Oct 13 08:07:21 2003 UTC (23 years, 1 month ago) by dyoung
Branches: MAIN
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +120 -68
lines
Switch wi(4) to the new 802.11 layer.
Revision 1.132: download - view: text, markup, annotated - select for diffs
Sun Jul 6 20:01:17 2003 UTC (23 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +11 -42
lines
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 - view: text, markup, annotated - select for diffs
Sun Jul 6 07:15:55 2003 UTC (23 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +18 -10
lines
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 - view: text, markup, annotated - select for diffs
Thu Jun 19 06:16:36 2003 UTC (23 years, 5 months ago) by rh
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +7 -3
lines
Add and enable monitoring mode for Lucent cards.
Revision 1.129: download - view: text, markup, annotated - select for diffs
Sat May 31 19:38:08 2003 UTC (23 years, 5 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +3 -3
lines
Picky cosmetic change: remove leading space.
Revision 1.128: download - view: text, markup, annotated - select for diffs
Thu May 22 06:34:45 2003 UTC (23 years, 6 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +12 -7
lines
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 - view: text, markup, annotated - select for diffs
Tue May 20 01:29:35 2003 UTC (23 years, 6 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +20 -22
lines
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 - view: text, markup, annotated - select for diffs
Sat May 17 16:46:03 2003 UTC (23 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +4 -3
lines
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 - view: text, markup, annotated - select for diffs
Fri May 16 01:26:18 2003 UTC (23 years, 6 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +25 -44
lines
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 - view: text, markup, annotated - select for diffs
Tue May 13 08:58:01 2003 UTC (23 years, 6 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +3 -3
lines
Revert to previous multicast logic, which enami@sm.sony.co.jp says
was correct.
Revision 1.123: download - view: text, markup, annotated - select for diffs
Tue May 13 08:35:58 2003 UTC (23 years, 6 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +76 -56
lines
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 - view: text, markup, annotated - select for diffs
Tue May 13 07:17:46 2003 UTC (23 years, 6 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +4 -2
lines
For converge with FreeBSD:
Revision 1.121: download - view: text, markup, annotated - select for diffs
Tue May 13 07:13:49 2003 UTC (23 years, 6 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +55 -2
lines
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 - view: text, markup, annotated - select for diffs
Tue May 13 06:51:10 2003 UTC (23 years, 6 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +5 -2
lines
Complete prior patch: dump packets in wi_rx_intr, too.
Revision 1.119: download - view: text, markup, annotated - select for diffs
Tue May 13 06:48:56 2003 UTC (23 years, 6 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +28 -2
lines
Debug code from FreeBSD: handy packet dumps when IFF_DEBUG|IFF_LINK2
are set.
Revision 1.118: download - view: text, markup, annotated - select for diffs
Tue May 13 06:33:40 2003 UTC (23 years, 6 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +18 -6
lines
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 - view: text, markup, annotated - select for diffs
Tue May 13 06:15:47 2003 UTC (23 years, 6 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +9 -11
lines
For uniformity between FreeBSD & NetBSD, adopt FreeBSD's more
concise wi_cmd.
Revision 1.116: download - view: text, markup, annotated - select for diffs
Tue Apr 8 04:31:24 2003 UTC (23 years, 7 months ago) by kml
Branches: MAIN
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +57 -13
lines
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 - view: text, markup, annotated - select for diffs
Thu Mar 27 07:22:47 2003 UTC (23 years, 7 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +2 -5
lines
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 - view: text, markup, annotated - select for diffs
Thu Mar 27 05:00:21 2003 UTC (23 years, 7 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +4 -3
lines
HostAP broke in version 1.4.2 of station firmware. Try 1.3.x, 1.4.9,
or later.
Revision 1.113: download - view: text, markup, annotated - select for diffs
Thu Mar 27 04:34:17 2003 UTC (23 years, 7 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +6 -2
lines
Introduced sc_reset to wi_softc. The bus-specific front-end gets
to fill this.
Revision 1.112: download - view: text, markup, annotated - select for diffs
Tue Feb 25 01:57:35 2003 UTC (23 years, 8 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +26 -6
lines
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 - view: text, markup, annotated - select for diffs
Tue Feb 25 00:51:14 2003 UTC (23 years, 8 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +3 -3
lines
Disable interrupts before ACKing them to avoid the obvious race.
Revision 1.110: download - view: text, markup, annotated - select for diffs
Tue Feb 25 00:47:11 2003 UTC (23 years, 8 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +6 -2
lines
Following implementation for other RIDs, read the driver's notion
of the fragmentation threshold instead of the hardware's notion.
Revision 1.17.2.24: download - view: text, markup, annotated - select for diffs
Wed Jan 15 18:44:16 2003 UTC (23 years, 10 months ago) by thorpej
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.17.2.23: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17.2.23: +43 -9
lines
Sync with HEAD.
Revision 1.109: download - view: text, markup, annotated - select for diffs
Thu Jan 9 08:52:19 2003 UTC (23 years, 10 months ago) by dyoung
Branches: MAIN
CVS tags: nathanw_sa_before_merge,
nathanw_sa_base
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +3 -3
lines
Oops. This turns off debugging again.
Revision 1.108: download - view: text, markup, annotated - select for diffs
Thu Jan 9 08:49:39 2003 UTC (23 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +44 -10
lines
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.23: download - view: text, markup, annotated - select for diffs
Fri Jan 3 17:07:43 2003 UTC (23 years, 10 months ago) by thorpej
Branches: nathanw_sa
Diff to: previous 1.17.2.22: preferred, colored
Changes since revision 1.17.2.22: +56 -2
lines
Sync with HEAD.
Revision 1.107: download - view: text, markup, annotated - select for diffs
Wed Jan 1 02:06:47 2003 UTC (23 years, 10 months ago) by dyoung
Branches: MAIN
CVS tags: fvdl_fs64_base
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +56 -2
lines
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.22: download - view: text, markup, annotated - select for diffs
Sun Dec 29 20:49:17 2002 UTC (23 years, 10 months ago) by thorpej
Branches: nathanw_sa
Diff to: previous 1.17.2.21: preferred, colored
Changes since revision 1.17.2.21: +31 -4
lines
Sync with HEAD.
Revision 1.106: download - view: text, markup, annotated - select for diffs
Fri Dec 27 08:29:46 2002 UTC (23 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +14 -3
lines
On Lucent cards, indicate that changing BSSID with SIOCS80211BSSID
is impossible. Never write to the Prism-only JOIN RID.
Revision 1.105: download - view: text, markup, annotated - select for diffs
Fri Dec 27 07:54:35 2002 UTC (23 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +19 -3
lines
The RID for the RSSI->dBm adjustment is not supported by Prism
station firmware version <= 1.1.1.
Revision 1.17.2.21: download - view: text, markup, annotated - select for diffs
Wed Dec 11 06:38:03 2002 UTC (23 years, 11 months ago) by thorpej
Branches: nathanw_sa
Diff to: previous 1.17.2.20: preferred, colored
Changes since revision 1.17.2.20: +40 -12
lines
Sync with HEAD.
Revision 1.104: download - view: text, markup, annotated - select for diffs
Mon Nov 18 15:10:22 2002 UTC (24 years ago) by dyoung
Branches: MAIN
CVS tags: gmcgarry_ucred_base,
gmcgarry_ucred,
gmcgarry_ctxsw_base,
gmcgarry_ctxsw
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +19 -8
lines
Only Prism is known to support WI_RID_FRAG_THRESH.
Revision 1.103: download - view: text, markup, annotated - select for diffs
Sat Nov 16 06:25:05 2002 UTC (24 years ago) by dyoung
Branches: MAIN
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +12 -12
lines
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 - view: text, markup, annotated - select for diffs
Sat Nov 16 06:02:53 2002 UTC (24 years ago) by dyoung
Branches: MAIN
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +19 -2
lines
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.20: download - view: text, markup, annotated - select for diffs
Mon Nov 11 22:10:09 2002 UTC (24 years ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.17.2.19: preferred, colored
Changes since revision 1.17.2.19: +3 -3
lines
Catch up to -current
Revision 1.101: download - view: text, markup, annotated - select for diffs
Fri Oct 25 01:35:12 2002 UTC (24 years ago) by mycroft
Branches: MAIN
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +3 -3
lines
IBSS mode does in fact work on some earlier Symbol firmware versions, as
witnessed by my home network.
Revision 1.17.2.19: download - view: text, markup, annotated - select for diffs
Fri Oct 18 02:42:03 2002 UTC (24 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.17.2.18: preferred, colored
Changes since revision 1.17.2.18: +1637 -3141
lines
Catch up to -current.
Revision 1.100: download - view: text, markup, annotated - select for diffs
Tue Oct 15 08:53:46 2002 UTC (24 years, 1 month ago) by onoe
Branches: MAIN
CVS tags: kqueue-beforemerge,
kqueue-aftermerge
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +21 -10
lines
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 - view: text, markup, annotated - select for diffs
Thu Oct 10 18:39:17 2002 UTC (24 years, 1 month ago) by jdolecek
Branches: kqueue
Diff to: previous 1.21.2.7: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.2.7: +1639 -2367
lines
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 - view: text, markup, annotated - select for diffs
Mon Oct 7 11:01:52 2002 UTC (24 years, 1 month ago) by onoe
Branches: MAIN
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +4 -3
lines
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 - view: text, markup, annotated - select for diffs
Fri Oct 4 04:23:20 2002 UTC (24 years, 1 month ago) by onoe
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +32 -23
lines
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 - view: text, markup, annotated - select for diffs
Thu Oct 3 22:32:37 2002 UTC (24 years, 1 month ago) by onoe
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +4 -6
lines
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 - view: text, markup, annotated - select for diffs
Wed Oct 2 17:11:34 2002 UTC (24 years, 1 month ago) by onoe
Branches: MAIN
CVS tags: kqueue-base
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +51 -27
lines
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 - view: text, markup, annotated - select for diffs
Tue Oct 1 16:11:19 2002 UTC (24 years, 1 month ago) by onoe
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +16 -8
lines
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 - view: text, markup, annotated - select for diffs
Tue Oct 1 09:48:02 2002 UTC (24 years, 1 month ago) by onoe
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +4 -3
lines
Linkstatus AP_IN_RANGE doesn't mean associatted, rather it just mean trying
to associate.
Revision 1.93: download - view: text, markup, annotated - select for diffs
Tue Oct 1 03:27:03 2002 UTC (24 years, 1 month ago) by onoe
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +3 -2
lines
Allow SIOCSIFADDR with AF_LINK and WI_RID_MAC_NODE (wiconfig -m)
to set MAC address.
Revision 1.92: download - view: text, markup, annotated - select for diffs
Tue Oct 1 03:24:35 2002 UTC (24 years, 1 month ago) by onoe
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +3 -2
lines
initialize sc_txcur and sc_txnext at wi_init to avoid reordering after
reinitialized.
Revision 1.91: download - view: text, markup, annotated - select for diffs
Mon Sep 30 15:48:44 2002 UTC (24 years, 1 month ago) by onoe
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +43 -50
lines
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 - view: text, markup, annotated - select for diffs
Mon Sep 30 06:50:35 2002 UTC (24 years, 1 month ago) by onoe
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +1604 -3157
lines
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 - view: text, markup, annotated - select for diffs
Mon Sep 30 06:29:29 2002 UTC (24 years, 1 month ago) by onoe
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +13 -13
lines
Nuke unneeded member sc_ifp and use #define sc_if instead,
to prepare jumbo commit for wi.c
Revision 1.88: download - view: text, markup, annotated - select for diffs
Fri Sep 27 21:54:17 2002 UTC (24 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +3 -3
lines
Increase the timeout in wi_cmd(). Fixes reports of "busy didn't
clear". From David Young <dyoung@ojctech.com>.
Revision 1.87: download - view: text, markup, annotated - select for diffs
Thu Sep 26 23:55:43 2002 UTC (24 years, 1 month ago) by martin
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +3 -3
lines
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 - view: text, markup, annotated - select for diffs
Thu Sep 26 23:47:57 2002 UTC (24 years, 1 month ago) by martin
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +4 -2
lines
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 - view: text, markup, annotated - select for diffs
Thu Sep 26 22:51:30 2002 UTC (24 years, 1 month ago) by martin
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +3 -3
lines
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.18: download - view: text, markup, annotated - select for diffs
Mon Sep 23 15:40:22 2002 UTC (24 years, 1 month ago) by thorpej
Branches: nathanw_sa
Diff to: previous 1.17.2.17: preferred, colored
Changes since revision 1.17.2.17: +1109 -314
lines
Sync with HEAD.
Revision 1.84: download - view: text, markup, annotated - select for diffs
Mon Sep 23 14:31:27 2002 UTC (24 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +1109 -314
lines
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 - view: text, markup, annotated - select for diffs
Fri Sep 6 08:44:42 2002 UTC (24 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.21.2.6: preferred, colored
Changes since revision 1.21.2.6: +554 -131
lines
sync kqueue branch with HEAD
Revision 1.72.2.2: download - view: text, markup, annotated - select for diffs
Thu Aug 29 05:22:34 2002 UTC (24 years, 2 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.72.2.1: preferred, colored; branchpoint 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72.2.1: +554 -131
lines
catch up with -current.
Revision 1.17.2.17: download - view: text, markup, annotated - select for diffs
Tue Aug 27 23:46:45 2002 UTC (24 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.17.2.16: preferred, colored
Changes since revision 1.17.2.16: +71 -104
lines
Catch up to -current.
Revision 1.83: download - view: text, markup, annotated - select for diffs
Wed Aug 21 03:26:29 2002 UTC (24 years, 3 months ago) by onoe
Branches: MAIN
CVS tags: gehenna-devsw-base
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +71 -104
lines
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.16: download - view: text, markup, annotated - select for diffs
Tue Aug 13 02:19:30 2002 UTC (24 years, 3 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.17.2.15: preferred, colored
Changes since revision 1.17.2.15: +561 -105
lines
Catch up to -current.
Revision 1.82: download - view: text, markup, annotated - select for diffs
Mon Aug 12 16:56:39 2002 UTC (24 years, 3 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +4 -4
lines
wi_keylen is kept in little-endian order, so le16toh() it before
using it in e.g. a memcpy() call.
Revision 1.81: download - view: text, markup, annotated - select for diffs
Sun Aug 11 22:03:43 2002 UTC (24 years, 3 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +22 -19
lines
Pass all 3 parameters to wi_cmd().
Revision 1.80: download - view: text, markup, annotated - select for diffs
Sun Aug 11 21:54:19 2002 UTC (24 years, 3 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +140 -5
lines
* 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 - view: text, markup, annotated - select for diffs
Sun Aug 11 06:13:53 2002 UTC (24 years, 3 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +205 -45
lines
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 - view: text, markup, annotated - select for diffs
Sun Aug 11 01:35:10 2002 UTC (24 years, 3 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +5 -5
lines
Use WI_RID_DATA_RATES to fetch the supported rates. From OpenBSD.
Revision 1.77: download - view: text, markup, annotated - select for diffs
Sun Aug 11 01:30:28 2002 UTC (24 years, 3 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +159 -30
lines
* 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 - view: text, markup, annotated - select for diffs
Sun Aug 11 00:11:52 2002 UTC (24 years, 3 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +4 -4
lines
Only read supported rates on Prism2 boards.
Revision 1.75: download - view: text, markup, annotated - select for diffs
Sun Aug 11 00:00:41 2002 UTC (24 years, 3 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +45 -16
lines
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 - view: text, markup, annotated - select for diffs
Sat Aug 10 23:16:14 2002 UTC (24 years, 3 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +3 -3
lines
Fix some whitespace.
Revision 1.17.2.15: download - view: text, markup, annotated - select for diffs
Fri Jul 12 01:40:08 2002 UTC (24 years, 4 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.17.2.14: preferred, colored
Changes since revision 1.17.2.14: +2 -3
lines
No longer need to pull in lwp.h; proc.h pulls it in for us.
Revision 1.17.2.14: download - view: text, markup, annotated - select for diffs
Mon Jun 24 22:10:04 2002 UTC (24 years, 4 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.17.2.13: preferred, colored
Changes since revision 1.17.2.13: +4 -4
lines
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 - view: text, markup, annotated - select for diffs
Sun Jun 23 17:46:58 2002 UTC (24 years, 4 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.21.2.5: preferred, colored
Changes since revision 1.21.2.5: +202 -105
lines
catch up with -current on kqueue branch
Revision 1.72.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 20 16:33:22 2002 UTC (24 years, 5 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +9 -9
lines
catch up with -current.
Revision 1.17.2.13: download - view: text, markup, annotated - select for diffs
Thu Jun 20 03:45:07 2002 UTC (24 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.17.2.12: preferred, colored
Changes since revision 1.17.2.12: +9 -9
lines
Catch up to -current.
Revision 1.72.4.1: download - view: text, markup, annotated - select for diffs
Sat Jun 1 22:33:23 2002 UTC (24 years, 5 months ago) by tv
Branches: 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
Diff to: previous 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72: +9 -9
lines
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 - view: text, markup, annotated - select for diffs
Fri May 31 15:52:55 2002 UTC (24 years, 5 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +9 -9
lines
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 - view: text, markup, annotated - select for diffs
Thu Apr 18 05:24:28 2002 UTC (24 years, 7 months ago) by onoe
Branches: MAIN
CVS tags: netbsd-1-6-base
Branch point for: netbsd-1-6,
gehenna-devsw
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +2 -2
lines
(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.12: download - view: text, markup, annotated - select for diffs
Wed Apr 17 00:05:53 2002 UTC (24 years, 7 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.17.2.11: preferred, colored
Changes since revision 1.17.2.11: +148 -88
lines
Catch up to -current.
Revision 1.71: download - view: text, markup, annotated - select for diffs
Tue Apr 16 07:24:06 2002 UTC (24 years, 7 months ago) by onoe
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +40 -11
lines
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 - view: text, markup, annotated - select for diffs
Sun Apr 14 19:55:23 2002 UTC (24 years, 7 months ago) by onoe
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +27 -7
lines
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 - view: text, markup, annotated - select for diffs
Thu Apr 11 11:21:26 2002 UTC (24 years, 7 months ago) by augustss
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +3 -3
lines
Put device name at start of line.
Revision 1.68: download - view: text, markup, annotated - select for diffs
Fri Apr 5 00:59:38 2002 UTC (24 years, 7 months ago) by ichiro
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +3 -3
lines
Upps, fix typo
Revision 1.67: download - view: text, markup, annotated - select for diffs
Fri Apr 5 00:54:51 2002 UTC (24 years, 7 months ago) by ichiro
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +28 -24
lines
fix minor bugs for lucent cards. (point out from Warner Losh)
Revision 1.66: download - view: text, markup, annotated - select for diffs
Thu Apr 4 17:43:31 2002 UTC (24 years, 7 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +2 -16
lines
move wi_pci_reset() from ic/wi.c to pci/if_wi_pci.c, where is belongs
Revision 1.65: download - view: text, markup, annotated - select for diffs
Thu Apr 4 17:30:32 2002 UTC (24 years, 7 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +3 -4
lines
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 - view: text, markup, annotated - select for diffs
Thu Apr 4 07:06:16 2002 UTC (24 years, 7 months ago) by ichiro
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +41 -67
lines
using table driven for Prism2 family IDs/Names.
Revision 1.63: download - view: text, markup, annotated - select for diffs
Wed Apr 3 15:43:14 2002 UTC (24 years, 7 months ago) by ichiro
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +4 -4
lines
s/WI_NIC_3842/WI_NIC_3842_EVA
Revision 1.62: download - view: text, markup, annotated - select for diffs
Wed Apr 3 15:33:20 2002 UTC (24 years, 7 months ago) by ichiro
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +21 -9
lines
add more IDs of PRISM family
Revision 1.17.2.11: download - view: text, markup, annotated - select for diffs
Mon Apr 1 07:45:46 2002 UTC (24 years, 7 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.17.2.10: preferred, colored
Changes since revision 1.17.2.10: +127 -67
lines
Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
Revision 1.61: download - view: text, markup, annotated - select for diffs
Mon Apr 1 02:46:47 2002 UTC (24 years, 7 months ago) by ichiro
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +18 -5
lines
add more IDs of PRISM family
Revision 1.60: download - view: text, markup, annotated - select for diffs
Sun Mar 31 10:44:44 2002 UTC (24 years, 7 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +7 -3
lines
add some bound checking
patch submitted by IWAMOTO Toshihiro in kern/13112
Revision 1.59: download - view: text, markup, annotated - select for diffs
Sun Mar 31 05:51:47 2002 UTC (24 years, 7 months ago) by ichiro
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +6 -4
lines
Dont use magic number.
added parameter of WEP flags
Revision 1.58: download - view: text, markup, annotated - select for diffs
Sat Mar 30 16:44:59 2002 UTC (24 years, 7 months ago) by ichiro
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +28 -11
lines
added sc_pri_firmware_ver, and print Primary/Station firmware versions.
cosmetic change.
Revision 1.57: download - view: text, markup, annotated - select for diffs
Sat Mar 30 15:58:45 2002 UTC (24 years, 7 months ago) by ichiro
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +4 -4
lines
the kind of "firmware" was clarified.
firmware -> station firmware
Revision 1.56: download - view: text, markup, annotated - select for diffs
Wed Mar 27 08:01:22 2002 UTC (24 years, 7 months ago) by onoe
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +72 -33
lines
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 - view: text, markup, annotated - select for diffs
Mon Mar 25 09:10:54 2002 UTC (24 years, 7 months ago) by dbj
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +16 -18
lines
changes from Warner Losh to read firmware version for non prism2 cards
Revision 1.54: download - view: text, markup, annotated - select for diffs
Thu Mar 21 07:31:37 2002 UTC (24 years, 8 months ago) by itohy
Branches: MAIN
CVS tags: eeh-devprop-base,
eeh-devprop
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +5 -5
lines
I have Prism2 with 0.8.2 firmware, and have no problem
using WEP without promisc on the device.
Revision 1.53: download - view: text, markup, annotated - select for diffs
Sun Mar 17 02:52:59 2002 UTC (24 years, 8 months ago) by dbj
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +3 -3
lines
don't set prism2 bit when WI_NIC_LUCENT is detected
Revision 1.21.2.5: download - view: text, markup, annotated - select for diffs
Sat Mar 16 16:01:04 2002 UTC (24 years, 8 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.21.2.4: preferred, colored
Changes since revision 1.21.2.4: +83 -39
lines
Catch up with -current.
Revision 1.52: download - view: text, markup, annotated - select for diffs
Sun Mar 10 14:43:38 2002 UTC (24 years, 8 months ago) by ichiro
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +12 -15
lines
fix 128bit WEP work with Prism2 Card.
from FreeBSD
Revision 1.51: download - view: text, markup, annotated - select for diffs
Sun Mar 10 00:16:47 2002 UTC (24 years, 8 months ago) by augustss
Branches: MAIN
CVS tags: newlock-base,
newlock
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +6 -2
lines
Add a nic I don't really know much about, but it's used on my D-Link card.
Revision 1.50: download - view: text, markup, annotated - select for diffs
Wed Mar 6 14:41:39 2002 UTC (24 years, 8 months ago) by dbj
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +3 -3
lines
return EINPROGRESS instead of EINVAL when trying to read
the results of an AP scan that is not finished
Revision 1.49: download - view: text, markup, annotated - select for diffs
Mon Mar 4 01:56:12 2002 UTC (24 years, 8 months ago) by dbj
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +6 -5
lines
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 - view: text, markup, annotated - select for diffs
Mon Mar 4 01:33:17 2002 UTC (24 years, 8 months ago) by dbj
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +23 -3
lines
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 - view: text, markup, annotated - select for diffs
Mon Mar 4 01:30:04 2002 UTC (24 years, 8 months ago) by dbj
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +5 -5
lines
correctly handle AP scanning result when there are no APs
Revision 1.46: download - view: text, markup, annotated - select for diffs
Mon Mar 4 01:21:07 2002 UTC (24 years, 8 months ago) by dbj
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +5 -4
lines
used %02x instead of %x when printing out BSS ids
Revision 1.45: download - view: text, markup, annotated - select for diffs
Mon Mar 4 01:19:24 2002 UTC (24 years, 8 months ago) by dbj
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +4 -4
lines
s/Faild/Failed/
Revision 1.17.2.10: download - view: text, markup, annotated - select for diffs
Thu Feb 28 04:13:32 2002 UTC (24 years, 8 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.17.2.9: preferred, colored
Changes since revision 1.17.2.9: +231 -18
lines
Catch up to -current.
Revision 1.44: download - view: text, markup, annotated - select for diffs
Tue Feb 26 09:29:18 2002 UTC (24 years, 8 months ago) by dbj
Branches: MAIN
CVS tags: ifpoll-base
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +3 -3
lines
use #ifdef WI_DEBUG instead of #if WI_DEBUG
Revision 1.43: download - view: text, markup, annotated - select for diffs
Tue Feb 26 09:18:54 2002 UTC (24 years, 8 months ago) by dbj
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +7 -6
lines
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 - view: text, markup, annotated - select for diffs
Mon Feb 18 14:45:56 2002 UTC (24 years, 9 months ago) by yamt
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +4 -4
lines
fix indent
Revision 1.41: download - view: text, markup, annotated - select for diffs
Mon Feb 18 14:41:50 2002 UTC (24 years, 9 months ago) by yamt
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +3 -2
lines
add a missing splx in the case of error.
Revision 1.40: download - view: text, markup, annotated - select for diffs
Sun Feb 17 19:24:18 2002 UTC (24 years, 9 months ago) by martin
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +27 -8
lines
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 - view: text, markup, annotated - select for diffs
Wed Feb 13 22:06:17 2002 UTC (24 years, 9 months ago) by itojun
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +3 -3
lines
make the driver even more silent; print state change messages only if IFF_DEBUG.
Revision 1.21.2.4: download - view: text, markup, annotated - select for diffs
Mon Feb 11 20:09:49 2002 UTC (24 years, 9 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.21.2.3: preferred, colored
Changes since revision 1.21.2.3: +204 -12
lines
Sync w/ -current.
Revision 1.38: download - view: text, markup, annotated - select for diffs
Fri Feb 1 13:35:41 2002 UTC (24 years, 9 months ago) by martin
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +9 -3
lines
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 - view: text, markup, annotated - select for diffs
Mon Jan 21 21:55:05 2002 UTC (24 years, 10 months ago) by ichiro
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +3 -3
lines
if AP is nothing, FrameLen is 3 or less.
Revision 1.36: download - view: text, markup, annotated - select for diffs
Mon Jan 21 11:29:22 2002 UTC (24 years, 10 months ago) by ichiro
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +37 -0
lines
Print Association status changes to the console.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Mon Jan 21 11:28:18 2002 UTC (24 years, 10 months ago) by ichiro
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +137 -5
lines
"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 - view: text, markup, annotated - select for diffs
Sun Jan 20 07:26:14 2002 UTC (24 years, 10 months ago) by ichiro
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +4 -4
lines
mistake bit number of tx_rate
case 4 -> case 5
Revision 1.33: download - view: text, markup, annotated - select for diffs
Sun Jan 20 05:39:52 2002 UTC (24 years, 10 months ago) by ichiro
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +25 -8
lines
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 - view: text, markup, annotated - select for diffs
Fri Jan 18 11:41:49 2002 UTC (24 years, 10 months ago) by ichiro
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +5 -5
lines
to use 104bit WEP key
Revision 1.17.2.9: download - view: text, markup, annotated - select for diffs
Fri Jan 11 23:39:01 2002 UTC (24 years, 10 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.17.2.8: preferred, colored
Changes since revision 1.17.2.8: +56 -19
lines
More catchup.
Revision 1.21.2.3: download - view: text, markup, annotated - select for diffs
Thu Jan 10 19:55:10 2002 UTC (24 years, 10 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.21.2.2: preferred, colored
Changes since revision 1.21.2.2: +83 -24
lines
Sync kqueue branch with -current.
Revision 1.31: download - view: text, markup, annotated - select for diffs
Wed Jan 9 19:37:02 2002 UTC (24 years, 10 months ago) by drochner
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +56 -19
lines
print link status changes to the console
Revision 1.17.2.8: download - view: text, markup, annotated - select for diffs
Wed Jan 9 00:36:29 2002 UTC (24 years, 10 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.17.2.7: preferred, colored
Changes since revision 1.17.2.7: +29 -7
lines
Catch up to -current. No, really, for sure this time.
Revision 1.17.2.7: download - view: text, markup, annotated - select for diffs
Tue Jan 8 00:30:13 2002 UTC (24 years, 10 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.17.2.6: preferred, colored
Changes since revision 1.17.2.6: +43 -258
lines
Catch up to -current.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Sat Jan 5 20:10:53 2002 UTC (24 years, 10 months ago) by explorer
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +39 -232
lines
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.6: download - view: text, markup, annotated - select for diffs
Thu Nov 15 17:43:57 2001 UTC (25 years ago) by thorpej
Branches: nathanw_sa
Diff to: previous 1.17.2.5: preferred, colored
Changes since revision 1.17.2.5: +258 -43
lines
Merge from -current; compilation fix (pcmcia front-end out of sync
with bus-independent part .. merge error, I guess).
Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue Nov 13 13:14:46 2001 UTC (25 years ago) by lukem
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +4 -1
lines
add/cleanup RCSID
Revision 1.27.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 12 21:18:09 2001 UTC (25 years ago) by thorpej
Branches: thorpej-mips-cache
Diff to: previous 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27: +5 -5
lines
Sync the thorpej-mips-cache branch with -current.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Sun Nov 11 00:16:07 2001 UTC (25 years ago) by christos
Branches: MAIN
CVS tags: thorpej-mips-cache-base
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +5 -5
lines
Get rid of duplicate RID definitions.
Revision 1.27: download - view: text, markup, annotated - select for diffs
Sun Oct 14 12:33:18 2001 UTC (25 years, 1 month ago) by ichiro
Branches: MAIN
Branch point for: thorpej-mips-cache
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +3 -3
lines
The description about soft-reset of WI_PCI_COR was added
and WI_PCI_SOFT_RESET was used.
Cosmetic change.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Oct 13 15:00:23 2001 UTC (25 years, 1 month ago) by ichiro
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +19 -1
lines
Add Intersil Prism2.5 Mini-PCI wavelan.
Revision 1.17.2.5: download - view: text, markup, annotated - select for diffs
Mon Oct 8 20:11:03 2001 UTC (25 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.17.2.4: preferred, colored
Changes since revision 1.17.2.4: +39 -233
lines
Catch up to -current.
Revision 1.24.2.1: download - view: text, markup, annotated - select for diffs
Mon Oct 1 12:45:44 2001 UTC (25 years, 1 month ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24: +233 -39
lines
Catch up with -current.
Revision 1.17.2.4: download - view: text, markup, annotated - select for diffs
Wed Sep 26 19:54:53 2001 UTC (25 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.17.2.3: preferred, colored
Changes since revision 1.17.2.3: +233 -39
lines
Catch up to -current.
Again.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat Sep 22 17:22:25 2001 UTC (25 years, 1 month ago) by explorer
Branches: MAIN
CVS tags: thorpej-devvp-base3,
thorpej-devvp-base2
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +233 -39
lines
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 - view: text, markup, annotated - select for diffs
Sat Aug 25 06:16:18 2001 UTC (25 years, 2 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.21.2.1: preferred, colored
Changes since revision 1.21.2.1: +38 -38
lines
Merge Aug 24 -current into the kqueue branch.
Revision 1.17.2.3: download - view: text, markup, annotated - select for diffs
Fri Aug 24 00:09:40 2001 UTC (25 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.17.2.2: preferred, colored
Changes since revision 1.17.2.2: +73 -74
lines
Catch up with -current.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Thu Aug 16 13:37:32 2001 UTC (25 years, 3 months ago) by wiz
Branches: MAIN
CVS tags: thorpej-devvp-base,
pre-chs-ubcperf,
post-chs-ubcperf
Branch point for: thorpej-devvp
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +37 -37
lines
Fix indentation in switch statement, per kern/13725 by seebs.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Aug 13 22:52:26 2001 UTC (25 years, 3 months ago) by wiz
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +2 -2
lines
Space nit. kern/13712 by seebs.
Revision 1.21.2.1: download - view: text, markup, annotated - select for diffs
Fri Aug 3 04:13:06 2001 UTC (25 years, 3 months ago) by lukem
Branches: kqueue
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -2
lines
update to -current
Revision 1.22: download - view: text, markup, annotated - select for diffs
Thu Jul 26 19:46:01 2001 UTC (25 years, 3 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -2
lines
make local variable 'len' in wi_set_nwkey() size_t (hence unsigned)
this one is merely cosmetic, no functional change
Revision 1.21: download - view: text, markup, annotated - select for diffs
Sat Jul 7 16:13:51 2001 UTC (25 years, 4 months ago) by thorpej
Branches: MAIN
Branch point for: kqueue
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +6 -6
lines
bzero -> memset
Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat Jul 7 15:53:22 2001 UTC (25 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +26 -26
lines
bcopy -> memcpy
Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Jul 7 05:35:42 2001 UTC (25 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -3
lines
bcmp -> memcmp
Revision 1.18: download - view: text, markup, annotated - select for diffs
Wed Jun 27 22:22:12 2001 UTC (25 years, 4 months ago) by nathanw
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -4
lines
The back end driver doesn't need PCMCIA headers, but it does need
<machine/bus.h>.
Revision 1.17.2.2: download - view: text, markup, annotated - select for diffs
Thu Jun 21 20:03:30 2001 UTC (25 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.17.2.1: preferred, colored
Changes since revision 1.17.2.1: +2053 -0
lines
Catch up to -current.
Revision 1.17.2.1
Tue Jun 12 22:32:51 2001 UTC (25 years, 5 months ago) by nathanw
Branches: nathanw_sa
FILE REMOVED
Changes since revision 1.17: +0 -2052
lines
file wi.c was added on branch nathanw_sa on 2001-06-21 20:03:30 +0000
Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue Jun 12 22:32:51 2001 UTC (25 years, 5 months ago) by thorpej
Branches: MAIN
Branch point for: nathanw_sa
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +1 -10
lines
Don't need INET or NS includes here.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Mon Jun 4 03:34:47 2001 UTC (25 years, 5 months ago) by toshii
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +5 -3
lines
Don't pass nonpositive repeat count to CSR_*_MULTI_2.
Should fix kern/13092.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat Jun 2 15:49:16 2001 UTC (25 years, 5 months ago) by toshii
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +6 -12
lines
Use bus_space_{read,write}_multi_stream_2 where available.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun May 20 13:14:54 2001 UTC (25 years, 6 months ago) by ichiro
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +5 -3
lines
add more comment about firmware of EVAL-CARD.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun May 20 12:57:57 2001 UTC (25 years, 6 months ago) by ichiro
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +9 -9
lines
chenge chip and card identity,
print RF-chipset, Medium Access Controller(MAC) and CARD-identity
Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed May 16 14:33:21 2001 UTC (25 years, 6 months ago) by ichiro
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +5 -1
lines
support BUFFALO AirStation WLI-PCM-S11
this card are PRISM2.5 card.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed May 16 10:45:36 2001 UTC (25 years, 6 months ago) by tsubai
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +129 -118
lines
Big-endian support.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed May 16 07:53:28 2001 UTC (25 years, 6 months ago) by ichiro
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +12 -8
lines
add prism chip identity, Prism2 with SST flush.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed May 16 02:36:37 2001 UTC (25 years, 6 months ago) by ichiro
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +16 -22
lines
cosmetic change.
change version format: <major>.<minor> variant <num>
Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue May 15 11:45:50 2001 UTC (25 years, 6 months ago) by ichiro
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +5 -5
lines
fixed mistake.
major version and minor version were made reverse.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue May 15 09:06:15 2001 UTC (25 years, 6 months ago) by ichiro
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -3
lines
Fix indentation in recent commit.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue May 15 09:01:27 2001 UTC (25 years, 6 months ago) by ichiro
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +26 -12
lines
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 - view: text, markup, annotated - select for diffs
Tue May 15 04:27:22 2001 UTC (25 years, 6 months ago) by ichiro
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +5 -4
lines
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 - view: text, markup, annotated - select for diffs
Tue May 15 04:14:06 2001 UTC (25 years, 6 months ago) by ichiro
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +118 -13
lines
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 - view: text, markup, annotated - select for diffs
Tue May 8 16:42:49 2001 UTC (25 years, 6 months ago) by ichiro
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +31 -10
lines
change promisc mode in case of SIOCSIFFLAGS of wi_ioctl.
Fix indentation.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue May 8 13:42:04 2001 UTC (25 years, 6 months ago) by ichiro
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -2
lines
delay(10) is too much enough for command waiting routine.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun May 6 03:26:39 2001 UTC (25 years, 6 months ago) by ichiro
Branches: 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 .
CVSweb <webmaster@jp.NetBSD.org>