Home | History | Annotate | Download | only in ic
History log of /src/sys/dev/ic/awi.c
RevisionDateAuthorComments
 1.104  09-Jul-2025  andvar Fix typos in comments:
s/mulicast/multicast/
s/muticast/multicast/
s/muliplicator/multiplicator/
s/muti-precision/multi-precision/
 1.103  30-Dec-2024  christos convert to pmf. reviewed by riastradh@
 1.102  05-Jul-2024  rin sys: Drop redundant NULL check before m_freem(9)

m_freem(9) safely has accepted NULL argument at least since 4.2BSD:
https://www.tuhs.org/cgi-bin/utree.pl?file=4.2BSD/usr/src/sys/sys/uipc_mbuf.c

Compile-tested on amd64/ALL.

Suggested by knakahara@
 1.101  25-Sep-2022  thorpej Remove unnecessary include of <sys/malloc.h>.
 1.100  29-Jan-2020  thorpej Adopt <net/if_stats.h>.
 1.99  05-Dec-2019  msaitoh branches: 1.99.2;
Remove SIOC[GS]IFMEDIA because ieee80211_ioctl() does the same thing.
 1.98  28-May-2019  msaitoh Use ETHER_LOCK()/ETHER_UNLOCK() for all ethernet drivers to protect ec_multi*.
 1.97  23-May-2019  msaitoh -No functional change:
- KNF
- u_int*_t -> uint*_t.
 1.96  26-Apr-2019  msaitoh No functional change:
- u_int_{8,16,32}_t -> uint_{8,16,32}_t
- KNF.
- Tabify.
- Remove extra space.
 1.95  05-Feb-2019  msaitoh Remove very old IFF_NOTRAILERS flag.
 1.94  26-Jun-2018  msaitoh branches: 1.94.2;
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.
 1.93  23-Jun-2018  maxv constify
 1.92  23-May-2017  ozaki-r branches: 1.92.8;
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.
 1.91  02-Feb-2017  nonaka 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
 1.90  10-Jun-2016  ozaki-r branches: 1.90.2; 1.90.4;
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.
 1.89  26-May-2016  ozaki-r Use M_GETCTX

No functional change.
 1.88  27-Oct-2012  chs branches: 1.88.14;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.87  05-Apr-2010  joerg branches: 1.87.8; 1.87.18;
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.
 1.86  19-Jan-2010  pooka branches: 1.86.2; 1.86.4;
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.
 1.85  12-Nov-2009  dyoung Simplify activation hook. Replace each use of sc_invalid by either
calling config_deactivate(9) or device_is_active(9).
 1.84  15-Sep-2009  dyoung To ease a future device_t/softc split, se device_private() instead
of casting device_t to softc.
 1.83  15-Sep-2009  dyoung unifdef -D__NetBSD__ -U__FreeBSD__.

No functional change intended.
 1.82  12-May-2009  cegger struct device * -> device_t, no functional changes intended.
 1.81  07-Nov-2008  dyoung branches: 1.81.4;
*** 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.
 1.80  16-May-2008  dyoung branches: 1.80.4; 1.80.6;
Remove some #ifdef __FreeBSD__ code.
 1.79  28-Apr-2008  martin branches: 1.79.2;
Remove clause 3 and 4 from TNF licenses
 1.78  08-Apr-2008  cegger branches: 1.78.2; 1.78.4;
use aprint_*_dev and device_xname
 1.77  19-Oct-2007  ad branches: 1.77.16;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.76  01-Sep-2007  dyoung branches: 1.76.4;
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.
 1.75  26-Aug-2007  dyoung branches: 1.75.2;
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(), ...).
 1.74  04-Mar-2007  christos branches: 1.74.2; 1.74.10; 1.74.14;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.73  04-Oct-2006  christos branches: 1.73.4;
prevent empty body in if.
 1.72  24-Sep-2006  jmcneill Add "name" parameter to powerhook_establish, to aid debugging. No objections
on tech-kern@
 1.71  28-Aug-2006  christos branches: 1.71.2; 1.71.4;
add missing initializer
 1.70  14-Apr-2006  christos Coverity CID 726: Remove bogus test. ni was checked for not NULL lines above,
and the if condition tries to free ni!
 1.69  11-Dec-2005  christos branches: 1.69.4; 1.69.6; 1.69.8; 1.69.10; 1.69.12;
merge ktrace-lwp.
 1.68  22-Jun-2005  dyoung branches: 1.68.2;
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.
 1.67  27-Feb-2005  perry nuke trailing whitespace
 1.66  30-Oct-2004  thorpej branches: 1.66.4; 1.66.6;
When adding/deleting multicast addresses, only whack the address
filter if the interface is marked RUNNING.

Fixes kern/27678.
 1.65  10-Aug-2004  dyoung 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.
 1.64  23-Jul-2004  mycroft Cleanup of ieee80211_node from madwifi:
* Don't use ifp pointers; use ieee80211com.
* Implement the locking macros that are used under FreeBSD and Linux.
 1.63  23-Jul-2004  mycroft IEEE80211_F_WEPON -> IEEE80211_F_PRIVACY
 1.62  16-Jan-2004  onoe branches: 1.62.4;
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.
 1.61  15-Jan-2004  onoe Correct beacon (src/bssid) for hostap and adhoc mode.
 1.60  15-Jan-2004  onoe Fix: panic when rate is specified but chan is left unspecified.
Add FreeBSD glues to share drivers.
 1.59  04-Dec-2003  keihan 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.
 1.58  02-Nov-2003  wiz Fix some typos. From Tom Cosgrove via jmc@openbsd.
 1.57  02-Nov-2003  dyoung 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.
 1.56  30-Oct-2003  simonb Remove some assigned-to but otherwise unused variables.
 1.55  15-Oct-2003  simonb Re-order a little so that there's no unreachable code in this block.
 1.54  13-Oct-2003  dyoung Adapt awi(4) to the new 802.11 layer.
 1.53  06-Jul-2003  dyoung 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.
 1.52  25-Feb-2003  dyoung branches: 1.52.2;
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.
 1.51  18-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.50  01-Oct-2002  onoe Allow SIOCSIFADDR with AF_LINK and WI_RID_MAC_NODE (wiconfig -m)
to set MAC address.
 1.49  30-Sep-2002  onoe 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.
 1.48  30-Sep-2002  onoe re-enable IBSS creation.
 1.47  27-Sep-2002  onoe 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.
 1.46  03-Sep-2002  onoe 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.
 1.45  02-Sep-2002  onoe 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..
 1.44  28-Aug-2002  onoe Attach another DLTs for bpf: DLT_IEEE802_11 to capture raw 802.11 frame.
 1.43  05-Aug-2002  onoe Fix IBSS for awi driver.
 1.42  25-Jul-2002  onoe Set desired ESSID for probe request.
 1.41  13-Nov-2001  lukem branches: 1.41.8;
add/cleanup RCSID
 1.40  20-Sep-2001  onoe Move IBSS creation stuff from awi to ieee80211.
 1.39  19-Sep-2001  onoe 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.
 1.38  18-Sep-2001  onoe Fix register offset of SYNC_SET for FH phy.
 1.37  18-Sep-2001  onoe 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.
 1.36  26-Jul-2001  wiz branches: 1.36.2;
issueing -> issuing
 1.35  28-Jun-2001  onoe branches: 1.35.2;
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.
 1.34  26-Jun-2001  onoe restore awi_power() to reenable awi after resume.
... forgot why it is disabled...
 1.33  25-Jun-2001  onoe AWI_DEBUG only:
awi_dump_pkt dumps packet before encryption in transmit.
 1.32  25-Jun-2001  onoe Fix capability information in association request to reflect ESS/IBSS mode.
This fix is required to interoperate with Cisco's access point.
 1.31  25-Jun-2001  onoe cleanup unnecessary include files.
 1.30  18-Dec-2000  thorpej branches: 1.30.2;
Remove an IF_PREPEND() that slipped through.
 1.29  14-Dec-2000  thorpej ALTQ'ify.
 1.28  26-Nov-2000  takemura 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().
 1.27  15-Nov-2000  thorpej branches: 1.27.2;
Move bpfattach()/bpfdetach() calls into ether_ifattach()/ether_ifdetach().
 1.26  21-Jul-2000  onoe add support for SIOCS80211NWKEY and SIOCG80211NWKEY.
 1.25  19-Jul-2000  onoe 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.
 1.24  11-Jul-2000  onoe 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.
 1.23  10-Jul-2000  onoe do not allow non-priviledged user to change nwid via ifconfig.
 1.22  10-Jul-2000  onoe move associated/synced/no-recent-beacons messages to IFF_DEBUG.
 1.21  05-Jul-2000  onoe 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.
 1.20  04-Jul-2000  onoe 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.
 1.19  09-Jun-2000  onoe branches: 1.19.2;
Restore the original copyright notice by Bill Sommerfeld
<sommerfeld@netbsd.org> since it is based on the original code.
 1.18  09-Jun-2000  onoe 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.
 1.17  29-May-2000  jhawk 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.
 1.16  27-Mar-2000  onoe branches: 1.16.2;
Fix multicast filter to set IFF_ALLMULTI flag properly. Also clear
unused group address from filter.
 1.15  27-Mar-2000  onoe 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]
 1.14  27-Mar-2000  onoe 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.
 1.13  26-Mar-2000  itojun 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.
 1.12  23-Mar-2000  mycroft GC unused variable.
 1.11  23-Mar-2000  mycroft Remove AWICTL stuff that is obsoleted by SIOC[SG]IFMEDIA and SIOC[SG]80211NWID.
Also, disable AWICTL completely until awictl.h appears.
 1.10  22-Mar-2000  onoe 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.
 1.9  17-Feb-2000  sommerfeld Add detach support.
Light cleanup.
 1.8  09-Nov-1999  sommerfeld branches: 1.8.2; 1.8.4;
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.
 1.7  08-Nov-1999  sommerfeld avoid touching freed mbuf after allocation failure.
 1.6  08-Nov-1999  sommerfeld 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.
 1.5  08-Nov-1999  sommerfeld 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.
 1.4  06-Nov-1999  sommerfeld branches: 1.4.2;
Extract MAC address from CIS data in pcmcia front end.
Fix multicast address manipulation.
ipv6 now works through this driver.
 1.3  05-Nov-1999  sommerfeld Add rcsid's
 1.2  04-Nov-1999  sommerfeld Conditionalize so this builds on 1.4.x..
 1.1  04-Nov-1999  sommerfeld 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.
 1.4.2.2  06-Nov-1999  sommerfeld Extract MAC address from CIS data in pcmcia front end.
Fix multicast address manipulation.
ipv6 now works through this driver.
 1.4.2.1  06-Nov-1999  sommerfeld file awi.c was added on branch comdex-fall-1999 on 1999-11-06 16:43:54 +0000
 1.8.4.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.8.2.2  15-Nov-1999  fvdl Sync with -current
 1.8.2.1  09-Nov-1999  fvdl file awi.c was added on branch fvdl-softdep on 1999-11-15 00:40:27 +0000
 1.16.2.1  22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.19.2.5  06-May-2001  he Pull up revision 1.28 (requested by he):
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().
 1.19.2.4  21-Jul-2000  onoe Pullup 802.11 stuff (approved by jhawk)
- add support for nwkey to ifconfig
basesrc/sbin/ifconfig/ifconfig.c 1.88
basesrc/sbin/ifconfig/ifconfig.8 1.39
syssrc/sys/dev/ic/awi.c 1.26
syssrc/sys/dev/ic/awi_wep.c 1.3
syssrc/sys/dev/ic/awivar.h 1.12
syssrc/sys/dev/pcmcia/if_wi.c 1.26
syssrc/sys/net/if.c 1.69
syssrc/sys/net/if_ieee80211.h 1.5
 1.19.2.3  21-Jul-2000  onoe Pullup 802.11 stuff (approved by jhawk)
- move debug message to IFF_DEBUG
syssrc/sys/dev/ic/awi.c 1.22
 1.19.2.2  21-Jul-2000  onoe Pullups 802.11 stuff (approved by jhawk)
- allow non-string nwid settings
basesrc/sbin/ifconfig/ifconfig.c 1.82-1.86
basesrc/sbin/ifconfig/ifconfig.8 1.37
syssrc/sys/dev/ic/awi.c 1.21
syssrc/sys/dev/pcmcia/if_ray.c 1.21
syssrc/sys/dev/pcmcia/if_wi.c 1.23
syssrc/sys/dev/pcmcia/if_wivar.h 1.10
syssrc/sys/net/if_ieee80211.h 1.4
 1.19.2.1  14-Jul-2000  onoe Pull up revision 1.20,1.24 (approved by thorpej)
Add WEP support for awi driver.
 1.27.2.5  05-Jan-2001  bouyer Sync with HEAD
 1.27.2.4  08-Dec-2000  bouyer Sync with HEAD.
 1.27.2.3  22-Nov-2000  bouyer Sync with HEAD.
 1.27.2.2  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.27.2.1  15-Nov-2000  bouyer file awi.c was added on branch thorpej_scsipi on 2000-11-20 11:40:22 +0000
 1.30.2.8  18-Oct-2002  nathanw Catch up to -current.
 1.30.2.7  17-Sep-2002  nathanw Catch up to -current.
 1.30.2.6  13-Aug-2002  nathanw Catch up to -current.
 1.30.2.5  01-Aug-2002  nathanw Catch up to -current.
 1.30.2.4  24-Jun-2002  nathanw 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).
 1.30.2.3  14-Nov-2001  nathanw Catch up to -current.
 1.30.2.2  21-Sep-2001  nathanw Catch up to -current.
 1.30.2.1  24-Aug-2001  nathanw Catch up with -current.
 1.35.2.4  10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.35.2.3  06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.35.2.2  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.35.2.1  03-Aug-2001  lukem update to -current
 1.36.2.1  01-Oct-2001  fvdl Catch up with -current.
 1.41.8.1  29-Aug-2002  gehenna catch up with -current.
 1.52.2.7  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.52.2.6  04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.52.2.5  02-Nov-2004  skrll Sync with HEAD.
 1.52.2.4  21-Sep-2004  skrll Fix the sync with head I botched.
 1.52.2.3  18-Sep-2004  skrll Sync with HEAD.
 1.52.2.2  12-Aug-2004  skrll Sync with HEAD.
 1.52.2.1  03-Aug-2004  skrll Sync with HEAD
 1.62.4.1  24-Jan-2005  he Pull up revision 1.66 (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.
 1.66.6.1  19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.66.4.1  29-Apr-2005  kent sync with -current
 1.68.2.4  27-Oct-2007  yamt sync with head.
 1.68.2.3  03-Sep-2007  yamt sync with head.
 1.68.2.2  30-Dec-2006  yamt sync with head.
 1.68.2.1  21-Jun-2006  yamt sync with head.
 1.69.12.1  24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.69.10.1  19-Apr-2006  elad sync with head.
 1.69.8.2  03-Sep-2006  yamt sync with head.
 1.69.8.1  24-May-2006  yamt sync with head.
 1.69.6.1  22-Apr-2006  simonb Sync with head.
 1.69.4.1  09-Sep-2006  rpaulo sync with head
 1.71.4.1  22-Oct-2006  yamt sync with head
 1.71.2.1  18-Nov-2006  ad Sync with head.
 1.73.4.1  12-Mar-2007  rmind Sync with HEAD.
 1.74.14.2  26-Oct-2007  joerg 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.
 1.74.14.1  03-Sep-2007  jmcneill Sync with HEAD.
 1.74.10.1  03-Sep-2007  skrll Sync with HEAD.
 1.74.2.2  23-Oct-2007  ad Sync with head.
 1.74.2.1  09-Oct-2007  ad Sync with head.
 1.75.2.1  06-Nov-2007  matt sync with HEAD
 1.76.4.1  25-Oct-2007  bouyer Sync with HEAD.
 1.77.16.2  17-Jan-2009  mjf Sync with HEAD.
 1.77.16.1  02-Jun-2008  mjf Sync with HEAD.
 1.78.4.6  11-Aug-2010  yamt sync with head.
 1.78.4.5  11-Mar-2010  yamt sync with head
 1.78.4.4  16-Sep-2009  yamt sync with head
 1.78.4.3  16-May-2009  yamt sync with head
 1.78.4.2  04-May-2009  yamt sync with head.
 1.78.4.1  16-May-2008  yamt sync with head.
 1.78.2.1  18-May-2008  yamt sync with head.
 1.79.2.1  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.80.6.1  19-Jan-2009  skrll Sync with HEAD.
 1.80.4.1  13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.81.4.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.86.4.1  30-May-2010  rmind sync with head
 1.86.2.1  30-Apr-2010  uebayasi Sync with HEAD.
 1.87.18.2  03-Dec-2017  jdolecek update from HEAD
 1.87.18.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.87.8.1  30-Oct-2012  yamt sync with head
 1.88.14.4  28-Aug-2017  skrll Sync with HEAD
 1.88.14.3  05-Feb-2017  skrll Sync with HEAD
 1.88.14.2  09-Jul-2016  skrll Sync with HEAD
 1.88.14.1  29-May-2016  skrll Sync with HEAD
 1.90.4.1  21-Apr-2017  bouyer Sync with HEAD
 1.90.2.1  20-Mar-2017  pgoyette Sync with HEAD
 1.92.8.2  28-Jul-2018  pgoyette Sync with HEAD
 1.92.8.1  25-Jun-2018  pgoyette Sync with HEAD
 1.94.2.2  08-Apr-2020  martin Merge changes from current as of 20200406
 1.94.2.1  10-Jun-2019  christos Sync with HEAD
 1.99.2.1  29-Feb-2020  ad Sync with head.

RSS XML Feed