summaryrefslogtreecommitdiffstats
path: root/sys/dev/ic/an.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Don't use uninitialized data as a return value.krw2015-06-211-5/+5
| | | | | | From Brainy via Maxime Villard via tech@. ok kettenis@
* Wireless drivers call if_input() via ieee80211_input() which set `rcvif'mpi2015-02-101-2/+1
| | | | | | | on every received mbuf, so there's no need to initialize this pointer in the drivers. Tested by and ok phessler@
* unifdef INETtedu2014-12-221-5/+1
|
* remove uneeded proc.h includesjsg2014-09-141-2/+1
| | | | ok mpi@ kspillner@
* Fewer <netinet/in_systm.h>mpi2014-07-221-3/+1
|
* Most network drivers include netinet/in_var.h, but apparently theybluhm2013-08-071-2/+1
| | | | | don't have to. Just remove these include lines. Compiled on amd64 i386 sparc64; OK henning@ mikeb@
* Remove excessive sys/cdefs.h inclusionderaadt2012-12-051-3/+1
| | | | ok guenther millert kettenis
* remove the unused if_init callback in struct ifnetjsg2010-08-271-2/+1
| | | | ok deraadt@ henning@ claudio@
* More cases of shutdown hooks not needed after card is already stopped. Inderaadt2009-08-101-14/+1
| | | | | | these cases the xxstop function is a bit more complicated and has a flag of some sort, but the use of that flag does not matter; DMA is already ceased ok dlg
* introduce new IEEE80211_STA_ONLY kernel option that can be set todamien2008-08-271-6/+18
| | | | | | | | | remove IBSS and HostAP support from net80211 and 802.11 drivers. it can be used to shrink RAMDISK kernels for instance (like what was done for wi(4)). it also has the benefit of highlighting what is specific to IBSS and HostAP modes in the code. the cost is that we now have two code paths to maintain.
* instead of passing rx tstamp and rssi to the ieee80211_input function,damien2008-07-211-3/+8
| | | | | | | pass a pointer to an ieee80211_rxinfo structure containing those two fields plus an extra flags field that indicates whether the frame was decrypted by hardware or not. required for a future fix.
* s/NPBFILTER/NBPFILTER/ in #endif comment. No functional change.kettenis2007-09-301-2/+2
|
* M_DUP_PKTHDR() cleanup. On static buffers M_DUP_PKTHDR() will leak mbuf tags.claudio2007-01-031-5/+7
| | | | See similar rum(4) commit for more info. OK mglocker@
* put the 1.32 change back; tested by manymickey2006-06-251-18/+14
|
* Attach routines can fail before calling *hook_establish(), and theykrw2006-05-221-2/+3
| | | | | | | | often rely on the detach routine for cleanup. So be consistant and careful by checking for a NULL hook before calling *hook_disestablish in detach routines. ok mickey@ brad@ dlg@
* Add support for big endian archs. tested by jaredy@ and ok jsg@kurt2006-04-051-77/+79
|
* allow bpf(4) to ignore packets based on their direction (inbound ordjm2006-03-251-5/+5
| | | | | outbound), using a new BIOCSDIRFILT ioctl; guidance, feedback and ok canacar@
* remove the colon between "address" and the MAC address.brad2006-03-041-2/+2
|
* Be sure to call shutdownhook_disestablish() as this is a removeable device.jsg2006-02-201-2/+3
| | | | ok mickey@
* Add basic radiotap support. Modelled somewhat afterjsg2006-01-301-1/+56
| | | | | ral and NetBSD wi radiotap. "looks ok" damien@
* Move an(4) to a driver based on the NetBSD one.jsg2006-01-091-1159/+1183
| | | | | | | | | | This brings net80211 support and support for newer hardware. In addition ancontrol is no longer needed. This driver does not yet work on big endian archs like the previous one did. "do it" deraadt@
* splimp -> splnetbrad2005-11-091-4/+4
|
* dont' -> don't in comments;jmc2005-10-251-2/+2
| | | | from ray lai;
* Replace arpcom in the softc with ieee80211com in preparation forjsg2005-06-201-31/+28
| | | | further net80211 changes. ok mickey@
* - fix and update commentsbrad2005-04-241-12/+9
| | | | | | | | | - use ETHERTYPE_IP instead of magic value - saanp -> type_ipv4 From FreeBSD ok mickey@
* fix setting 128bit WEP keys on BIG_ENDIAN arches.kurt2005-02-041-3/+3
|
* don't need to set ifp->if_mtu or ifp->if_output in each driver,brad2004-09-231-2/+1
| | | | | | {ether,atm,fddi}_ifattach already does this. ok mcbride@ markus@ henning@
* use ETHER_MAX_LEN.brad2004-08-051-2/+2
| | | | ok mickey@
* Remove forgotten debug code which does not compile on alpha.miod2004-08-051-2/+1
|
* allocate a cluster on rx after all possible failures had been checked for; repair sigcache misalignmentmickey2004-08-051-35/+27
|
* provide proper ip header alignment (and repair big endian archs again from after ether_input_mbuf conversion); also kill some stupid spacesmickey2004-07-241-13/+12
|
* typos from Tom Cosgrove;jmc2003-10-211-2/+2
| | | | | | | | Tom: I did not commit a couple of your changes. i did not include some punctuation fixes (full stops, etc.) mnemorable -> mnemonic: i decided memorable was probably better instrunctions -> instruction: i kept the plural
* from freebsd: read one word less (for type) and take care of odd sized recordsmickey2003-10-051-4/+7
|
* reading the record skip the remainder of data we do not need. we are still screwed on writes thoughmickey2003-09-261-12/+10
|
* make sure to not overflow when initializing {node,net}name (truncation does not matter)mickey2003-09-251-6/+6
|
* revert safety checks; requested by mickey@avsm2003-09-231-7/+1
|
* Put in a couple of sanity checks to ensure that the AN_DEFAULT_*avsm2003-09-191-1/+7
| | | | | variables arent defined too large. itojun@ ok
* change arguments to suser. suser now takes the process, and a flagstedu2003-08-151-3/+3
| | | | | | | | | argument. old cred only calls user suser_ucred. this will allow future work to more flexibly implement the idea of a root process. looks like something i saw in freebsd, but a little different. use of suser_ucred vs suser in file system code should be looked at again, for the moment semantics remain unchanged. review and input from art@ testing and further review miod@
* AN_RID_ACTUALCFG gets the same endianesslessness as AN_RID_GENCONFIGmickey2003-06-251-1/+3
|
* no need for an explicit <machine/intr.h> inclusionmickey2003-06-231-2/+1
|
* use ifp->if_sadl whether possible.fgsch2002-07-101-9/+4
|
* a step towards consistancy; in general:todd2002-06-091-16/+16
| | | | | 'struct arpcom foo' -> 'struct arpcom sc_arpcom' ok itojun@
* First round of __P removal in sysmillert2002-03-141-25/+25
|
* sync with KAMEkjc2002-03-121-3/+8
| | | | | ALTQify more drivers. ok millert@
* proper data length handling on read; from toby@svector.co.ukmickey2002-01-021-8/+14
|
* if_media support, from freebsdmickey2001-09-291-3/+117
|
* Don't set up ifq_maxlen manually for drivers that uses IFQ_MAXLENfgsch2001-07-081-2/+1
| | | | | | (or ifqmaxlen); it's done in if_attach() now. No future drivers needs to set up this anymore unless they want to use something else.
* remove struct and contsts duplicated in between the files.mickey2001-06-251-102/+160
| | | | | make it work on powerpc. improve performance by using the bus_*_multi_* finctions instead of loops.
* use ether_input_mbufmickey2001-06-231-7/+5
|
* inconsistantly redundant returnsmickey2001-06-101-21/+1
|