msaitoh
82d818af91
If if_initialize() failed in the attach function, return.
2017-10-23 09:27:21 +00:00
riastradh
1fe00a14a7
Check for M_EXT in m->m_flags, whether m is NULL, after MCLGET.
...
From Ilja Van Sprundel.
2017-07-29 01:19:29 +00:00
nonaka
5ffb0503f3
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
2017-02-02 10:05:35 +00:00
ozaki-r
d938d837b3
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.
2016-06-10 13:27:10 +00:00
ozaki-r
6bbd2477a9
Introduce M_CLEARCTX and use it instead of open-coding rcvif
...
No functional change.
2016-05-26 05:04:46 +00:00
ozaki-r
ea0349e714
Use M_GETCTX
...
No functional change.
2016-05-26 05:01:11 +00:00
christos
4387d8ea3a
PR/50882: David Binderman: Remove redundant code.
2016-03-02 19:26:15 +00:00
maxv
4c64a57059
Fix a double free. "Suggested" by Brainy.
...
ok rjs@ riastradh@
2015-04-10 11:47:12 +00:00
ozaki-r
3cde4cbc35
Pass a correct firmware size (instead of 0) to firmware_free
...
firmware_free now uses kmem_free(9) instead of free(9),
so we need to pass a correct size to it.
2015-01-07 07:05:48 +00:00
pooka
4f6fb3bf35
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.
2014-02-25 18:30:08 +00:00
christos
b787afbfb6
- remove unused variables
...
- move variables inside ifdef sections
- ifdef notdef unused code
- use __USE for debugging variables
2013-10-17 21:24:24 +00:00
nakayama
12cc28f46a
Fix alignment and endian bugs observed on sparc64.
...
Also apply some minor fix from FreeBSD.
Tested with Buffalo WLI-CB-G54 (BCM4306) and WLI3-CB-G54L (BCM4318)
on i386 and sparc64.
2012-04-25 05:14:05 +00:00
nakayama
3be522d63f
Remove duplicate code.
2012-04-14 02:15:01 +00:00
nakayama
efa37975b6
- Add pmf(9) suspend, resume to bwi(4) cardbus front end.
...
- Apply cardbus code cleanups.
2012-04-12 12:52:58 +00:00
bouyer
de1b145cd5
Fix array overflow, found by gcc -O3.
2012-03-15 18:34:40 +00:00
njoly
c987dd88bf
Kill local definition of __unused attribute.
2011-10-10 11:15:24 +00:00
pooka
3798dc422d
Don't BWI_DEBUG by default + comment cleanup.
...
requested by Taylor R. Campbell (driver submitter)
2011-01-28 20:36:06 +00:00
dyoung
7916748801
#include <sys/bus.h> instead of <machine/bus.h>. No functional change
...
intended.
2010-04-16 18:58:39 +00:00
joerg
58e867556f
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.
2010-04-05 07:19:28 +00:00
dyoung
c1b390d493
A pointer typedef entails trading too much flexibility to declare const
...
and non-const types, and the kernel uses both const and non-const
PMF qualifiers and device suspensors, so change the pmf_qual_t and
device_suspensor_t typedefs from "pointers to const" to non-pointer,
non-const types.
2010-02-24 22:37:54 +00:00
pooka
10fe49d72c
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.
2010-01-19 22:06:18 +00:00
dyoung
cd6e1fbf91
Expand PMF_FN_* macros.
2010-01-08 19:53:10 +00:00
cegger
ae3b7e2af6
use __arraycount, kill N() macro.
2009-07-25 23:43:06 +00:00
cegger
57fb22a89c
device_t/softc split
2009-04-26 10:07:48 +00:00
kefren
02190332dd
Add power hooks. Proposed a couple of days ago on tech-kern@, no
...
objections received. Tested on Dell Inspiron 2200 with BCM4318
2009-04-23 20:24:23 +00:00
tsutsui
d779b85d3e
Remove extra whitespace added by a stupid tool.
...
XXX: more in src/sys/arch
2009-04-18 14:58:02 +00:00
cegger
e2cb85904d
bcopy -> memcpy
2009-03-18 17:06:41 +00:00
cegger
c363a9cb62
bzero -> memset
2009-03-18 16:00:08 +00:00
cube
102a4f0ad3
I smell rotting code. (Give a chance to the user to at least set the flags
...
of the interface, if not use it because it otherwise doesn't work.)
2009-02-23 00:05:44 +00:00
cegger
c288f70f98
use new exported constants from net80211.
...
no functional change.
2009-01-10 13:03:19 +00:00
cegger
13175d24c8
BCM4328 has MAC rev 12.
...
XXX Driver now tells me, this chip has unsupported PHY type 4.
2009-01-10 12:57:50 +00:00
macallan
d6ded78b71
Fix previous screwup.
...
This is the real bwi driver.
Ported by Taylor R. Campbell
2009-01-09 20:49:42 +00:00
macallan
c83792f07e
A driver for Broadcom BCM4302 wlan controllers, otherwise known as
...
Airport Extreme.
Ported from Dragonfly and OpenBSD by Urban Boquist
2009-01-09 19:50:24 +00:00