#
720f4ea4 |
| 29-May-2024 |
stsp <stsp@openbsd.org> |
fix WEP on athn(4) USB hostap
Deferring installation of software crypto keys to a task context is not needed and results in race conditions that trigger the infamous "key not installed for sw crypto
fix WEP on athn(4) USB hostap
Deferring installation of software crypto keys to a task context is not needed and results in race conditions that trigger the infamous "key not installed for sw crypto" panic.
show more ...
|
#
81508fe3 |
| 23-May-2024 |
jsg <jsg@openbsd.org> |
remove unneeded includes; ok mpi@
|
#
77574026 |
| 10-Jul-2022 |
bluhm <bluhm@openbsd.org> |
Add _cb suffix to callback fields in struct ifmedia. Makes code easier to read and grep as ifm_status was used in both structs ifmediareq and ifmedia with different meaning. OK mvs@
|
#
52a13037 |
| 21-Apr-2022 |
stsp <stsp@openbsd.org> |
Use memset() to initialize struct ieee80211_rxinfo properly.
Sven Wolf noticed that scans on ral(4) are buggy ever since I added a new field to this struct. Turns out a lot of drivers were initializ
Use memset() to initialize struct ieee80211_rxinfo properly.
Sven Wolf noticed that scans on ral(4) are buggy ever since I added a new field to this struct. Turns out a lot of drivers were initializing fields one-by-one, leaving any newly added fields uninitialized by default.
Affected drivers may report wrong channel numbers for received beacons. The net80211 stack will discard such beacons, assuming they were received on the wrong channel due to signal leakage. Scanning is broken as result.
ok miod@
show more ...
|
#
8985a220 |
| 22-Nov-2021 |
mglocker <mglocker@openbsd.org> |
Align memory allocation for USB device drivers and USB HC drivers:
* USB device drivers use M_USBDEV instead of M_DEVBUF. * USB HC drivers use M_USBHC instead of M_DEVBUF.
In a vanilla setup, this
Align memory allocation for USB device drivers and USB HC drivers:
* USB device drivers use M_USBDEV instead of M_DEVBUF. * USB HC drivers use M_USBHC instead of M_DEVBUF.
In a vanilla setup, this enlarges the USB memory pool.
ok anton@
show more ...
|
#
937de54f |
| 31-Oct-2021 |
stsp <stsp@openbsd.org> |
Make athn(4) attach to the Sony UWA-BR100. Patch by martingot@protonmail
|
#
d2dd70ac |
| 15-Apr-2021 |
stsp <stsp@openbsd.org> |
Switch athn(4) 802.11n Tx rate adaptation from MiRA to RA.
Tests: AR5418: Uwe Werler AR9280: kn, jmatthew, Lauri Tirkkonen, Scott Bennett, Mikolaj Kucharski AR9285: kevlo, trondd, myself
ok deraadt@
|
#
5c7fed39 |
| 25-Feb-2021 |
dlg <dlg@openbsd.org> |
we don't have to cast to caddr_t when calling m_copydata anymore.
the first cut of this diff was made with coccinelle using this spatch:
@rule@ type caddr_t; expression m, off, len, cp; @@ -m_copyd
we don't have to cast to caddr_t when calling m_copydata anymore.
the first cut of this diff was made with coccinelle using this spatch:
@rule@ type caddr_t; expression m, off, len, cp; @@ -m_copydata(m, off, len, (caddr_t)cp) +m_copydata(m, off, len, cp)
i had fix it's opinionated idea of formatting by hand though, so i'm not sure it was worth it.
ok deraadt@ bluhm@
show more ...
|
#
4fac4e76 |
| 30-Nov-2020 |
krw <krw@openbsd.org> |
Fix deferred key tasks along the same lines as urtwn(4) and run(4).
athn(4) tested by stsp@, who points out that otus(4) and rsu(4) don't yet invoke the code path to do their own key setting.
ok st
Fix deferred key tasks along the same lines as urtwn(4) and run(4).
athn(4) tested by stsp@, who points out that otus(4) and rsu(4) don't yet invoke the code path to do their own key setting.
ok stsp@
show more ...
|
#
86e3bb8a |
| 13-Jul-2020 |
stsp <stsp@openbsd.org> |
When athn(4) is deciding how to decrypt an incoming frame, look into the ieee80211_node data structure to find the WPA group cipher which was negotiated with the peer, rather than checking the wirele
When athn(4) is deciding how to decrypt an incoming frame, look into the ieee80211_node data structure to find the WPA group cipher which was negotiated with the peer, rather than checking the wireless interface's configuration data.
Found while investigating a problem where WPA2+TKIP wasn't working with athn. Problem reported by Tim Chase.
show more ...
|
#
63bcfa73 |
| 10-Jul-2020 |
patrick <patrick@openbsd.org> |
Change users of IFQ_DEQUEUE(), IFQ_ENQUEUE() and IFQ_LEN() to use the "new" API.
ok dlg@ tobhe@
|
#
ff1dd4b7 |
| 27-Apr-2020 |
stsp <stsp@openbsd.org> |
Offload CCMP (WPA2) encryption and decryption to athn(4) hardware.
This reduces CPU load during traffic bursts, which is especially noticeable on boards with relatively slow CPUs such as Alix and AP
Offload CCMP (WPA2) encryption and decryption to athn(4) hardware.
This reduces CPU load during traffic bursts, which is especially noticeable on boards with relatively slow CPUs such as Alix and APU. For reference, my rcc-ve boards (Intel Atom C2558) now forward ~2000pps between Ethernet and wifi with <= 1% CPU interrupt time according to systat. Beforehand, these boards became noticeably less responsive with fairly high interrupt and spin %.
CCMP offload is used on both PCI and USB devices (thanks kevlo@ for catching my omission of USB devices in the first iteration of this change!)
Tested by (at least) Kevin Chadwick, tracey@, kevlo@, kili@, Ted Patterson, David Dahlberg, and Scott Bennett.
ok tracey@ kevlo@
show more ...
|
#
b66625d1 |
| 25-Nov-2019 |
mpi <mpi@openbsd.org> |
Convert to tsleep_nsec(9) and use the correct timeout period in msec.
Tested by kevlo@, ok stsp@
|
#
00f6cb32 |
| 12-Nov-2019 |
mpi <mpi@openbsd.org> |
Convert tsleep(9) that wait for a multiple of `hz' to tsleep_nsec(9).
ok cheloha@
|
#
8fbaf8a2 |
| 12-Sep-2019 |
stsp <stsp@openbsd.org> |
Make wireless drivers call if_input() only once per interrupt.
This reduces drops caused by the ifq pressure drop mechanism and hence increases throughput. Such drops are visible with e.g. 'netstat
Make wireless drivers call if_input() only once per interrupt.
This reduces drops caused by the ifq pressure drop mechanism and hence increases throughput. Such drops are visible with e.g. 'netstat -dnI iwm0'.
Not all affected drivers have been tested yet but these changes are largely mechanical and should be safe. As usual, please report any regressions.
With help from dlg@ and mpi@
Problem found by robert@ Tested by robert, jmc, Tracey Emer, Matthias Schmidt, florian, Björn Ketelaars ok mpi@
show more ...
|
#
044d754c |
| 06-Dec-2018 |
stsp <stsp@openbsd.org> |
Avoid unnecessary dynamic memory allocation in athn_usb_newauth(). Patch by Benjamin Baier ok ratchov@ mpi@
|
#
c7617a35 |
| 06-Sep-2018 |
jsg <jsg@openbsd.org> |
fix whitespace
|
#
9f962d91 |
| 05-Feb-2018 |
stsp <stsp@openbsd.org> |
claim copyright
|
#
f47be805 |
| 05-Feb-2018 |
stsp <stsp@openbsd.org> |
Move athn(4) USB devices to the open source atk9k HTC firmware.
Also fix support for AR7010 devices, fix mode hostap by properly managing the firmware station table, and fix Tx rate reporting.
Test
Move athn(4) USB devices to the open source atk9k HTC firmware.
Also fix support for AR7010 devices, fix mode hostap by properly managing the firmware station table, and fix Tx rate reporting.
Tested on AR7010 and AR9271 devices.
ok kevlo@
show more ...
|
#
c37a468c |
| 26-Oct-2017 |
mpi <mpi@openbsd.org> |
Move common code to add/remove multicast filters to ieee80211_ioctl(9).
ok jsg@, stsp@
|
#
234dfda1 |
| 08-Apr-2017 |
deraadt <deraadt@openbsd.org> |
A pile of sizes to free(9). In test for a few days in snapshots. Errors will result in nice clean panic messages so we know what's wrong. Reviewed by dhill visa natano jsg.
|
#
c9ee9455 |
| 26-Mar-2017 |
deraadt <deraadt@openbsd.org> |
Add sizes to various free(9) calls. Fixing the simpler ones first. ok natano visa
|
#
88a08f2a |
| 22-Jan-2017 |
dlg <dlg@openbsd.org> |
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.
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@
show more ...
|
#
7363c99e |
| 12-Jan-2017 |
stsp <stsp@openbsd.org> |
Finish initial 11n support for athn(4).
The heavy lifting was done by damien@ years ago. I didn't even have to figure out what the hardware expects, the code was already there.
This driver now supp
Finish initial 11n support for athn(4).
The heavy lifting was done by damien@ years ago. I didn't even have to figure out what the hardware expects, the code was already there.
This driver now supports MCS 0-15 in client and hostap mode. No Tx aggregation and no 40 MHz channels yet.
tested by vgross@, bmercer@, tb@, jmc@, Vadim Vygonets, Peter Kay ok bmercer@ tb@ phessler@
show more ...
|
#
d03b3311 |
| 29-Nov-2016 |
jsg <jsg@openbsd.org> |
m_free() and m_freem() test for NULL. Simplify callers which had their own NULL tests.
ok mpi@
|