Up to [local] / src / sys / dev / usb
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.67 / (download) - annotate - [select for diffs], Wed May 29 07:27:33 2024 UTC (20 months, 1 week ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_7_8_BASE,
OPENBSD_7_8,
OPENBSD_7_7_BASE,
OPENBSD_7_7,
OPENBSD_7_6_BASE,
OPENBSD_7_6,
HEAD
Changes since 1.66: +11 -1 lines
Diff to previous 1.66 (colored)
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.
Revision 1.66 / (download) - annotate - [select for diffs], Thu May 23 03:21:08 2024 UTC (20 months, 2 weeks ago) by jsg
Branch: MAIN
Changes since 1.65: +1 -5 lines
Diff to previous 1.65 (colored)
remove unneeded includes; ok mpi@
Revision 1.65 / (download) - annotate - [select for diffs], Sun Jul 10 21:13:41 2022 UTC (3 years, 6 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE,
OPENBSD_7_5,
OPENBSD_7_4_BASE,
OPENBSD_7_4,
OPENBSD_7_3_BASE,
OPENBSD_7_3,
OPENBSD_7_2_BASE,
OPENBSD_7_2
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored)
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@
Revision 1.63.2.1 / (download) - annotate - [select for diffs], Fri Apr 22 10:09:16 2022 UTC (3 years, 9 months ago) by bluhm
Branch: OPENBSD_7_1
Changes since 1.63: +2 -2 lines
Diff to previous 1.63 (colored) next main 1.64 (colored)
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. from stsp@; ok miod@ this is errata/7.1/001_wifi.patch.sig
Revision 1.64 / (download) - annotate - [select for diffs], Thu Apr 21 21:03:03 2022 UTC (3 years, 9 months ago) by stsp
Branch: MAIN
Changes since 1.63: +2 -2 lines
Diff to previous 1.63 (colored)
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@
Revision 1.63 / (download) - annotate - [select for diffs], Mon Nov 22 10:17:14 2021 UTC (4 years, 2 months ago) by mglocker
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE
Branch point for: OPENBSD_7_1
Changes since 1.62: +2 -2 lines
Diff to previous 1.62 (colored)
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@
Revision 1.62 / (download) - annotate - [select for diffs], Sun Oct 31 12:24:02 2021 UTC (4 years, 3 months ago) by stsp
Branch: MAIN
Changes since 1.61: +3 -1 lines
Diff to previous 1.61 (colored)
Make athn(4) attach to the Sony UWA-BR100. Patch by martingot@protonmail
Revision 1.61 / (download) - annotate - [select for diffs], Thu Apr 15 18:25:44 2021 UTC (4 years, 9 months ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE,
OPENBSD_7_0,
OPENBSD_6_9_BASE,
OPENBSD_6_9
Changes since 1.60: +2 -2 lines
Diff to previous 1.60 (colored)
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@
Revision 1.60 / (download) - annotate - [select for diffs], Thu Feb 25 02:48:20 2021 UTC (4 years, 11 months ago) by dlg
Branch: MAIN
Changes since 1.59: +3 -3 lines
Diff to previous 1.59 (colored)
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@
Revision 1.59 / (download) - annotate - [select for diffs], Mon Nov 30 16:09:33 2020 UTC (5 years, 2 months ago) by krw
Branch: MAIN
Changes since 1.58: +11 -2 lines
Diff to previous 1.58 (colored)
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@
Revision 1.58 / (download) - annotate - [select for diffs], Mon Jul 13 08:31:32 2020 UTC (5 years, 6 months ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE,
OPENBSD_6_8
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored)
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.
Revision 1.57 / (download) - annotate - [select for diffs], Fri Jul 10 13:22:21 2020 UTC (5 years, 6 months ago) by patrick
Branch: MAIN
Changes since 1.56: +2 -2 lines
Diff to previous 1.56 (colored)
Change users of IFQ_DEQUEUE(), IFQ_ENQUEUE() and IFQ_LEN() to use the "new" API. ok dlg@ tobhe@
Revision 1.56 / (download) - annotate - [select for diffs], Mon Apr 27 08:21:35 2020 UTC (5 years, 9 months ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE,
OPENBSD_6_7
Changes since 1.55: +53 -5 lines
Diff to previous 1.55 (colored)
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@
Revision 1.55 / (download) - annotate - [select for diffs], Mon Nov 25 11:32:17 2019 UTC (6 years, 2 months ago) by mpi
Branch: MAIN
Changes since 1.54: +6 -4 lines
Diff to previous 1.54 (colored)
Convert to tsleep_nsec(9) and use the correct timeout period in msec. Tested by kevlo@, ok stsp@
Revision 1.54 / (download) - annotate - [select for diffs], Tue Nov 12 07:47:30 2019 UTC (6 years, 2 months ago) by mpi
Branch: MAIN
Changes since 1.53: +7 -4 lines
Diff to previous 1.53 (colored)
Convert tsleep(9) that wait for a multiple of `hz' to tsleep_nsec(9). ok cheloha@
Revision 1.53 / (download) - annotate - [select for diffs], Thu Sep 12 12:55:07 2019 UTC (6 years, 4 months ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE,
OPENBSD_6_6
Changes since 1.52: +10 -6 lines
Diff to previous 1.52 (colored)
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@
Revision 1.52 / (download) - annotate - [select for diffs], Thu Dec 6 07:50:38 2018 UTC (7 years, 2 months ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE,
OPENBSD_6_5
Changes since 1.51: +5 -10 lines
Diff to previous 1.51 (colored)
Avoid unnecessary dynamic memory allocation in athn_usb_newauth(). Patch by Benjamin Baier ok ratchov@ mpi@
Revision 1.51 / (download) - annotate - [select for diffs], Thu Sep 6 11:50:54 2018 UTC (7 years, 5 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE,
OPENBSD_6_4
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored)
fix whitespace
Revision 1.50 / (download) - annotate - [select for diffs], Mon Feb 5 09:52:03 2018 UTC (8 years ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE,
OPENBSD_6_3
Changes since 1.49: +2 -1 lines
Diff to previous 1.49 (colored)
claim copyright
Revision 1.49 / (download) - annotate - [select for diffs], Mon Feb 5 08:48:57 2018 UTC (8 years ago) by stsp
Branch: MAIN
Changes since 1.48: +361 -67 lines
Diff to previous 1.48 (colored)
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@
Revision 1.48 / (download) - annotate - [select for diffs], Thu Oct 26 15:00:28 2017 UTC (8 years, 3 months ago) by mpi
Branch: MAIN
Changes since 1.47: +1 -11 lines
Diff to previous 1.47 (colored)
Move common code to add/remove multicast filters to ieee80211_ioctl(9). ok jsg@, stsp@
Revision 1.47 / (download) - annotate - [select for diffs], Sat Apr 8 02:57:25 2017 UTC (8 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE,
OPENBSD_6_2
Changes since 1.46: +3 -2 lines
Diff to previous 1.46 (colored)
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.
Revision 1.46 / (download) - annotate - [select for diffs], Sun Mar 26 15:31:15 2017 UTC (8 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE,
OPENBSD_6_1
Changes since 1.45: +6 -5 lines
Diff to previous 1.45 (colored)
Add sizes to various free(9) calls. Fixing the simpler ones first. ok natano visa
Revision 1.45 / (download) - annotate - [select for diffs], Sun Jan 22 10:17:39 2017 UTC (9 years ago) by dlg
Branch: MAIN
Changes since 1.44: +1 -2 lines
Diff to previous 1.44 (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.44 / (download) - annotate - [select for diffs], Thu Jan 12 16:32:28 2017 UTC (9 years ago) by stsp
Branch: MAIN
Changes since 1.43: +22 -21 lines
Diff to previous 1.43 (colored)
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@
Revision 1.43 / (download) - annotate - [select for diffs], Tue Nov 29 10:22:30 2016 UTC (9 years, 2 months ago) by jsg
Branch: MAIN
Changes since 1.42: +2 -3 lines
Diff to previous 1.42 (colored)
m_free() and m_freem() test for NULL. Simplify callers which had their own NULL tests. ok mpi@
Revision 1.42 / (download) - annotate - [select for diffs], Fri Dec 11 16:07:02 2015 UTC (10 years, 1 month ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE,
OPENBSD_6_0,
OPENBSD_5_9_BASE,
OPENBSD_5_9
Changes since 1.41: +5 -8 lines
Diff to previous 1.41 (colored)
Replace mountroothook_establish(9) by config_mountroot(9) a narrower API similar to config_defer(9). ok mikeb@, deraadt@
Revision 1.41 / (download) - annotate - [select for diffs], Wed Nov 25 03:09:59 2015 UTC (10 years, 2 months ago) by dlg
Branch: MAIN
Changes since 1.40: +8 -7 lines
Diff to previous 1.40 (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.40 / (download) - annotate - [select for diffs], Tue Nov 24 13:45:06 2015 UTC (10 years, 2 months ago) by mpi
Branch: MAIN
Changes since 1.39: +1 -2 lines
Diff to previous 1.39 (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.39 / (download) - annotate - [select for diffs], Tue Nov 24 13:33:18 2015 UTC (10 years, 2 months ago) by mpi
Branch: MAIN
Changes since 1.38: +1 -2 lines
Diff to previous 1.38 (colored)
The only network driver needing <net/if_types.h> is upl(4) for IFT_OTHER.
Revision 1.38 / (download) - annotate - [select for diffs], Wed Nov 4 12:12:00 2015 UTC (10 years, 3 months ago) by dlg
Branch: MAIN
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored)
replace the ifqueues in net80211 with mbuf_queues. the specific queues are ic_mgtq, ic_pwrsaveq, and ni_savedq. rtw had its own queue for beacons. tested by mpi@ and jmc@ ok mpi@
Revision 1.37 / (download) - annotate - [select for diffs], Sun Oct 25 12:11:56 2015 UTC (10 years, 3 months ago) by mpi
Branch: MAIN
Changes since 1.36: +1 -5 lines
Diff to previous 1.36 (colored)
arp_ifinit() is no longer needed.
Revision 1.36 / (download) - annotate - [select for diffs], Thu Jul 9 16:33:42 2015 UTC (10 years, 7 months ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE,
OPENBSD_5_8
Changes since 1.35: +3 -4 lines
Diff to previous 1.35 (colored)
Revert previous, doesn't fix anything. I managed to reproduce the problem on one of my machines and the patch doesn't help. See http://marc.info/?l=openbsd-tech&m=143645936727569&w=2
Revision 1.35 / (download) - annotate - [select for diffs], Thu Jul 9 13:48:54 2015 UTC (10 years, 7 months ago) by stsp
Branch: MAIN
Changes since 1.34: +5 -4 lines
Diff to previous 1.34 (colored)
Allow more time for USB athn(4) firmware boot. It seems people on daemonforums are running into the previous 1 second timeout on some machines, which the driver will treat as fatal. Not sure if this will really fix the issue but it won't hurt. Also reported in NetBSD land which inherited our driver: http://mail-index.netbsd.org/current-users/2014/05/06/msg024793.html ok mpi@
Revision 1.34 / (download) - annotate - [select for diffs], Fri Jun 12 15:47:31 2015 UTC (10 years, 7 months ago) by mpi
Branch: MAIN
Changes since 1.33: +4 -18 lines
Diff to previous 1.33 (colored)
Only match devices with a valid configuration. Most of the WiFi/Ethernet USB adapter only have one configuration and always use its first interface. In order to improve USB descriptors parsing start by reducing the number of places where a configuration is set. Tests & ok stsp@
Revision 1.33 / (download) - annotate - [select for diffs], Mon Mar 2 15:23:28 2015 UTC (10 years, 11 months ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE,
OPENBSD_5_7
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)
Remove stray ')' from athn(4) "firmware command timed out" error message.
Revision 1.32 / (download) - annotate - [select for diffs], Mon Mar 2 15:18:37 2015 UTC (10 years, 11 months ago) by stsp
Branch: MAIN
Changes since 1.31: +7 -1 lines
Diff to previous 1.31 (colored)
athn(4) USB drops received frames larger than MCLBYTES. Count these dropped frames as input errors.
Revision 1.31 / (download) - annotate - [select for diffs], Mon Mar 2 15:05:11 2015 UTC (10 years, 11 months ago) by stsp
Branch: MAIN
Changes since 1.30: +23 -6 lines
Diff to previous 1.30 (colored)
Fix re-associations with athn(4) USB devices in station mode. Sending the firmware a NODE_ADD command for our BSS doesn't seem to have the desired effect in station mode. It made a new association after ifconfig down/up impossible until the device was re-plugged. Leave the code in place but limit it to hostap mode, just in case it is needed there (hard to tell since hostap mode seems to be broken -- no beacons are sent by the device). Also, when leaving run state, reset the RX filer to allow all beacons again. ok mpi@
Revision 1.30 / (download) - annotate - [select for diffs], Mon Mar 2 14:46:02 2015 UTC (10 years, 11 months ago) by stsp
Branch: MAIN
Changes since 1.29: +54 -29 lines
Diff to previous 1.29 (colored)
Rework ath(4) USB firmware command handling.
The previous code was racy and could dead-lock the USB task thread when a
firmware command timed out (e.g. because the user pulled out the device).
Handle this condition by marking the device as dying as soon as the interrupt
handler gets an IOERROR and making sleeping firmware command threads check
for a dying device when waking up.
Ensure that no thread will try to send a command before the previous one
has completed. There is only a single xfer data structure for firmware
command transfers and reusing an in-flight xfer will give the USB stack
curly toenails ("xfer not free").
Allow up to ATHN_USB_HOST_CMD_RING_COUNT firmware commands to be enqueued
on the command ring, rather than just one. Use standard usdb_wait_task()
when waiting for command ring completion instead of hand-rolled tsleep()s.
discussed with and ok mpi@
Revision 1.29 / (download) - annotate - [select for diffs], Mon Mar 2 13:47:08 2015 UTC (10 years, 11 months ago) by stsp
Branch: MAIN
Changes since 1.28: +32 -5 lines
Diff to previous 1.28 (colored)
Fix scanning with athn(4) USB devices. The driver artificially limited the number of slots for nodes in its net80211 node cache to 8, the rationale being the device firmware can only handle 8 associated nodes at a time. But that's not a good reason to only cache 8 of potentially many APs in the area. Instead of crippling upper layer data structures, impose the limit locally by raising an error if more than 8 nodes are trying to associate (which can only happen in hostap mode, and hostap mode seems to be broken anyway). This matches what Linux ath9k does. Also, use a USB-specific scan timeout callback to we can do USB refcounting while scanning. ok mpi@
Revision 1.28 / (download) - annotate - [select for diffs], Mon Mar 2 13:13:51 2015 UTC (10 years, 11 months ago) by stsp
Branch: MAIN
Changes since 1.27: +14 -6 lines
Diff to previous 1.27 (colored)
In athn(4), set USB pipe pointers to NULL after closing pipes. Not really required since this code runs during device detach but looks prettier. Also remove an unneeded call to usbd_abort_pipe() which is implied by usbd_close_pipe(). ok mpi@
Revision 1.27 / (download) - annotate - [select for diffs], Mon Mar 2 13:08:18 2015 UTC (10 years, 11 months ago) by stsp
Branch: MAIN
Changes since 1.26: +18 -2 lines
Diff to previous 1.26 (colored)
Teach athn(4) about USB reference counting to prevent it from causing major confusion in the USB stack. Also add some usbd_is_dying checks. suggested by + ok mpi@
Revision 1.26 / (download) - annotate - [select for diffs], Tue Feb 10 23:25:46 2015 UTC (10 years, 11 months ago) by mpi
Branch: MAIN
Changes since 1.25: +1 -2 lines
Diff to previous 1.25 (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.25 / (download) - annotate - [select for diffs], Mon Dec 22 02:28:52 2014 UTC (11 years, 1 month ago) by tedu
Branch: MAIN
Changes since 1.24: +1 -3 lines
Diff to previous 1.24 (colored)
unifdef INET
Revision 1.24 / (download) - annotate - [select for diffs], Fri Dec 19 22:44:59 2014 UTC (11 years, 1 month ago) by guenther
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)
Use <sys/endian.h> instead of <machine/endian.h> ok dlg@ mpi@ bcook@ millert@ miod@
Revision 1.23 / (download) - annotate - [select for diffs], Fri Oct 31 21:19:14 2014 UTC (11 years, 3 months ago) by tedu
Branch: MAIN
Changes since 1.22: +3 -1 lines
Diff to previous 1.22 (colored)
atheros ub94 support, from Matt Markfort
Revision 1.22 / (download) - annotate - [select for diffs], Sun Jul 13 15:52:49 2014 UTC (11 years, 6 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE,
OPENBSD_5_6
Changes since 1.21: +1 -3 lines
Diff to previous 1.21 (colored)
No need for <netinet/in_systm.h> here.
Revision 1.21 / (download) - annotate - [select for diffs], Sat Jul 12 18:48:52 2014 UTC (11 years, 6 months ago) by tedu
Branch: MAIN
Changes since 1.20: +4 -4 lines
Diff to previous 1.20 (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.20 / (download) - annotate - [select for diffs], Sat Jul 12 07:59:23 2014 UTC (11 years, 6 months ago) by mpi
Branch: MAIN
Changes since 1.19: +2 -17 lines
Diff to previous 1.19 (colored)
Kill a bunch of DVACT_DEACTIVATE handlers whose only purpose were to set the 'dying' flag of a device. Such handlers are useless now that usbd_detach() already set this flag. Even if the purpose of this flag is questionnable on OpenBSD because DVACT_DEACTIVATE acts as a pre-detach event, this is just a first small step towards the simplification of the autoconf(9) device states. This cleaning is now possible thanks to the work of pirofti@ to convert all the USB drivers to properly use usbd_is_dying(). Discussed many times with deraadt@
Revision 1.19 / (download) - annotate - [select for diffs], Wed Mar 19 10:09:19 2014 UTC (11 years, 10 months ago) by mpi
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)
Stop abusing the rcvif pointer to pass wireless nodes down to the driver start routines. Instead add & use a pointer in the pkthdr since we don't want the overhead of using a mbuf_tags(9). claudio@ pointed out that other subsystems might want to use this pointer too, so here's a new cookie! ok claudio@, mikeb@, deraadt@
Revision 1.18 / (download) - annotate - [select for diffs], Wed Aug 7 01:06:41 2013 UTC (12 years, 6 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE,
OPENBSD_5_5
Changes since 1.17: +1 -2 lines
Diff to previous 1.17 (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.17 / (download) - annotate - [select for diffs], Tue Jun 11 18:45:25 2013 UTC (12 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE,
OPENBSD_5_4
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)
Replace more ovbcopy with memmove; swap the src and dst arguments too
Revision 1.16 / (download) - annotate - [select for diffs], Mon Apr 15 09:23:01 2013 UTC (12 years, 9 months ago) by mglocker
Branch: MAIN
Changes since 1.15: +11 -11 lines
Diff to previous 1.15 (colored)
Get rid of various 'typedef struct' definitions and use plain structure definitions instead. We don't change usb.h for now to stay compatible with userland. Tested by mpi@ on macppc and myself on i386. ok mpi@
Revision 1.15 / (download) - annotate - [select for diffs], Fri Apr 12 12:58:39 2013 UTC (12 years, 9 months ago) by mpi
Branch: MAIN
Changes since 1.14: +4 -3 lines
Diff to previous 1.14 (colored)
Instead of using a wrapper around usbd_transfer() when submitting a transfer synchronously just pass the USBD_SYNCHRONOUS flag like any other flags when creating a transfer. ok sthen@, mglocker@
Revision 1.14 / (download) - annotate - [select for diffs], Fri Apr 5 05:39:46 2013 UTC (12 years, 10 months ago) by brad
Branch: MAIN
Changes since 1.13: +3 -1 lines
Diff to previous 1.13 (colored)
Fix USB athn(4) to be able to build on the RAMDISK. RAMDISK has SMALL_KERNEL so there is no HostAP. athn_usb_newassoc() would return if not in HostAP mode so just stub out the function and don't build the callback function for the RAMDISK. ok deraadt@
Revision 1.13 / (download) - annotate - [select for diffs], Thu Mar 28 04:12:12 2013 UTC (12 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.12: +1 -2 lines
Diff to previous 1.12 (colored)
removed unneccessary .h file
Revision 1.12 / (download) - annotate - [select for diffs], Mon Jan 14 09:50:31 2013 UTC (13 years ago) by jsing
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE,
OPENBSD_5_3
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)
Fix the sotfware.
Revision 1.11 / (download) - annotate - [select for diffs], Mon Jan 14 09:48:24 2013 UTC (13 years ago) by jsing
Branch: MAIN
Changes since 1.10: +1 -1 lines
Diff to previous 1.10 (colored)
Call the correct callback on node disassociation.
Revision 1.10 / (download) - annotate - [select for diffs], Mon Nov 12 22:38:26 2012 UTC (13 years, 2 months ago) by mikeb
Branch: MAIN
Changes since 1.9: +5 -1 lines
Diff to previous 1.9 (colored)
protect rxeof path with an splnet; ok kettenis
Revision 1.9 / (download) - annotate - [select for diffs], Sat Nov 10 14:35:06 2012 UTC (13 years, 2 months ago) by mikeb
Branch: MAIN
Changes since 1.8: +4 -2 lines
Diff to previous 1.8 (colored)
add a flag indicating whether shared code was initialized so that we can prevent calling athn_detach if it wasn't; suggestion and ok stsp
Revision 1.8 / (download) - annotate - [select for diffs], Sun Jul 3 15:47:17 2011 UTC (14 years, 7 months ago) by matthew
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE,
OPENBSD_5_2,
OPENBSD_5_1_BASE,
OPENBSD_5_1,
OPENBSD_5_0_BASE,
OPENBSD_5_0
Changes since 1.7: +1 -3 lines
Diff to previous 1.7 (colored)
Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thing
that's ever used it, and it's long since been changed to use
DVACT_{QUIESCE,SUSPEND,RESUME} instead.
ok deraadt@, dlg@; miod@ also agreed with this idea when I brought it
up a few weeks ago
Revision 1.7 / (download) - annotate - [select for diffs], Tue Jan 25 20:03:35 2011 UTC (15 years ago) by jakemsr
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE,
OPENBSD_4_9
Changes since 1.6: +1 -4 lines
Diff to previous 1.6 (colored)
garbage collect "usb events". without /dev/usb there is no way to access them from userland, and nothing in the kernel uses them. ok krw@, miod@
Revision 1.6 / (download) - annotate - [select for diffs], Sat Jan 8 15:18:01 2011 UTC (15 years, 1 month ago) by damien
Branch: MAIN
Changes since 1.5: +9 -7 lines
Diff to previous 1.5 (colored)
reserve one xfer for beacons during init.
Revision 1.5 / (download) - annotate - [select for diffs], Sat Jan 8 15:05:24 2011 UTC (15 years, 1 month ago) by damien
Branch: MAIN
Changes since 1.4: +6 -7 lines
Diff to previous 1.4 (colored)
fix LEDs handling. do not read back the LED GPIO pin since it is configured in output only mode. makes the link LED blink on the WiFiStation EXT when scanning (the LEDs indicating the signal strength are not working yet).
Revision 1.4 / (download) - annotate - [select for diffs], Thu Jan 6 19:20:54 2011 UTC (15 years, 1 month ago) by damien
Branch: MAIN
Changes since 1.3: +32 -28 lines
Diff to previous 1.3 (colored)
cleanup athn_usb_rx_frame(). remove padding after 802.11 header if any.
Revision 1.3 / (download) - annotate - [select for diffs], Thu Jan 6 19:03:12 2011 UTC (15 years, 1 month ago) by damien
Branch: MAIN
Changes since 1.2: +26 -16 lines
Diff to previous 1.2 (colored)
implement fast channel change. this dramatically reduces the number of register reads/writes and thus the number of context switches when changing channel. makes scanning much faster.
Revision 1.2 / (download) - annotate - [select for diffs], Thu Jan 6 17:45:36 2011 UTC (15 years, 1 month ago) by damien
Branch: MAIN
Changes since 1.1: +34 -11 lines
Diff to previous 1.1 (colored)
create STA entry for our BSS upon association. update Rx filter after association. move RECV_START command outside of rx_enable since rx_enable callback is not allowed to fail.
Revision 1.1 / (download) - annotate - [select for diffs], Thu Jan 6 07:27:15 2011 UTC (15 years, 1 month ago) by damien
Branch: MAIN
"athn* at uhub? port ?" this adds preliminary support for the Atheros AR9271 chipset and probably the AR9280+AR7010 and AR9287+AR7010 too though those were not tested. scanning still takes a very long time (~1 sec per channel) but otherwise, operation in STA mode seems stable. will implement fast channel change soon. committed over the Ubiquiti WifiStation EXT (AR9271) on i386 with WPA. requires firmware (see man page for details) ok deraadt@ (who checked the .h files)