The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.101 / (download) - annotate - [select for diffs], Sun Sep 25 18:43:32 2022 UTC (18 months, 3 weeks ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, 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, HEAD
Changes since 1.100: +2 -3 lines
Diff to previous 1.100 (colored)

Remove unnecessary include of <sys/malloc.h>.

Revision 1.100 / (download) - annotate - [select for diffs], Wed Jan 29 14:09:58 2020 UTC (4 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, 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
Changes since 1.99: +13 -13 lines
Diff to previous 1.99 (colored)

Adopt <net/if_stats.h>.

Revision 1.99 / (download) - annotate - [select for diffs], Thu Dec 5 03:11:40 2019 UTC (4 years, 4 months ago) by msaitoh
Branch: MAIN
CVS Tags: ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.98: +2 -7 lines
Diff to previous 1.98 (colored)

 Remove SIOC[GS]IFMEDIA because ieee80211_ioctl() does the same thing.

Revision 1.98 / (download) - annotate - [select for diffs], Tue May 28 07:41:48 2019 UTC (4 years, 10 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, 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
Changes since 1.97: +9 -4 lines
Diff to previous 1.97 (colored)

 Use ETHER_LOCK()/ETHER_UNLOCK() for all ethernet drivers to protect ec_multi*.

Revision 1.97 / (download) - annotate - [select for diffs], Thu May 23 10:57:28 2019 UTC (4 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.96: +3 -3 lines
Diff to previous 1.96 (colored)

-No functional change:
  - KNF
  - u_int*_t -> uint*_t.

Revision 1.96 / (download) - annotate - [select for diffs], Fri Apr 26 06:33:33 2019 UTC (4 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.95: +82 -85 lines
Diff to previous 1.95 (colored)

No functional change:
- u_int_{8,16,32}_t -> uint_{8,16,32}_t
- KNF.
- Tabify.
- Remove extra space.

Revision 1.95 / (download) - annotate - [select for diffs], Tue Feb 5 06:17:02 2019 UTC (5 years, 2 months ago) by msaitoh
Branch: MAIN
CVS Tags: isaki-audio2-base, isaki-audio2
Changes since 1.94: +3 -7 lines
Diff to previous 1.94 (colored)

 Remove very old IFF_NOTRAILERS flag.

Revision 1.94 / (download) - annotate - [select for diffs], Tue Jun 26 06:48:00 2018 UTC (5 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi
Changes since 1.93: +4 -4 lines
Diff to previous 1.93 (colored)

 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.93 / (download) - annotate - [select for diffs], Sat Jun 23 06:40:43 2018 UTC (5 years, 9 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-0625
Changes since 1.92: +4 -4 lines
Diff to previous 1.92 (colored)

constify

Revision 1.92 / (download) - annotate - [select for diffs], Tue May 23 02:19:14 2017 UTC (6 years, 10 months ago) by ozaki-r
Branch: 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, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek
Branch point for: pgoyette-compat
Changes since 1.91: +3 -3 lines
Diff to previous 1.91 (colored)

Apply deferred if_start to more drivers

And annotate some XXX_start as it runs in softint to clarify that
it doesn't need deferred if_start.

Revision 1.91 / (download) - annotate - [select for diffs], Thu Feb 2 10:05:35 2017 UTC (7 years, 2 months ago) by nonaka
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, nick-nhusb-base-20170204, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Changes since 1.90: +34 -15 lines
Diff to previous 1.90 (colored)

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.90 / (download) - annotate - [select for diffs], Fri Jun 10 13:27:13 2016 UTC (7 years, 10 months ago) by ozaki-r
Branch: 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
Changes since 1.89: +3 -3 lines
Diff to previous 1.89 (colored)

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.89 / (download) - annotate - [select for diffs], Thu May 26 05:01:12 2016 UTC (7 years, 10 months ago) by ozaki-r
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529
Changes since 1.88: +3 -3 lines
Diff to previous 1.88 (colored)

Use M_GETCTX

No functional change.

Revision 1.88 / (download) - annotate - [select for diffs], Sat Oct 27 17:18:19 2012 UTC (11 years, 5 months ago) by chs
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, 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, khorben-n900, agc-symver-base, agc-symver
Branch point for: nick-nhusb
Changes since 1.87: +16 -16 lines
Diff to previous 1.87 (colored)

split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.

Revision 1.87 / (download) - annotate - [select for diffs], Mon Apr 5 07:19:33 2010 UTC (14 years ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, rmind-uvmplock-nbase, rmind-uvmplock-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-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, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, 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, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, tls-maxphys
Changes since 1.86: +4 -6 lines
Diff to previous 1.86 (colored)

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

Revision 1.86 / (download) - annotate - [select for diffs], Tue Jan 19 22:06:24 2010 UTC (14 years, 3 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.85: +4 -11 lines
Diff to previous 1.85 (colored)

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

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

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

Revision 1.85 / (download) - annotate - [select for diffs], Thu Nov 12 19:32:14 2009 UTC (14 years, 5 months ago) by dyoung
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.84: +21 -28 lines
Diff to previous 1.84 (colored)

Simplify activation hook.  Replace each use of sc_invalid by either
calling config_deactivate(9) or device_is_active(9).

Revision 1.84 / (download) - annotate - [select for diffs], Tue Sep 15 18:37:02 2009 UTC (14 years, 7 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, jym-xensuspend-nbase
Changes since 1.83: +3 -3 lines
Diff to previous 1.83 (colored)

To ease a future device_t/softc split, se device_private() instead
of casting device_t to softc.

Revision 1.83 / (download) - annotate - [select for diffs], Tue Sep 15 18:32:00 2009 UTC (14 years, 7 months ago) by dyoung
Branch: MAIN
Changes since 1.82: +2 -85 lines
Diff to previous 1.82 (colored)

unifdef -D__NetBSD__ -U__FreeBSD__.

No functional change intended.

Revision 1.82 / (download) - annotate - [select for diffs], Tue May 12 14:25:17 2009 UTC (14 years, 11 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, jymxensuspend-base, jym-xensuspend-base
Changes since 1.81: +3 -3 lines
Diff to previous 1.81 (colored)

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

Revision 1.81 / (download) - annotate - [select for diffs], Fri Nov 7 00:20:02 2008 UTC (15 years, 5 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: jym-xensuspend
Changes since 1.80: +4 -2 lines
Diff to previous 1.80 (colored)

*** Summary ***

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

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

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

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

Return consistent, appropriate error codes from network drivers.

Improve readability.  KNF.

*** Details ***

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Let ifioctl_common() handle SIOCGIFADDR.

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

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

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

Revision 1.80 / (download) - annotate - [select for diffs], Fri May 16 22:11:51 2008 UTC (15 years, 11 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, 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
Changes since 1.79: +2 -25 lines
Diff to previous 1.79 (colored)

Remove some #ifdef __FreeBSD__ code.

Revision 1.79 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:49 2008 UTC (15 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: yamt-nfs-mp-base2
Branch point for: wrstuden-revivesa
Changes since 1.78: +2 -9 lines
Diff to previous 1.78 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.78 / (download) - annotate - [select for diffs], Tue Apr 8 12:07:25 2008 UTC (16 years ago) by cegger
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base
Branch point for: yamt-pf42, yamt-nfs-mp
Changes since 1.77: +3 -3 lines
Diff to previous 1.77 (colored)

use aprint_*_dev and device_xname

Revision 1.77 / (download) - annotate - [select for diffs], Fri Oct 19 11:59:48 2007 UTC (16 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, mjf-devfs, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, jmcneill-base, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, ad-socklock-base1
Branch point for: mjf-devfs2
Changes since 1.76: +4 -4 lines
Diff to previous 1.76 (colored)

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

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

Change a bazillion occurrences of code resembling this,

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

	if (error == ENETRESET) {

to this,

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

which does the same thing.

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

Use ifreq_getaddr() twice in es(4).

Whitespace nits.

Revision 1.75 / (download) - annotate - [select for diffs], Sun Aug 26 22:45:55 2007 UTC (16 years, 7 months ago) by dyoung
Branch: MAIN
Branch point for: matt-armv6
Changes since 1.74: +4 -4 lines
Diff to previous 1.74 (colored)

Constify: LLADDR -> CLLADDR.  I'm aiming here to make it easier to
identify sockaddr_dl abuse that remains in the kernel, especially
the potential for overwriting memory past the end of a sockaddr_dl
with, e.g., memcpy(LLADDR(), ...).

Revision 1.74 / (download) - annotate - [select for diffs], Sun Mar 4 06:01:51 2007 UTC (17 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, nick-csl-alignment-base, mjf-ufs-trans-base, mjf-ufs-trans, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: vmlocking, nick-csl-alignment, jmcneill-pm
Changes since 1.73: +9 -9 lines
Diff to previous 1.73 (colored)

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

Revision 1.73 / (download) - annotate - [select for diffs], Wed Oct 4 15:36:23 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, post-newlock2-merge, newlock2-nbase, newlock2-base, 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, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.72: +4 -3 lines
Diff to previous 1.72 (colored)

prevent empty body in if.

Revision 1.72 / (download) - annotate - [select for diffs], Sun Sep 24 03:53:08 2006 UTC (17 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.71: +4 -3 lines
Diff to previous 1.71 (colored)

Add "name" parameter to powerhook_establish, to aid debugging. No objections
on tech-kern@

Revision 1.71 / (download) - annotate - [select for diffs], Mon Aug 28 00:03:15 2006 UTC (17 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored)

add missing initializer

Revision 1.70 / (download) - annotate - [select for diffs], Fri Apr 14 20:33:57 2006 UTC (18 years ago) by christos
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored)

Coverity CID 726: Remove bogus test. ni was checked for not NULL lines above,
and the if condition tries to free ni!

Revision 1.69 / (download) - annotate - [select for diffs], Sun Dec 11 12:21:26 2005 UTC (18 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Changes since 1.68: +2 -2 lines
Diff to previous 1.68 (colored)

merge ktrace-lwp.

Revision 1.68 / (download) - annotate - [select for diffs], Wed Jun 22 06:15:51 2005 UTC (18 years, 10 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Changes since 1.67: +66 -53 lines
Diff to previous 1.67 (colored)

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

Revision 1.67 / (download) - annotate - [select for diffs], Sun Feb 27 00:27:00 2005 UTC (19 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, kent-audio2-base
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored)

nuke trailing whitespace

Revision 1.66 / (download) - annotate - [select for diffs], Sat Oct 30 18:08:36 2004 UTC (19 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.65: +3 -3 lines
Diff to previous 1.65 (colored)

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

Fixes kern/27678.

Revision 1.65 / (download) - annotate - [select for diffs], Tue Aug 10 00:57:20 2004 UTC (19 years, 8 months ago) by dyoung
Branch: MAIN
Changes since 1.64: +6 -20 lines
Diff to previous 1.64 (colored)

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

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

Revision 1.64 / (download) - annotate - [select for diffs], Fri Jul 23 10:15:13 2004 UTC (19 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.63: +4 -4 lines
Diff to previous 1.63 (colored)

Cleanup of ieee80211_node from madwifi:
* Don't use ifp pointers; use ieee80211com.
* Implement the locking macros that are used under FreeBSD and Linux.

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

IEEE80211_F_WEPON -> IEEE80211_F_PRIVACY

Revision 1.62 / (download) - annotate - [select for diffs], Fri Jan 16 14:13:15 2004 UTC (20 years, 3 months ago) by onoe
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-0-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, netbsd-2-0
Branch point for: netbsd-2
Changes since 1.61: +7 -4 lines
Diff to previous 1.61 (colored)

Do not return EINPROGRESS but 0 in awi_newstate, since the EINPROGRESS
handling was changed in net80211 framework.
This fix wiconfig -D awi0 to work again for DS phys.
XXX FH phys takes 20 seconds to complete scan, so wiconfig timed out.

Revision 1.61 / (download) - annotate - [select for diffs], Thu Jan 15 13:29:05 2004 UTC (20 years, 3 months ago) by onoe
Branch: MAIN
Changes since 1.60: +31 -8 lines
Diff to previous 1.60 (colored)

Correct beacon (src/bssid) for hostap and adhoc mode.

Revision 1.60 / (download) - annotate - [select for diffs], Thu Jan 15 09:39:15 2004 UTC (20 years, 3 months ago) by onoe
Branch: MAIN
Changes since 1.59: +182 -54 lines
Diff to previous 1.59 (colored)

Fix: panic when rate is specified but chan is left unspecified.
Add FreeBSD glues to share drivers.

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

netbsd.org -> NetBSD.org

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

Revision 1.58 / (download) - annotate - [select for diffs], Sun Nov 2 11:07:45 2003 UTC (20 years, 5 months ago) by wiz
Branch: MAIN
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored)

Fix some typos. From Tom Cosgrove via jmc@openbsd.

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

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

Revision 1.56 / (download) - annotate - [select for diffs], Thu Oct 30 01:58:17 2003 UTC (20 years, 5 months ago) by simonb
Branch: MAIN
Changes since 1.55: +4 -4 lines
Diff to previous 1.55 (colored)

Remove some assigned-to but otherwise unused variables.

Revision 1.55 / (download) - annotate - [select for diffs], Wed Oct 15 07:18:17 2003 UTC (20 years, 6 months ago) by simonb
Branch: MAIN
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored)

Re-order a little so that there's no unreachable code in this block.

Revision 1.54 / (download) - annotate - [select for diffs], Mon Oct 13 08:10:48 2003 UTC (20 years, 6 months ago) by dyoung
Branch: MAIN
Changes since 1.53: +171 -123 lines
Diff to previous 1.53 (colored)

Adapt awi(4) to the new 802.11 layer.

Revision 1.53 / (download) - annotate - [select for diffs], Sun Jul 6 20:01:17 2003 UTC (20 years, 9 months ago) by dyoung
Branch: MAIN
Changes since 1.52: +19 -28 lines
Diff to previous 1.52 (colored)

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

Revision 1.52 / (download) - annotate - [select for diffs], Tue Feb 25 01:57:35 2003 UTC (21 years, 1 month ago) by dyoung
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.51: +6 -2 lines
Diff to previous 1.51 (colored)

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

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

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

Tested by Kevin, Daniel Carosone, and I.

Revision 1.51 / (download) - annotate - [select for diffs], Sat Jan 18 10:14:20 2003 UTC (21 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored)

Merge the nathanw_sa branch.

Revision 1.50 / (download) - annotate - [select for diffs], Tue Oct 1 03:27:04 2002 UTC (21 years, 6 months ago) by onoe
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.49: +3 -2 lines
Diff to previous 1.49 (colored)

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

Revision 1.49 / (download) - annotate - [select for diffs], Mon Sep 30 15:48:46 2002 UTC (21 years, 6 months ago) by onoe
Branch: MAIN
Changes since 1.48: +72 -73 lines
Diff to previous 1.48 (colored)

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

Revision 1.48 / (download) - annotate - [select for diffs], Mon Sep 30 06:38:10 2002 UTC (21 years, 6 months ago) by onoe
Branch: MAIN
Changes since 1.47: +5 -4 lines
Diff to previous 1.47 (colored)

re-enable IBSS creation.

Revision 1.47 / (download) - annotate - [select for diffs], Fri Sep 27 05:36:06 2002 UTC (21 years, 6 months ago) by onoe
Branch: MAIN
Changes since 1.46: +134 -128 lines
Diff to previous 1.46 (colored)

Add support for SIOC[SG]80211BSSID, SIOC[SG]80211CHANNEL.
Change the name of structure ieee80211_bss to ieee80211_node, which is
used for management of stations in hostap mode, and peers in ibss mode.
Split off ic_opmode, ic_phytype from ic_flags.
Preparation to merge 'wi' driver into 80211subr.c.

Revision 1.46 / (download) - annotate - [select for diffs], Tue Sep 3 14:54:00 2002 UTC (21 years, 7 months ago) by onoe
Branch: MAIN
Changes since 1.45: +36 -14 lines
Diff to previous 1.45 (colored)

Several fixes hostap for awi driver:
- aging ang clear inactivity stations
- DTIM field in beacon/probe response.
- ignore IFF_PROMISC for hostap mode, since 802.11 has 3 address fields,
  so that promisc mode is not required for AP function.

Revision 1.45 / (download) - annotate - [select for diffs], Mon Sep 2 13:37:35 2002 UTC (21 years, 7 months ago) by onoe
Branch: MAIN
Changes since 1.44: +91 -125 lines
Diff to previous 1.44 (colored)

Add experimental support of Host-AP mode for awi driver.
It works also with WEP enabled.
But aging the associated clients is not implemented yet, so that the number
of clients may increase unlimitedly..

Revision 1.44 / (download) - annotate - [select for diffs], Wed Aug 28 09:38:10 2002 UTC (21 years, 7 months ago) by onoe
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.43: +6 -2 lines
Diff to previous 1.43 (colored)

Attach another DLTs for bpf: DLT_IEEE802_11 to capture raw 802.11 frame.

Revision 1.43 / (download) - annotate - [select for diffs], Mon Aug 5 06:55:07 2002 UTC (21 years, 8 months ago) by onoe
Branch: MAIN
Changes since 1.42: +44 -22 lines
Diff to previous 1.42 (colored)

Fix IBSS for awi driver.

Revision 1.42 / (download) - annotate - [select for diffs], Thu Jul 25 07:15:50 2002 UTC (21 years, 8 months ago) by onoe
Branch: MAIN
Changes since 1.41: +7 -2 lines
Diff to previous 1.41 (colored)

Set desired ESSID for probe request.

Revision 1.41 / (download) - annotate - [select for diffs], Tue Nov 13 13:14:35 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
CVS Tags: newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, ifpoll-base, eeh-devprop-base, eeh-devprop
Branch point for: gehenna-devsw
Changes since 1.40: +4 -1 lines
Diff to previous 1.40 (colored)

add/cleanup RCSID

Revision 1.40 / (download) - annotate - [select for diffs], Thu Sep 20 13:54:44 2001 UTC (22 years, 7 months ago) by onoe
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2
Changes since 1.39: +8 -38 lines
Diff to previous 1.39 (colored)

Move IBSS creation stuff from awi to ieee80211.

Revision 1.39 / (download) - annotate - [select for diffs], Wed Sep 19 04:09:54 2001 UTC (22 years, 7 months ago) by onoe
Branch: MAIN
Changes since 1.38: +35 -21 lines
Diff to previous 1.38 (colored)

Fix for FH infrastructure mode.
XXX: FH chanset should be calculated by FH hop pattern, but BayStack 650 AP
     always specify chanset to fixed value 1.  The previous code try to this
     hack into awi driver, but it is insufficient because the chanset value
     in awi driver may change while scan and it may be different from the
     value in receiving beacon/probe-response.  So we save encoded FH chanset
     into channel in 802.11 common bss information for now.

Revision 1.38 / (download) - annotate - [select for diffs], Tue Sep 18 23:19:08 2001 UTC (22 years, 7 months ago) by onoe
Branch: MAIN
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored)

Fix register offset of SYNC_SET for FH phy.

Revision 1.37 / (download) - annotate - [select for diffs], Tue Sep 18 09:09:58 2001 UTC (22 years, 7 months ago) by onoe
Branch: MAIN
Changes since 1.36: +1165 -1999 lines
Diff to previous 1.36 (colored)

Move IEEE 802.11 MAC management functions from awi driver to
if_ieee80211subr.c, which can be shared between any IEEE 802.11
drivers.
However, most of current working IEEE 802.11b wireless LAN cards
have rich firmware and we cannot have a control to management frames
for such cards.

IBSS creation is now supported for the awi driver.

Revision 1.36 / (download) - annotate - [select for diffs], Thu Jul 26 22:55:14 2001 UTC (22 years, 8 months ago) by wiz
Branch: MAIN
CVS Tags: thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

issueing -> issuing

Revision 1.35 / (download) - annotate - [select for diffs], Thu Jun 28 10:40:04 2001 UTC (22 years, 9 months ago) by onoe
Branch: MAIN
Branch point for: kqueue
Changes since 1.34: +41 -39 lines
Diff to previous 1.34 (colored)

Do not re-enable the driver after resume if the interface is marked down.
Change the first argument of awi_init/awi_stop from struct awi_softc to
struct ifnet to match the definition if_init/if_stop, though we don't
use ether_ioctl() yet.

Revision 1.34 / (download) - annotate - [select for diffs], Tue Jun 26 08:41:19 2001 UTC (22 years, 9 months ago) by onoe
Branch: MAIN
Changes since 1.33: +11 -12 lines
Diff to previous 1.33 (colored)

restore awi_power() to reenable awi after resume.
... forgot why it is disabled...

Revision 1.33 / (download) - annotate - [select for diffs], Mon Jun 25 12:09:51 2001 UTC (22 years, 9 months ago) by onoe
Branch: MAIN
Changes since 1.32: +9 -5 lines
Diff to previous 1.32 (colored)

AWI_DEBUG only:
awi_dump_pkt dumps packet before encryption in transmit.

Revision 1.32 / (download) - annotate - [select for diffs], Mon Jun 25 12:06:14 2001 UTC (22 years, 9 months ago) by onoe
Branch: MAIN
Changes since 1.31: +10 -6 lines
Diff to previous 1.31 (colored)

Fix capability information in association request to reflect ESS/IBSS mode.
This fix is required to interoperate with Cisco's access point.

Revision 1.31 / (download) - annotate - [select for diffs], Mon Jun 25 04:29:19 2001 UTC (22 years, 9 months ago) by onoe
Branch: MAIN
Changes since 1.30: +1 -5 lines
Diff to previous 1.30 (colored)

cleanup unnecessary include files.

Revision 1.30 / (download) - annotate - [select for diffs], Mon Dec 18 23:57:13 2000 UTC (23 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.29: +1 -2 lines
Diff to previous 1.29 (colored)

Remove an IF_PREPEND() that slipped through.

Revision 1.29 / (download) - annotate - [select for diffs], Thu Dec 14 06:27:24 2000 UTC (23 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.28: +8 -17 lines
Diff to previous 1.28 (colored)

ALTQ'ify.

Revision 1.28 / (download) - annotate - [select for diffs], Sun Nov 26 11:08:57 2000 UTC (23 years, 4 months ago) by takemura
Branch: MAIN
Changes since 1.27: +14 -6 lines
Diff to previous 1.27 (colored)

Add new powerhook argument values, PWR_SOFTSUSPEND, PWR_SOFTSTANDBY and
PWR_SOFTRESUME. Apm calls powerhook with the values in normal interrupt
priority level while others are protected with splhigh().

Revision 1.27 / (download) - annotate - [select for diffs], Wed Nov 15 01:02:15 2000 UTC (23 years, 5 months ago) by thorpej
Branch: MAIN
Branch point for: thorpej_scsipi
Changes since 1.26: +1 -7 lines
Diff to previous 1.26 (colored)

Move bpfattach()/bpfdetach() calls into ether_ifattach()/ether_ifdetach().

Revision 1.26 / (download) - annotate - [select for diffs], Fri Jul 21 04:48:55 2000 UTC (23 years, 9 months ago) by onoe
Branch: MAIN
Changes since 1.25: +6 -0 lines
Diff to previous 1.25 (colored)

add support for SIOCS80211NWKEY and SIOCG80211NWKEY.

Revision 1.25 / (download) - annotate - [select for diffs], Wed Jul 19 06:00:40 2000 UTC (23 years, 9 months ago) by onoe
Branch: MAIN
Changes since 1.24: +1 -8 lines
Diff to previous 1.24 (colored)

moved the check priviledge for SIOCS80211NWID from each driver to ifioctl().
it also fixes the problem that non-priviledged user can change nwid
for wi and ray drivers.

Revision 1.24 / (download) - annotate - [select for diffs], Tue Jul 11 12:54:00 2000 UTC (23 years, 9 months ago) by onoe
Branch: MAIN
Changes since 1.23: +8 -2 lines
Diff to previous 1.23 (colored)

Indicate WEP capability to association request when WEP is enabled.
Without this fix, some (IEEE802.11 conformant) APs will send data to this
station without using WEP.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Jul 10 14:36:17 2000 UTC (23 years, 9 months ago) by onoe
Branch: MAIN
Changes since 1.22: +8 -1 lines
Diff to previous 1.22 (colored)

do not allow non-priviledged user to change nwid via ifconfig.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Jul 10 12:32:53 2000 UTC (23 years, 9 months ago) by onoe
Branch: MAIN
Changes since 1.21: +30 -23 lines
Diff to previous 1.21 (colored)

move associated/synced/no-recent-beacons messages to IFF_DEBUG.

Revision 1.21 / (download) - annotate - [select for diffs], Wed Jul 5 02:35:54 2000 UTC (23 years, 9 months ago) by onoe
Branch: MAIN
Changes since 1.20: +11 -12 lines
Diff to previous 1.20 (colored)

change the argument of SIOCS80211NWID and SIOCG80211NWID ioctls from
u_int8_t array to struct ieee80211_nwid to prepend length field.
The length field is necessary because IEEE 802.11 spec doesn't prohibit
even '\0' for SSID.
Though the name and the value of SIOC... macro is unchanged, this change
breaks binary compatibility.  The only affected userland program on the
tree is ifconfig(8).
As Jason suggested on tech-net, it is better than live with problems
since there are no releases for this ioctls yet.

Revision 1.20 / (download) - annotate - [select for diffs], Tue Jul 4 14:27:57 2000 UTC (23 years, 9 months ago) by onoe
Branch: MAIN
Changes since 1.19: +247 -83 lines
Diff to previous 1.19 (colored)

Support WEP functions for awi driver.
	arc4 implementation by Kalle Kaukonen has been added.
	define "wlan" in files.
		XXX: only awi depends on wlan for now.
	Allow authentication for adhoc (IBSS) mode.
Disable adhoc mode without bssid (mediaopt adhoc,flag0) for FH radio.
	FH cannot work without synchronization by beacons.
Align IP header for ethernet encapsulation (IFF_FLAG0) mode.
Print available access points for IFF_DEBUG.

Revision 1.19 / (download) - annotate - [select for diffs], Fri Jun 9 14:36:25 2000 UTC (23 years, 10 months ago) by onoe
Branch: MAIN
CVS Tags: netbsd-1-5-base
Branch point for: netbsd-1-5
Changes since 1.18: +44 -8 lines
Diff to previous 1.18 (colored)

Restore the original copyright notice by Bill Sommerfeld
<sommerfeld@netbsd.org> since it is based on the original code.

Revision 1.18 / (download) - annotate - [select for diffs], Fri Jun 9 05:31:15 2000 UTC (23 years, 10 months ago) by onoe
Branch: MAIN
Changes since 1.17: +85 -263 lines
Diff to previous 1.17 (colored)

cleanup haeders.
add opt_awi.h to define AWI_DEBUG, AWI_WEP_ARC4.
show the firmware version at attach.
create a framework to support WEP (encryption code is not included for now).
a new wiconfig compatible ioctl interface replaced the awictl interface.
fix memory leak in selecting AP
fix bugs in ESSID selection
changes from FreeBSD-current by Warner Losh:
  revision 1.2
  date: 2000/04/17 22:58:15;  author: imp;  state: Exp;  lines: +16 -1
  Provide mem* for compat with NetBSD to fix LINT
fixes from FreeBSD-current by Guido van Rooij:
  revision 1.4
  date: 2000/05/29 19:58:10;  author: guido;  state: Exp;  lines: +5 -2
  Fix a panic resulting from an obvious null pointer deref.
  Apparently some other panics still exist in this driver, but with
  this fix, it was at least possible to run the Nokia card at SANE 2000.

Revision 1.17 / (download) - annotate - [select for diffs], Mon May 29 17:37:12 2000 UTC (23 years, 10 months ago) by jhawk
Branch: MAIN
Changes since 1.16: +8 -1 lines
Diff to previous 1.16 (colored)

For all network drivers that call ether_ifattach(), and also
have _detach() functions:
  Ensure that softc keeps state about whether the attach succeeded,
  and make the detach function return immediately if the attach did
  not complete.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Mar 27 12:58:01 2000 UTC (24 years ago) by onoe
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.15: +4 -2 lines
Diff to previous 1.15 (colored)

Fix multicast filter to set IFF_ALLMULTI flag properly.  Also clear
unused group address from filter.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Mar 27 12:54:59 2000 UTC (24 years ago) by onoe
Branch: MAIN
Changes since 1.14: +4 -2 lines
Diff to previous 1.14 (colored)

Do not try to lock out MAC until the firmware correctly start up, to avoid
"awi: failed to lock interrupt" message when IRQ are shared with other
devices [PR kern/9660]

Revision 1.14 / (download) - annotate - [select for diffs], Mon Mar 27 12:52:45 2000 UTC (24 years ago) by onoe
Branch: MAIN
Changes since 1.13: +74 -11 lines
Diff to previous 1.13 (colored)

backout changes between 1.10 and 1.12 to re-enable awictl stuff.
Actually, it is partially duplicated with SIOC[GS]IFMEDIA and
SIOC[GS]80211NWID ioctls currently supported.  But I'd like to leave it
until configuration interface for common 802.11 stuff will be cleaned up.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Mar 26 10:09:33 2000 UTC (24 years ago) by itojun
Branch: MAIN
Changes since 1.12: +3 -2 lines
Diff to previous 1.12 (colored)

don't call if_deactivate with NULL ifp.
sc->sc_ifp can be NULL if awi_pcmcia_attach() fails, so you will see panic
if you remove a card which fails on attach.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Mar 23 05:26:00 2000 UTC (24 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.11: +1 -2 lines
Diff to previous 1.11 (colored)

GC unused variable.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Mar 23 05:19:44 2000 UTC (24 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.10: +11 -66 lines
Diff to previous 1.10 (colored)

Remove AWICTL stuff that is obsoleted by SIOC[SG]IFMEDIA and SIOC[SG]80211NWID.
Also, disable AWICTL completely until awictl.h appears.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Mar 22 11:22:22 2000 UTC (24 years, 1 month ago) by onoe
Branch: MAIN
Changes since 1.9: +2356 -2204 lines
Diff to previous 1.9 (colored)

Update awi driver, which now supports AMD 79c930 based 802.11 DS cards
as well as 802.11 FH cards.  Also, it can operate in infrastructure mode,
adhoc mode, and wi(4) (aka WaveLAN/IEEE) compatible adhoc mode.

Revision 1.9 / (download) - annotate - [select for diffs], Thu Feb 17 15:58:33 2000 UTC (24 years, 2 months ago) by sommerfeld
Branch: MAIN
Changes since 1.8: +27 -35 lines
Diff to previous 1.8 (colored)

Add detach support.
Light cleanup.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Nov 9 14:58:07 1999 UTC (24 years, 5 months ago) by sommerfeld
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, fvdl-softdep-base, chs-ubc2-newbase
Branch point for: wrstuden-devbsize, fvdl-softdep
Changes since 1.7: +215 -116 lines
Diff to previous 1.7 (colored)

Completely rewrite receive processing to avoid sleep-deprivation-induced
brain damage and infinite loops, and lousy RTTs

Also, flush tx queues when reassociating with AP and when taking the
interface down.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Nov 8 15:56:16 1999 UTC (24 years, 5 months ago) by sommerfeld
Branch: MAIN
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored)

avoid touching freed mbuf after allocation failure.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Nov 8 15:45:00 1999 UTC (24 years, 5 months ago) by sommerfeld
Branch: MAIN
Changes since 1.5: +62 -15 lines
Diff to previous 1.5 (colored)

add a bunch of debug printfs under IFF_DEBUG and IFF_LINK2;
turn on IFF_DEBUG to trace the management protocol goo.
turn on IFF_LINK2 as well to see beacons.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Nov 8 13:24:00 1999 UTC (24 years, 5 months ago) by sommerfeld
Branch: MAIN
Changes since 1.4: +19 -12 lines
Diff to previous 1.4 (colored)

misc cleanups; seems to work a little better in a dense-AP environment now.
 1) ignore probe requests rather than printing "unknown mgmt subtype"
	(cosmetic)
 2) don't panic if mget of the 2nd mbuf in a chain fails (patch from MCR)
	(though that whole function badly needs to be rewritten)
 3) be a little more tenacious about hanging on to an access point.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Nov 6 16:43:53 1999 UTC (24 years, 5 months ago) by sommerfeld
Branch: MAIN
CVS Tags: comdex-fall-1999-base
Branch point for: comdex-fall-1999
Changes since 1.3: +26 -46 lines
Diff to previous 1.3 (colored)

Extract MAC address from CIS data in pcmcia front end.
Fix multicast address manipulation.
ipv6 now works through this driver.

Revision 1.3 / (download) - annotate - [select for diffs], Fri Nov 5 05:13:36 1999 UTC (24 years, 5 months ago) by sommerfeld
Branch: MAIN
Changes since 1.2: +2 -0 lines
Diff to previous 1.2 (colored)

Add rcsid's

Revision 1.2 / (download) - annotate - [select for diffs], Thu Nov 4 18:43:42 1999 UTC (24 years, 5 months ago) by sommerfeld
Branch: MAIN
Changes since 1.1: +13 -1 lines
Diff to previous 1.1 (colored)

Conditionalize so this builds on 1.4.x..

Revision 1.1 / (download) - annotate - [select for diffs], Thu Nov 4 17:10:53 1999 UTC (24 years, 5 months ago) by sommerfeld
Branch: MAIN

Minimally functional driver for the am79c930 802.11 controller chip).
Working well enough to support dhcp; i'm doing this commit using the
interface.

Supports FH only.  Does not yet do ad-hoc mode; works in
infrastructure mode.  Not yet tested in environments with multiple
access points.

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




CVSweb <webmaster@jp.NetBSD.org>