OpenBSD CVS

CVS log for src/sys/dev/pci/if_iwi.c


[BACK] Up to [local] / src / sys / dev / pci

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.136 / (download) - annotate - [select for diffs], Wed Mar 29 16:42:25 2017 UTC (6 months ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, HEAD
Changes since 1.135: +5 -1 lines
Diff to previous 1.135 (colored)

Fix iwi(4) regressions. WPA was broken since 6.0 errata 018.
Also, the firmware was rejecting RTS frames so iwi(4) didn't work against
an OpenBSD athn(4) hostap anymore; fix the config sent to firmware.
Prompted by report from bg2200 at jamesjerkinscomputer on misc@
ok deraadt@

Revision 1.135 / (download) - annotate - [select for diffs], Wed Mar 8 12:02:41 2017 UTC (6 months, 3 weeks ago) by mpi
Branch: MAIN
Changes since 1.134: +1 -3 lines
Diff to previous 1.134 (colored)

Do not clear IFF_UP, even in the error path, clearing IFF_RUNNING
is enough.

This flag should only be set by the stack, drivers shouldn't mess
with it.

Discussed with dlg@ and mikeb@, ok mikeb@, stsp@

Revision 1.134 / (download) - annotate - [select for diffs], Sun Jan 22 10:17:38 2017 UTC (8 months, 1 week ago) by dlg
Branch: MAIN
Changes since 1.133: +1 -3 lines
Diff to previous 1.133 (colored)

move counting if_opackets next to counting if_obytes in if_enqueue.

this means packets are consistently counted in one place, unlike the
many and various ways that drivers thought they should do it.

ok mpi@ deraadt@

Revision 1.133 / (download) - annotate - [select for diffs], Mon Sep 5 08:17:48 2016 UTC (12 months, 3 weeks ago) by tedu
Branch: MAIN
Changes since 1.132: +9 -22 lines
Diff to previous 1.132 (colored)

convert busy flag and tsleep to rwlock as in iwm

Revision 1.132 / (download) - annotate - [select for diffs], Wed Apr 13 10:34:32 2016 UTC (17 months, 2 weeks ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.131: +1 -2 lines
Diff to previous 1.131 (colored)

G/C IFQ_SET_READY().

Revision 1.131 / (download) - annotate - [select for diffs], Wed Nov 25 03:09:59 2015 UTC (22 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.130: +6 -5 lines
Diff to previous 1.130 (colored)

replace IFF_OACTIVE manipulation with mpsafe operations.

there are two things shared between the network stack and drivers
in the send path: the send queue and the IFF_OACTIVE flag. the send
queue is now protected by a mutex. this diff makes the oactive
functionality mpsafe too.

IFF_OACTIVE is part of if_flags. there are two problems with that.
firstly, if_flags is a short and we dont have any MI atomic operations
to manipulate a short. secondly, while we could make the IFF_OACTIVE
operates mpsafe, all changes to other flags would have to be made
safe at the same time, otherwise a read-modify-write cycle on their
updates could clobber the oactive change.

instead, this moves the oactive mark into struct ifqueue and provides
an API for changing it. there's ifq_set_oactive, ifq_clr_oactive,
and ifq_is_oactive. these are modelled on ifsq_set_oactive,
ifsq_clr_oactive, and ifsq_is_oactive in dragonflybsd.

this diff includes changes to all the drivers manipulating IFF_OACTIVE
to now use the ifsq_{set,clr_is}_oactive API too.

ok kettenis@ mpi@ jmatthew@ deraadt@

Revision 1.130 / (download) - annotate - [select for diffs], Tue Nov 24 13:45:06 2015 UTC (22 months ago) by mpi
Branch: MAIN
Changes since 1.129: +1 -2 lines
Diff to previous 1.129 (colored)

No need to include <net/if_arp.h>

This header is only needed because <netinet/if_ether.h> declares a
structure that needs it.  But it turns out that <net/if.h> already
includes it as workaround.

A proper solution would be to stop declarting "struct ether_arp"
there.  But no driver should need this header.

Revision 1.129 / (download) - annotate - [select for diffs], Tue Nov 24 13:33:17 2015 UTC (22 months ago) by mpi
Branch: MAIN
Changes since 1.128: +1 -2 lines
Diff to previous 1.128 (colored)

The only network driver needing <net/if_types.h> is upl(4) for IFT_OTHER.

Revision 1.128 / (download) - annotate - [select for diffs], Fri Nov 20 03:35:23 2015 UTC (22 months, 1 week ago) by dlg
Branch: MAIN
Changes since 1.127: +6 -6 lines
Diff to previous 1.127 (colored)

shuffle struct ifqueue so in flight mbufs are protected by a mutex.

the code is refactored so the IFQ macros call newly implemented ifq
functions. the ifq code is split so each discipline (priq and hfsc
in our case) is an opaque set of operations that the common ifq
code can call. the common code does the locking, accounting (ifq_len
manipulation), and freeing of the mbuf if the disciplines enqueue
function rejects it. theyre kind of like bufqs in the block layer
with their fifo and nscan disciplines.

the new api also supports atomic switching of disciplines at runtime.
the hfsc setup in pf_ioctl.c has been tweaked to build a complete
hfsc_if structure which it attaches to the send queue in a single
operation, rather than attaching to the interface up front and
building up a list of queues.

the send queue is now mutexed, which raises the expectation that
packets can be enqueued or purged on one cpu while another cpu is
dequeueing them in a driver for transmission. a lot of drivers use
IFQ_POLL to peek at an mbuf and attempt to fit it on the ring before
committing to it with a later IFQ_DEQUEUE operation. if the mbuf
gets freed in between the POLL and DEQUEUE operations, fireworks
will ensue.

to avoid this, the ifq api introduces ifq_deq_begin, ifq_deq_rollback,
and ifq_deq_commit. ifq_deq_begin allows a driver to take the ifq
mutex and get a reference to the mbuf they wish to try and tx. if
there's space, they can ifq_deq_commit it to remove the mbuf and
release the mutex. if there's no space, ifq_deq_rollback simply
releases the mutex. this api was developed to make updating the
drivers using IFQ_POLL easy, instead of having to do significant
semantic changes to avoid POLL that we cannot test on all the
hardware.

the common code has been tested pretty hard, and all the driver
modifications are straightforward except for de(4). if that breaks
it can be dealt with later.

ok mpi@ jmatthew@

Revision 1.127 / (download) - annotate - [select for diffs], Sun Oct 25 13:04:28 2015 UTC (23 months ago) by mpi
Branch: MAIN
Changes since 1.126: +1 -5 lines
Diff to previous 1.126 (colored)

arp_ifinit() is no longer needed.

Revision 1.126 / (download) - annotate - [select for diffs], Tue Sep 1 07:09:55 2015 UTC (2 years ago) by deraadt
Branch: MAIN
Changes since 1.125: +3 -3 lines
Diff to previous 1.125 (colored)

sizes for free(), mostly related to firmwares.
ok dlg

Revision 1.125 / (download) - annotate - [select for diffs], Wed May 27 22:10:52 2015 UTC (2 years, 4 months ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.124: +2 -17 lines
Diff to previous 1.124 (colored)

Use m_defrag(9) instead of rolling our own inlined version.

ok mikeb@

Revision 1.124 / (download) - annotate - [select for diffs], Sat Mar 14 03:38:48 2015 UTC (2 years, 6 months ago) by jsg
Branch: MAIN
Changes since 1.123: +1 -3 lines
Diff to previous 1.123 (colored)

Remove some includes include-what-you-use claims don't
have any direct symbols used.  Tested for indirect use by compiling
amd64/i386/sparc64 kernels.

ok tedu@ deraadt@

Revision 1.123 / (download) - annotate - [select for diffs], Tue Feb 10 23:25:46 2015 UTC (2 years, 7 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.122: +1 -2 lines
Diff to previous 1.122 (colored)

Wireless drivers call if_input() via ieee80211_input() which set `rcvif'
on every received mbuf, so there's no need to initialize this pointer in
the drivers.

Tested by and ok phessler@

Revision 1.122 / (download) - annotate - [select for diffs], Tue Jan 27 03:17:36 2015 UTC (2 years, 8 months ago) by dlg
Branch: MAIN
Changes since 1.121: +5 -5 lines
Diff to previous 1.121 (colored)

remove the second void * argument on tasks.

when workqs were introduced, we provided a second argument so you
could pass a thing and some context to work on it in. there were
very few things that took advantage of the second argument, so when
i introduced pools i suggested removing it. since tasks were meant
to replace workqs, it was requested that we keep the second argument
to make porting from workqs to tasks easier.

now that workqs are gone, i had a look at the use of the second
argument again and found only one good use of it (vdsp(4) on sparc64
if you're interested) and a tiny handful of questionable uses. the
vast majority of tasks only used a single argument. i have since
modified all tasks that used two args to only use one, so now we
can remove the second argument.

so this is a mechanical change. all tasks only passed NULL as their
second argument, so we can just remove it.

ok krw@

Revision 1.121 / (download) - annotate - [select for diffs], Mon Dec 22 02:28:52 2014 UTC (2 years, 9 months ago) by tedu
Branch: MAIN
Changes since 1.120: +1 -3 lines
Diff to previous 1.120 (colored)

unifdef INET

Revision 1.120 / (download) - annotate - [select for diffs], Fri Dec 19 22:44:58 2014 UTC (2 years, 9 months ago) by guenther
Branch: MAIN
Changes since 1.119: +2 -2 lines
Diff to previous 1.119 (colored)

Use <sys/endian.h> instead of <machine/endian.h>

ok dlg@ mpi@ bcook@ millert@ miod@

Revision 1.119 / (download) - annotate - [select for diffs], Tue Nov 18 02:37:30 2014 UTC (2 years, 10 months ago) by tedu
Branch: MAIN
Changes since 1.118: +1 -2 lines
Diff to previous 1.118 (colored)

move arc4random prototype to systm.h. more appropriate for most code
to include that than rdnvar.h. ok deraadt dlg

Revision 1.118 / (download) - annotate - [select for diffs], Tue Jul 22 13:12:11 2014 UTC (3 years, 2 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.117: +1 -3 lines
Diff to previous 1.117 (colored)

Fewer <netinet/in_systm.h>

Revision 1.117 / (download) - annotate - [select for diffs], Sat Jul 12 18:48:51 2014 UTC (3 years, 2 months ago) by tedu
Branch: MAIN
Changes since 1.116: +3 -3 lines
Diff to previous 1.116 (colored)

add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.

Revision 1.116 / (download) - annotate - [select for diffs], Fri Dec 6 21:03:04 2013 UTC (3 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.115: +6 -6 lines
Diff to previous 1.115 (colored)

Add a DVACT_WAKEUP op to the *_activate() API.  This is called after the
kernel resumes normal (non-cold, able to run processes, etc) operation.
Previously we were relying on specific DVACT_RESUME op's in drivers
creating callback/threads themselves, but that has become too common,
indicating the need for a built-in mechanism.
ok dlg kettenis, tested by a sufficient amount of people

Revision 1.115 / (download) - annotate - [select for diffs], Tue Dec 3 22:37:24 2013 UTC (3 years, 9 months ago) by kettenis
Branch: MAIN
Changes since 1.114: +18 -11 lines
Diff to previous 1.114 (colored)

Seems we simply have to live with fatal firmware errors.  Even Linux, with its
driver written by Intel engineers occasionally gets them.  So when we get one,
simply reset the chip, reload the firware and bring the interface up again.

Tested by naddy@, who unfortunately is experiencing the quantum zeno effect
making his iwi(4) not crap out.
ok stsp@

Revision 1.114 / (download) - annotate - [select for diffs], Thu Nov 14 12:39:14 2013 UTC (3 years, 10 months ago) by dlg
Branch: MAIN
Changes since 1.113: +5 -4 lines
Diff to previous 1.113 (colored)

replace workqs with tasks for handling resume

from kimberley manning

Revision 1.113 / (download) - annotate - [select for diffs], Tue Oct 1 20:06:00 2013 UTC (3 years, 11 months ago) by sf
Branch: MAIN
Changes since 1.112: +3 -3 lines
Diff to previous 1.112 (colored)

Use %z* for size_t

while there, fix a few %d into %u

Revision 1.112 / (download) - annotate - [select for diffs], Wed Aug 7 01:06:35 2013 UTC (4 years, 1 month ago) by bluhm
Branch: MAIN
Changes since 1.111: +1 -2 lines
Diff to previous 1.111 (colored)

Most network drivers include netinet/in_var.h, but apparently they
don't have to.  Just remove these include lines.
Compiled on amd64 i386 sparc64; OK henning@ mikeb@

Revision 1.111 / (download) - annotate - [select for diffs], Mon Nov 15 19:11:57 2010 UTC (6 years, 10 months ago) by damien
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.110: +4 -1 lines
Diff to previous 1.110 (colored)

Reset ic_scan_lock in {ipw,iwi}_stop similarly to {wpi,iwn}_stop.

From Jeremy Chase.

Revision 1.110 / (download) - annotate - [select for diffs], Tue Sep 7 16:21:45 2010 UTC (7 years ago) by deraadt
Branch: MAIN
Changes since 1.109: +1 -10 lines
Diff to previous 1.109 (colored)

remove the powerhook code.  All architectures now use the ca_activate tree
traversal code to suspend/resume
ok oga kettenis blambert

Revision 1.109 / (download) - annotate - [select for diffs], Fri Aug 27 20:09:01 2010 UTC (7 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.108: +10 -15 lines
Diff to previous 1.108 (colored)

Move the guts of the powerhook function into the activate function and make
it stop calling the powerhook function; then make the powerhook function
call activate.  This basically inverts the whole goop.
ok kettenis

Revision 1.108 / (download) - annotate - [select for diffs], Fri Aug 27 17:08:00 2010 UTC (7 years, 1 month ago) by jsg
Branch: MAIN
Changes since 1.107: +1 -2 lines
Diff to previous 1.107 (colored)

remove the unused if_init callback in struct ifnet
ok deraadt@ henning@ claudio@

Revision 1.107 / (download) - annotate - [select for diffs], Thu Aug 12 16:59:29 2010 UTC (7 years, 1 month ago) by damien
Branch: MAIN
Changes since 1.106: +4 -4 lines
Diff to previous 1.106 (colored)

homogeneous style.

no binary change.

Revision 1.106 / (download) - annotate - [select for diffs], Thu Aug 12 15:03:59 2010 UTC (7 years, 1 month ago) by oga
Branch: MAIN
Changes since 1.105: +9 -3 lines
Diff to previous 1.105 (colored)

Instead of returning EBUSY when the busy flag is set in the ioctl, sleep
until whoever has it is done with it.

This is kept as flag/sleep condvars instead of a rwlock because later we
may want to quiesce the handler before suspend to make sure nothing is
sleeping on a chip that is about to be whacked (doing so will change the
proc so rwlocks won't work).

ok damien@

Revision 1.105 / (download) - annotate - [select for diffs], Tue Aug 3 18:26:25 2010 UTC (7 years, 1 month ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.104: +17 -3 lines
Diff to previous 1.104 (colored)

Bring the suspend/resume code of all the Intel wireless drivers in line with
iwn(4) again.

ok deraadt@

Revision 1.104 / (download) - annotate - [select for diffs], Wed Jul 28 21:21:38 2010 UTC (7 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.103: +38 -10 lines
Diff to previous 1.103 (colored)

Make legacy xxpower() functions call xxstop() on suspend, and simplify their
resume paths.  For new-style suspend/resume, add a ca_activate function where
it is missing, and use a workq to resume because these drivers like to sleep.
ok damien

Revision 1.103 / (download) - annotate - [select for diffs], Wed May 19 15:27:35 2010 UTC (7 years, 4 months ago) by oga
Branch: MAIN
Changes since 1.102: +3 -6 lines
Diff to previous 1.102 (colored)

BUS_DMA_ZERO instead of alloc, map, bzero.

ok krw@

Revision 1.102 / (download) - annotate - [select for diffs], Tue Apr 20 22:05:43 2010 UTC (7 years, 5 months ago) by tedu
Branch: MAIN
Changes since 1.101: +1 -2 lines
Diff to previous 1.101 (colored)

remove proc.h include from uvm_map.h.  This has far reaching effects, as
sysctl.h was reliant on this particular include, and many drivers included
sysctl.h unnecessarily.  remove sysctl.h or add proc.h as needed.
ok deraadt

Revision 1.101 / (download) - annotate - [select for diffs], Mon May 11 19:24:57 2009 UTC (8 years, 4 months ago) by damien
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.100: +2 -2 lines
Diff to previous 1.100 (colored)

sync setting of the capinfo field of assoc req frames w/ net80211.
fixes association with APs that refuse non short slot time capable STAs.

Revision 1.100 / (download) - annotate - [select for diffs], Sun Mar 29 21:53:52 2009 UTC (8 years, 6 months ago) by sthen
Branch: MAIN
Changes since 1.99: +9 -9 lines
Diff to previous 1.99 (colored)

make various strings ("can't map mem space" and similar) more consistent
between instances, saving space in the kernel. feedback from many (some
incorporated, some left for future work).

ok deraadt, kettenis, "why not" miod.

Revision 1.99 / (download) - annotate - [select for diffs], Mon Jan 26 19:09:41 2009 UTC (8 years, 8 months ago) by damien
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.98: +3 -3 lines
Diff to previous 1.98 (colored)

Add some initial HT bits (not enabled yet) based on 802.11n Draft 7.01:
- implement A-MPDU frames buffering and reordering
- implement A-MSDU decapsulation
- process/send ADDBA Request, ADDBA Response and DELBA action frames
- process Block Ack Request control frames (including MTBAR)
- implement PBAC support (Protected Block Ack)
- add some incomplete HT Capabilities and HT Operation IEs parsing

Add more Management Frame Protection bits based on 802.11w Draft 7.0:
- implement SA Query procedure (both AP and STA)
- cleanup BIP

Fix some bugs:
- fix check for WEP key length that otherwise caused a stack smash in
  ieee80211_wep_encrypt (pointed out by Xavier Santolaria on macppc)
- properly stop EAPOL timeout: fixes a panic that occured in HostAP mode
  when turning the interface down while a 4-way handshake is in progress
  (pointed out by Doughertys)

Did some code cleanup too.

The HT bits are currently not compiled in (IEEE80211_NO_HT is defined)
because they won't be ready until after the next release and I didn't
want to grow the kernel or to inadvertently introduce new bugs.
They are here such that other people can look at the code.
Notice that I had to add an extra parameter to ic_send_mgmt() for
action frames, that is why there are small changes in drivers defining
their own ic_send_mgmt() handler.

Sorry for the not very incremental diff but this has been sitting in
my tree for too long now.

Revision 1.98 / (download) - annotate - [select for diffs], Mon Dec 22 18:20:47 2008 UTC (8 years, 9 months ago) by damien
Branch: MAIN
Changes since 1.97: +2 -2 lines
Diff to previous 1.97 (colored)

I swapped MGETHDR arguments in my m_defrag removal commit.

Revision 1.97 / (download) - annotate - [select for diffs], Sun Dec 21 18:19:58 2008 UTC (8 years, 9 months ago) by damien
Branch: MAIN
Changes since 1.96: +18 -3 lines
Diff to previous 1.96 (colored)

Undo m_defrag().

m_defrag() does not work.  It seems to assume that if the length of
the mbuf passed as parameter is less than MHLEN, then it is an mbuf
header and not a cluster (or something like that.)
It thus fails miserably in the bcopy path.
I don't have the time to investigate further into this.

Thanks to Okan Demirmen for reporting the issue on a ral(4) RT2560.
The RT2560 chipset does not support TX scatter and thus m_defrag()
was called much more often than in other drivers using m_defrag()
where it was less noticeable.

Revision 1.96 / (download) - annotate - [select for diffs], Tue Nov 25 22:20:11 2008 UTC (8 years, 10 months ago) by damien
Branch: MAIN
Changes since 1.95: +2 -2 lines
Diff to previous 1.95 (colored)

more sizeof->nitems

Revision 1.95 / (download) - annotate - [select for diffs], Tue Nov 25 21:43:57 2008 UTC (8 years, 10 months ago) by damien
Branch: MAIN
Changes since 1.94: +2 -20 lines
Diff to previous 1.94 (colored)

use shiny new m_defrag() and nitems() instead of rolling our own.

Revision 1.94 / (download) - annotate - [select for diffs], Thu Sep 4 15:59:52 2008 UTC (9 years ago) by damien
Branch: MAIN
Changes since 1.93: +56 -88 lines
Diff to previous 1.93 (colored)

mostly cosmetic.
also, do not set the privacy bit in the capinfo field of (re)assoc
requests, even for RSNA.

Revision 1.93 / (download) - annotate - [select for diffs], Wed Sep 3 19:47:58 2008 UTC (9 years ago) by damien
Branch: MAIN
Changes since 1.92: +4 -4 lines
Diff to previous 1.92 (colored)

(Re)Association requests should contain a QoS Capability element,
not an EDCA Parameter Set element (spotted by IEEE80211_STA_ONLY).

Revision 1.92 / (download) - annotate - [select for diffs], Wed Sep 3 19:43:59 2008 UTC (9 years ago) by damien
Branch: MAIN
Changes since 1.91: +15 -6 lines
Diff to previous 1.91 (colored)

redefine ic_send_mgmt() as a no-op instead of calling IF_PURGE in
{ipw,iwi}_start which is wrong (node reference is not released).
from pgt(4).

Revision 1.91 / (download) - annotate - [select for diffs], Thu Aug 28 15:55:37 2008 UTC (9 years, 1 month ago) by damien
Branch: MAIN
Changes since 1.90: +3 -2 lines
Diff to previous 1.90 (colored)

80 cols.

no binary changes.

Revision 1.90 / (download) - annotate - [select for diffs], Thu Aug 28 15:52:20 2008 UTC (9 years, 1 month ago) by damien
Branch: MAIN
Changes since 1.89: +124 -87 lines
Diff to previous 1.89 (colored)

WPA support for iwi(4).
some initial WMM bits too.
use license.template while i'm here.

Revision 1.89 / (download) - annotate - [select for diffs], Wed Aug 27 09:28:38 2008 UTC (9 years, 1 month ago) by damien
Branch: MAIN
Changes since 1.88: +5 -4 lines
Diff to previous 1.88 (colored)

the firmware is responsible for sending management frames, but
since we pass received management frames to net80211, net80211
may send replies (like deauth/disassoc), so we just call
IF_PURGE(&ic->ic_mgtq) in {ipw,iwi}_start just to be on the
safe side of things (so we don't leak mbufs).

Revision 1.88 / (download) - annotate - [select for diffs], Wed Aug 27 09:05:03 2008 UTC (9 years, 1 month ago) by damien
Branch: MAIN
Changes since 1.87: +34 -10 lines
Diff to previous 1.87 (colored)

introduce new IEEE80211_STA_ONLY kernel option that can be set to
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.

Revision 1.87 / (download) - annotate - [select for diffs], Mon Jul 21 18:43:18 2008 UTC (9 years, 2 months ago) by damien
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.86: +8 -2 lines
Diff to previous 1.86 (colored)

instead of passing rx tstamp and rssi to the ieee80211_input function,
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.

Revision 1.86 / (download) - annotate - [select for diffs], Sat Nov 17 19:09:16 2007 UTC (9 years, 10 months ago) by damien
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.85: +2 -1 lines
Diff to previous 1.85 (colored)

update the physical address of the RX buffer after bus_dmamap_load()
in the case where the old buffer is remapped.

Revision 1.85 / (download) - annotate - [select for diffs], Fri Sep 7 19:05:05 2007 UTC (10 years ago) by damien
Branch: MAIN
Changes since 1.84: +1 -2 lines
Diff to previous 1.84 (colored)

use new malloc M_ZERO flag to shrink kernel.
remove <malloc.h> from files where malloc is not used.

Revision 1.84 / (download) - annotate - [select for diffs], Tue Aug 28 18:34:38 2007 UTC (10 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.83: +3 -3 lines
Diff to previous 1.83 (colored)

unify firmware load failure messages; ok mglocker

Revision 1.83 / (download) - annotate - [select for diffs], Wed Jul 18 18:10:31 2007 UTC (10 years, 2 months ago) by damien
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.82: +7 -6 lines
Diff to previous 1.82 (colored)

replace the ieee80211_wepkey structure with a more generic ieee80211_key
one that can be used with other ciphers than WEP.

Revision 1.82 / (download) - annotate - [select for diffs], Fri Jul 6 18:03:42 2007 UTC (10 years, 2 months ago) by damien
Branch: MAIN
Changes since 1.81: +2 -2 lines
Diff to previous 1.81 (colored)

typo in an error message.
reported a while back by Laurence Tratt, reminded more recently by brad@

Revision 1.81 / (download) - annotate - [select for diffs], Thu Jul 5 21:38:19 2007 UTC (10 years, 2 months ago) by damien
Branch: MAIN
Changes since 1.80: +2 -5 lines
Diff to previous 1.80 (colored)

fixes my previous commit.
the ESS bit must be set in (re)assocation requests.

Revision 1.80 / (download) - annotate - [select for diffs], Thu Jul 5 20:31:38 2007 UTC (10 years, 2 months ago) by damien
Branch: MAIN
Changes since 1.79: +2 -2 lines
Diff to previous 1.79 (colored)

don't set IEEE80211_CAPINFO_ESS bit since we're not operating as an AP.

Revision 1.79 / (download) - annotate - [select for diffs], Wed Jan 3 18:19:06 2007 UTC (10 years, 8 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.78: +7 -5 lines
Diff to previous 1.78 (colored)

M_DUP_PKTHDR() cleanup. On static mbufs M_DUP_PKTHDR() will leak mbuf tags.
See similar commit to dev/usb/if_rum.c for more info. With this commit
all drivers have been switched away from the incorrect M_DUP_PKTHDR() usage.
OK mglocker@

Revision 1.78 / (download) - annotate - [select for diffs], Sun Nov 26 11:14:22 2006 UTC (10 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.77: +4 -13 lines
Diff to previous 1.77 (colored)

do not have each net80211 driver define its own rates structures.  if they use
the standard rates, use some defined by net80211 itself.  kernel shrinks a bit
ok jsg mglocker

Revision 1.77 / (download) - annotate - [select for diffs], Mon Oct 23 18:19:26 2006 UTC (10 years, 11 months ago) by damien
Branch: MAIN
Changes since 1.76: +2 -30 lines
Diff to previous 1.76 (colored)

remove detach() function. this is not hotplug and this is dead code.

Revision 1.76 / (download) - annotate - [select for diffs], Sun Oct 22 08:25:43 2006 UTC (10 years, 11 months ago) by damien
Branch: MAIN
Changes since 1.75: +11 -1 lines
Diff to previous 1.75 (colored)

Check that ni->ni_rates.rs_nrates is not greater than sizeof rs.rates in
iwi_auth_and_assoc() before copying the rate set.
The firmware command allows a maximum of 12 rates to be defined while the
ieee80211_rateset structure can contain up to 15 rates.
Notice that this should not happen since the rate set is supposed to be
negotiated at that time but Jeremie Le Hen sees some evidence of this
happening in FreeBSD.
In case it happens, print a diagnostic message and truncate the rate set.

Pointed out by Jeremie Le Hen.

Revision 1.75 / (download) - annotate - [select for diffs], Fri Sep 29 05:34:25 2006 UTC (11 years ago) by brad
Branch: MAIN
Changes since 1.74: +2 -2 lines
Diff to previous 1.74 (colored)

add a missing format string to the beacon miss debug message.

Revision 1.74 / (download) - annotate - [select for diffs], Mon Sep 18 16:20:20 2006 UTC (11 years ago) by damien
Branch: MAIN
Changes since 1.73: +5 -6 lines
Diff to previous 1.73 (colored)

don't use IF_PREPEND() on altq's.
use IFQ_POLL()/IFQ_DEQUEUE() logic instead as described in altq(4).

Revision 1.73 / (download) - annotate - [select for diffs], Sat Aug 19 14:57:37 2006 UTC (11 years, 1 month ago) by damien
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.72: +3 -5 lines
Diff to previous 1.72 (colored)

tweak dma sync ops

Revision 1.72 / (download) - annotate - [select for diffs], Sat Aug 19 12:03:05 2006 UTC (11 years, 1 month ago) by damien
Branch: MAIN
Changes since 1.71: +5 -17 lines
Diff to previous 1.71 (colored)

get rid of shared auth mode.
the ioctl is not supported by ifconfig and it has never worked anyway.

Revision 1.71 / (download) - annotate - [select for diffs], Sat Aug 19 11:07:44 2006 UTC (11 years, 1 month ago) by damien
Branch: MAIN
Changes since 1.70: +190 -125 lines
Diff to previous 1.70 (colored)

o Improve 802.11 radiotap support (correct Rx antenna and Rx rate,
  add short preamble flag)
o Add short slot time support
o Ignore parity errors interrupts (as per Linux driver)
o Fix DMA sync ops
o Improve async commands processing
o Fix hardware WEP encryption (40/104bit keys)
o Set Tx power to the maximum value for 802.11a channels too
o Disable bluetooth coexistence and hardware antenna diversity as
  it seems to panic the firmware on some adapters
o Handle beacon miss and link degradation notifications (but don't
  automatically roam yet)
o Remove unused prototypes
o Cosmetic tweaks as always

Revision 1.70 / (download) - annotate - [select for diffs], Fri Aug 18 16:04:56 2006 UTC (11 years, 1 month ago) by damien
Branch: MAIN
Changes since 1.69: +7 -9 lines
Diff to previous 1.69 (colored)

set of unrelated cosmetic tweaks.

Revision 1.69 / (download) - annotate - [select for diffs], Wed Jun 14 18:40:23 2006 UTC (11 years, 3 months ago) by brad
Branch: MAIN
Changes since 1.68: +6 -2 lines
Diff to previous 1.68 (colored)

clear the IFF_UP interface flag before shutting down the interface.

ok damien@

Revision 1.68 / (download) - annotate - [select for diffs], Wed May 17 19:54:10 2006 UTC (11 years, 4 months ago) by damien
Branch: MAIN
Changes since 1.67: +3 -3 lines
Diff to previous 1.67 (colored)

sync handling of fatal firmware errors w/ wpi(4)

Revision 1.67 / (download) - annotate - [select for diffs], Mon May 1 08:39:17 2006 UTC (11 years, 5 months ago) by damien
Branch: MAIN
Changes since 1.66: +8 -6 lines
Diff to previous 1.66 (colored)

call iwi_stop() at beginning of iwi_init() so that all rings are properly
reset when iwi_init() is called from iwi_ioctl() on ENETRESET.
this fixes a firmware panic when setting a WEP key multiple times for
instance.  fix some printf while i'm here.

pointed out by Kurt Miller (kurt@).

Revision 1.66 / (download) - annotate - [select for diffs], Sun Apr 2 20:30:19 2006 UTC (11 years, 6 months ago) by dim
Branch: MAIN
Changes since 1.65: +11 -1 lines
Diff to previous 1.65 (colored)

Prevent panic when loading pre-3.0 iwi firmware, and give a helpful
error message instead. Also return EINVAL for some other error paths.

ok damien, deraadt

Revision 1.65 / (download) - annotate - [select for diffs], Sat Apr 1 15:36:01 2006 UTC (11 years, 6 months ago) by mickey
Branch: MAIN
Changes since 1.64: +4 -5 lines
Diff to previous 1.64 (colored)

use proper types and not fetch iobase that is not used later; damien ok

Revision 1.64 / (download) - annotate - [select for diffs], Sat Apr 1 01:04:40 2006 UTC (11 years, 6 months ago) by pedro
Branch: MAIN
Changes since 1.63: +462 -337 lines
Diff to previous 1.63 (colored)

Put Damien's latest changes back in, okay deraadt@.
Please note that the driver now requires new firmware (version 3.0).

Revision 1.63 / (download) - annotate - [select for diffs], Fri Mar 31 17:18:36 2006 UTC (11 years, 6 months ago) by pedro
Branch: MAIN
Changes since 1.62: +336 -461 lines
Diff to previous 1.62 (colored)

Backout, causes panics

Revision 1.62 / (download) - annotate - [select for diffs], Mon Mar 27 20:46:35 2006 UTC (11 years, 6 months ago) by damien
Branch: MAIN
Changes since 1.61: +462 -337 lines
Diff to previous 1.61 (colored)

- complete rework of rings allocation (do things more like ral(4))
- upgrade to firmware v3.0 layout
- enable s/w antenna diversity
- many code cleanup

Revision 1.61 / (download) - annotate - [select for diffs], Sat Mar 25 22:41:45 2006 UTC (11 years, 6 months ago) by djm
Branch: MAIN
Changes since 1.60: +5 -5 lines
Diff to previous 1.60 (colored)

allow bpf(4) to ignore packets based on their direction (inbound or
outbound), using a new BIOCSDIRFILT ioctl;
guidance, feedback and ok canacar@

Revision 1.60 / (download) - annotate - [select for diffs], Sun Feb 26 19:14:40 2006 UTC (11 years, 7 months ago) by damien
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.59: +111 -113 lines
Diff to previous 1.59 (colored)

prettify + u_int{8,16,32}_t -> uint{8,16,32}_t

Revision 1.59 / (download) - annotate - [select for diffs], Sat Feb 4 11:36:32 2006 UTC (11 years, 7 months ago) by damien
Branch: MAIN
Changes since 1.58: +2 -9 lines
Diff to previous 1.58 (colored)

silently discard f/w notifications that are unknown (fixes spurious
"unknown notification 15" in logs with latest firmware)

Revision 1.58 / (download) - annotate - [select for diffs], Sun Jan 29 15:44:16 2006 UTC (11 years, 8 months ago) by damien
Branch: MAIN
Changes since 1.57: +5 -3 lines
Diff to previous 1.57 (colored)

re-enable scatter and fix scanning of 802.11a channels.

Revision 1.57 / (download) - annotate - [select for diffs], Wed Jan 18 20:25:22 2006 UTC (11 years, 8 months ago) by damien
Branch: MAIN
Changes since 1.56: +26 -9 lines
Diff to previous 1.56 (colored)

add some bits to control assoc led.

Revision 1.56 / (download) - annotate - [select for diffs], Wed Jan 4 06:04:41 2006 UTC (11 years, 8 months ago) by canacar
Branch: MAIN
Changes since 1.55: +1 -4 lines
Diff to previous 1.55 (colored)

Remove redundant calls to bpfdetach.
ok brad@

Revision 1.55 / (download) - annotate - [select for diffs], Wed Nov 23 21:29:05 2005 UTC (11 years, 10 months ago) by damien
Branch: MAIN
Changes since 1.54: +8 -6 lines
Diff to previous 1.54 (colored)

When defragmenting a mbuf chain before transmitting it, don't allocate a mbuf
cluster if the payload fits in the header.

From NetBSD (scw@)

Revision 1.54 / (download) - annotate - [select for diffs], Wed Nov 23 21:08:46 2005 UTC (11 years, 10 months ago) by damien
Branch: MAIN
Changes since 1.53: +2 -1 lines
Diff to previous 1.53 (colored)

fix my previous commit.  don't leak an mbuf.

Revision 1.53 / (download) - annotate - [select for diffs], Wed Nov 23 21:04:40 2005 UTC (11 years, 10 months ago) by damien
Branch: MAIN
Changes since 1.52: +41 -31 lines
Diff to previous 1.52 (colored)

Be more robust when handling Rx interrupts.  If we can't allocate and DMA map
a new mbuf, just discard the received frame and reuse the old mbuf.

From NetBSD (joerg@)

Revision 1.52 / (download) - annotate - [select for diffs], Wed Nov 23 20:57:09 2005 UTC (11 years, 10 months ago) by damien
Branch: MAIN
Changes since 1.51: +11 -11 lines
Diff to previous 1.51 (colored)

Fix endianness issues.  iwi should now work on big endian architectures.

From NetBSD (scw@).

Revision 1.51 / (download) - annotate - [select for diffs], Fri Oct 7 06:33:11 2005 UTC (11 years, 11 months ago) by damien
Branch: MAIN
Changes since 1.50: +4 -4 lines
Diff to previous 1.50 (colored)

fixes rev 1.50.  got a stack smashed.
looks like i committed the wrong version.

Revision 1.50 / (download) - annotate - [select for diffs], Thu Oct 6 20:33:39 2005 UTC (11 years, 11 months ago) by damien
Branch: MAIN
Changes since 1.49: +15 -12 lines
Diff to previous 1.49 (colored)

o Use firmware extended scan command; this one doesn't crash when scanning
  the 5GHz band.
o Enable 802.11a channels scanning for 2915ABG adapters.
o Fix a typo (negociated->negotiated).

Revision 1.49 / (download) - annotate - [select for diffs], Mon Sep 19 20:01:11 2005 UTC (12 years ago) by damien
Branch: MAIN
Changes since 1.48: +70 -8 lines
Diff to previous 1.48 (colored)

o Add initial bits for IBSS support.
o Fix association with APs not broadcasting their SSIDs.
o Don't send anything if there is less than eight free slots in Tx ring.

Revision 1.48 / (download) - annotate - [select for diffs], Tue Aug 9 04:10:12 2005 UTC (12 years, 1 month ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.47: +1 -6 lines
Diff to previous 1.47 (colored)

do not set PCI_COMMAND_MASTER_ENABLE explicitly as it's already set in pcisubmatch(); kettenis@ testing; brad@ ok

Revision 1.47 / (download) - annotate - [select for diffs], Tue Jul 12 18:18:13 2005 UTC (12 years, 2 months ago) by damien
Branch: MAIN
Changes since 1.46: +3 -2 lines
Diff to previous 1.46 (colored)

h/w doesn't decrypt rx frames in monitor mode so don't try to remove the
iv and crc fields or to clear the wep bit from the 802.11 header.

fix by Pedro la Peu.  closes kern/4284.

Revision 1.46 / (download) - annotate - [select for diffs], Sat Jul 2 23:10:11 2005 UTC (12 years, 3 months ago) by brad
Branch: MAIN
Changes since 1.45: +4 -4 lines
Diff to previous 1.45 (colored)

clear IFF_RUNNING & IFF_OACTIVE in foo_stop() before de-allocating resources.

Revision 1.45 / (download) - annotate - [select for diffs], Mon Jun 20 18:25:14 2005 UTC (12 years, 3 months ago) by damien
Branch: MAIN
Changes since 1.44: +5 -8 lines
Diff to previous 1.44 (colored)

fix a couple of 'use after free' bugs on mbuf chains in the tx path.
originally pointed out by Mike Silbersack on the fbsd version of the iwi
driver.

Revision 1.44 / (download) - annotate - [select for diffs], Sun May 22 16:30:30 2005 UTC (12 years, 4 months ago) by damien
Branch: MAIN
Changes since 1.43: +2 -4 lines
Diff to previous 1.43 (colored)

fix setting of the "need ack" flag.

Revision 1.43 / (download) - annotate - [select for diffs], Sun May 22 16:28:00 2005 UTC (12 years, 4 months ago) by damien
Branch: MAIN
Changes since 1.42: +11 -20 lines
Diff to previous 1.42 (colored)

cosmetic.  no need to initialize the read index.

Revision 1.42 / (download) - annotate - [select for diffs], Sun May 22 16:05:47 2005 UTC (12 years, 4 months ago) by damien
Branch: MAIN
Changes since 1.41: +6 -0 lines
Diff to previous 1.41 (colored)

set fragmentation threshold in iwi_config().

Revision 1.41 / (download) - annotate - [select for diffs], Sun May 22 15:28:45 2005 UTC (12 years, 4 months ago) by damien
Branch: MAIN
Changes since 1.40: +8 -2 lines
Diff to previous 1.40 (colored)

some changes for IBSS mode support (not yet working).

Revision 1.40 / (download) - annotate - [select for diffs], Sun May 22 15:14:10 2005 UTC (12 years, 4 months ago) by damien
Branch: MAIN
Changes since 1.39: +33 -5 lines
Diff to previous 1.39 (colored)

add monitor mode support.  fast channel hop is not yet implemented though.
requires a firmware upgrade to version 1.0.4.

Revision 1.39 / (download) - annotate - [select for diffs], Sat May 14 13:32:38 2005 UTC (12 years, 4 months ago) by damien
Branch: MAIN
Changes since 1.38: +14 -2 lines
Diff to previous 1.38 (colored)

don't copy the capinfo field from the ap.  forge our own based on what
ieee80211_output.c does.

Revision 1.38 / (download) - annotate - [select for diffs], Fri May 13 20:52:51 2005 UTC (12 years, 4 months ago) by damien
Branch: MAIN
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored)

should support channel 165 too in 802.11a mode.

Revision 1.37 / (download) - annotate - [select for diffs], Fri May 13 20:24:59 2005 UTC (12 years, 4 months ago) by damien
Branch: MAIN
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (colored)

fix sensitivity setting.

Revision 1.36 / (download) - annotate - [select for diffs], Sun Apr 17 13:49:09 2005 UTC (12 years, 5 months ago) by damien
Branch: MAIN
Changes since 1.35: +3 -1 lines
Diff to previous 1.35 (colored)

temporarly remove 802.11a channels from the set of supported channels until
i figure out why the firmware crashes when scanning in the 5.2GHz spectrum.
this makes 2915ABG adapters work (b/g only).

Revision 1.35 / (download) - annotate - [select for diffs], Sun Apr 17 13:41:46 2005 UTC (12 years, 5 months ago) by damien
Branch: MAIN
Changes since 1.34: +4 -11 lines
Diff to previous 1.34 (colored)

don't disassociate on SIOCSIFADDR if the interface is already up and running.

Revision 1.34 / (download) - annotate - [select for diffs], Mon Apr 4 16:37:07 2005 UTC (12 years, 5 months ago) by damien
Branch: MAIN
Changes since 1.33: +1 -4 lines
Diff to previous 1.33 (colored)

remove noise statistics. this was generating tons of useless interrupts.

Revision 1.33 / (download) - annotate - [select for diffs], Mon Apr 4 16:31:52 2005 UTC (12 years, 5 months ago) by damien
Branch: MAIN
Changes since 1.32: +7 -6 lines
Diff to previous 1.32 (colored)

new id for PRO/Wireless 2915ABG. fix desc for PRO/Wireless adapters.

Revision 1.32 / (download) - annotate - [select for diffs], Wed Mar 23 14:14:30 2005 UTC (12 years, 6 months ago) by damien
Branch: MAIN
Changes since 1.31: +5 -1 lines
Diff to previous 1.31 (colored)

do packet accounting (opackets/oerrors/ierrors).

Revision 1.31 / (download) - annotate - [select for diffs], Thu Mar 17 20:08:13 2005 UTC (12 years, 6 months ago) by damien
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.30: +17 -5 lines
Diff to previous 1.30 (colored)

support for ipv6.

Revision 1.30 / (download) - annotate - [select for diffs], Mon Mar 14 13:21:42 2005 UTC (12 years, 6 months ago) by damien
Branch: MAIN
Changes since 1.29: +5 -1 lines
Diff to previous 1.29 (colored)

don't display an error message when re-associating.
this prevents annoying 'unknown association state 9' from happening.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Mar 12 13:37:49 2005 UTC (12 years, 6 months ago) by damien
Branch: MAIN
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

prevent fragmentation from happening.

Revision 1.28 / (download) - annotate - [select for diffs], Sat Mar 12 13:25:45 2005 UTC (12 years, 6 months ago) by damien
Branch: MAIN
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

IBSS is not yet supported, remove it from the capabilities flags.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Feb 21 13:33:29 2005 UTC (12 years, 7 months ago) by damien
Branch: MAIN
Changes since 1.26: +10 -35 lines
Diff to previous 1.26 (colored)

ipwcontrol and iwicontrol removal.

Revision 1.26 / (download) - annotate - [select for diffs], Sat Feb 19 13:38:01 2005 UTC (12 years, 7 months ago) by damien
Branch: MAIN
Changes since 1.25: +3 -2 lines
Diff to previous 1.25 (colored)

Added support for Intel PRO/Wireless 2225BG PCI adapters.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Feb 17 18:28:05 2005 UTC (12 years, 7 months ago) by reyk
Branch: MAIN
Changes since 1.24: +6 -11 lines
Diff to previous 1.24 (colored)

derived from NetBSD:

---
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.

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.
---

ok deraadt@ dlg@, looks good jsg@

Revision 1.24 / (download) - annotate - [select for diffs], Sun Jan 9 16:47:50 2005 UTC (12 years, 8 months ago) by damien
Branch: MAIN
Changes since 1.23: +124 -101 lines
Diff to previous 1.23 (colored)

- add support for 2.2 firmware
- fix rssi decoding
- implement basics for IBSS support
- decrease channel scan time from 100ms to 40ms
- cosmetic changes while i'm here

Revision 1.23 / (download) - annotate - [select for diffs], Wed Jan 5 09:07:15 2005 UTC (12 years, 8 months ago) by jsg
Branch: MAIN
Changes since 1.22: +1 -1 lines
Diff to previous 1.22 (colored)

Use $OpenBSD$ instead of $Id$. ok damien@

Revision 1.22 / (download) - annotate - [select for diffs], Tue Dec 21 17:29:53 2004 UTC (12 years, 9 months ago) by damien
Branch: MAIN
Changes since 1.21: +33 -5 lines
Diff to previous 1.21 (colored)

add powerhooks
OK claudio@ kevlo@ deraadt@

Revision 1.21 / (download) - annotate - [select for diffs], Fri Dec 10 21:25:53 2004 UTC (12 years, 9 months ago) by damien
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

fix mbuf defragmentation

Revision 1.20 / (download) - annotate - [select for diffs], Mon Dec 6 20:27:15 2004 UTC (12 years, 9 months ago) by damien
Branch: MAIN
Changes since 1.19: +34 -2 lines
Diff to previous 1.19 (colored)

add mbuf linearization code when the number of fragments exceeds what is
supported by the hardware

Revision 1.19 / (download) - annotate - [select for diffs], Mon Dec 6 19:58:44 2004 UTC (12 years, 9 months ago) by damien
Branch: MAIN
Changes since 1.18: +3 -46 lines
Diff to previous 1.18 (colored)

remove iwi_fix_channel() by setting IEEE80211_C_SCANALL capability flag

Revision 1.18 / (download) - annotate - [select for diffs], Mon Dec 6 19:54:05 2004 UTC (12 years, 9 months ago) by damien
Branch: MAIN
Changes since 1.17: +4 -4 lines
Diff to previous 1.17 (colored)

indent

Revision 1.17 / (download) - annotate - [select for diffs], Sat Dec 4 19:40:37 2004 UTC (12 years, 9 months ago) by damien
Branch: MAIN
Changes since 1.16: +28 -20 lines
Diff to previous 1.16 (colored)

- reorder interrupt handlers
- don't request ack's for multicast frames
- fix short preamble support
- clear nic memory on reset
- fix ioctl SIOCGTABLE0

Revision 1.16 / (download) - annotate - [select for diffs], Sat Dec 4 19:19:24 2004 UTC (12 years, 9 months ago) by damien
Branch: MAIN
Changes since 1.15: +11 -11 lines
Diff to previous 1.15 (colored)

minor cleaning

Revision 1.15 / (download) - annotate - [select for diffs], Sat Dec 4 19:01:46 2004 UTC (12 years, 9 months ago) by damien
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

fix shared authentication

Revision 1.14 / (download) - annotate - [select for diffs], Sat Dec 4 17:24:06 2004 UTC (12 years, 9 months ago) by damien
Branch: MAIN
Changes since 1.13: +334 -382 lines
Diff to previous 1.13 (colored)

Clean DMA allocation of Tx and Rx rings

Revision 1.13 / (download) - annotate - [select for diffs], Wed Nov 24 21:17:26 2004 UTC (12 years, 10 months ago) by damien
Branch: MAIN
Changes since 1.12: +24 -35 lines
Diff to previous 1.12 (colored)

- add short preamble capability
- only set channels power in ibss mode
- use default sensitivity
- copy capinfo from beacon or probe resp

Revision 1.12 / (download) - annotate - [select for diffs], Wed Nov 24 21:00:50 2004 UTC (12 years, 10 months ago) by damien
Branch: MAIN
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

extend scan delay from 20ms to 100ms for each channel + minor consistency tweak

Revision 1.11 / (download) - annotate - [select for diffs], Wed Nov 24 20:57:25 2004 UTC (12 years, 10 months ago) by damien
Branch: MAIN
Changes since 1.10: +3 -1 lines
Diff to previous 1.10 (colored)

reset adapter in iwi_stop()

Revision 1.10 / (download) - annotate - [select for diffs], Wed Nov 24 20:50:55 2004 UTC (12 years, 10 months ago) by damien
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

clear register 0x41, not 0x43 (endianness)

Revision 1.9 / (download) - annotate - [select for diffs], Wed Nov 24 20:44:10 2004 UTC (12 years, 10 months ago) by damien
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

fix interrupt handler

Revision 1.8 / (download) - annotate - [select for diffs], Tue Nov 23 21:28:22 2004 UTC (12 years, 10 months ago) by damien
Branch: MAIN
Changes since 1.7: +79 -24 lines
Diff to previous 1.7 (colored)

add support for 2915ABG adapters

Revision 1.7 / (download) - annotate - [select for diffs], Mon Nov 22 21:34:35 2004 UTC (12 years, 10 months ago) by damien
Branch: MAIN
Changes since 1.6: +81 -127 lines
Diff to previous 1.6 (colored)

use the filesystem based firmware loader; ok deraadt@

Revision 1.6 / (download) - annotate - [select for diffs], Mon Nov 22 19:52:59 2004 UTC (12 years, 10 months ago) by damien
Branch: MAIN
Changes since 1.5: +2 -4 lines
Diff to previous 1.5 (colored)

don't enable debugging by default

Revision 1.5 / (download) - annotate - [select for diffs], Thu Oct 28 23:06:10 2004 UTC (12 years, 11 months ago) by brad
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

the URL in if_iwi is no longer valid.

ok damien@

Revision 1.4 / (download) - annotate - [select for diffs], Thu Oct 28 22:12:00 2004 UTC (12 years, 11 months ago) by jcs
Branch: MAIN
Changes since 1.3: +4 -2 lines
Diff to previous 1.3 (colored)

print our ether address when attaching like other drivers
same code as for ipw

Revision 1.3 / (download) - annotate - [select for diffs], Wed Oct 27 21:33:52 2004 UTC (12 years, 11 months ago) by damien
Branch: MAIN
Changes since 1.2: +80 -80 lines
Diff to previous 1.2 (colored)

Remove static for all non-inline functions.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Oct 20 22:26:42 2004 UTC (12 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +1 -3 lines
Diff to previous 1.1 (colored)

defined in pcidevs now

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 20 12:50:48 2004 UTC (12 years, 11 months ago) by deraadt
Branch: MAIN

support for Intel 2100/2200BG/2915ABG wireless devices written by
damien.bergamini@free.fr. This gets imported even though there is no
firmware in the tree.  This is a ridiculous situation: everything is
free, everything works, except Intel will not let us put a little
dinky firmware flat file into OpenBSD.  So OpenBSD is ready for Intel
whenever they are.

Are you a consumer?  Do you want to see this changed -- contact
jketreno@linux.intel.com and tell him how you feel about this.  He is
likely someone who cannot do anything about it, though.  If anyone can
work up or down the chain around his department and get me contact
information for various people, I will compile and later publish such
a list.  Go do it people -- this is how things will change.  Get me
email addresses and phone numbers.

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.