summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/if_uath.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Match another Netgear WG111T. This one shares the Non-Firmware ID of ampi2015-07-151-2/+5
| | | | | | another device. ok stsp@
* Fix a crash caused by uath(4) if device init fails.stsp2015-07-151-39/+43
| | | | | | usbd_close_pipes() now implies xfer cancellation and this driver was relying on assumptions from times when it didn't. With and ok mpi@
* Remove some includes include-what-you-use claims don'tjsg2015-03-141-3/+1
| | | | | | | have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
* Wireless drivers call if_input() via ieee80211_input() which set `rcvif'mpi2015-02-101-2/+1
| | | | | | | on every received mbuf, so there's no need to initialize this pointer in the drivers. Tested by and ok phessler@
* unifdef INETtedu2014-12-221-3/+1
|
* Use <sys/endian.h> instead of <machine/endian.h>guenther2014-12-191-2/+2
| | | | ok dlg@ mpi@ bcook@ millert@ miod@
* move arc4random prototype to systm.h. more appropriate for most codetedu2014-11-181-2/+1
| | | | to include that than rdnvar.h. ok deraadt dlg
* Remove the port status argument from usbd_reset_port(). We don't dompi2014-11-011-4/+2
| | | | | anything with it and it simplifies this mess in order to implement warm reset.
* No need for <netinet/in_systm.h> here.mpi2014-07-131-3/+1
|
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-121-2/+2
| | | | after discussions with beck deraadt kettenis.
* Kill a bunch of DVACT_DEACTIVATE handlers whose only purpose were tompi2014-07-121-28/+9
| | | | | | | | | | | | | | 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@
* Stop abusing the rcvif pointer to pass wireless nodes down to thempi2014-03-191-3/+2
| | | | | | | | | | 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@
* Do not define per-driver DEBUG variable when USB_DEBUG is defined. It'smpi2014-03-071-5/+1
| | | | | really impossible to debug the USB stack when any single device you plug in your machine starts to vomit its own poetry,
* Most network drivers include netinet/in_var.h, but apparently theybluhm2013-08-071-2/+1
| | | | | don't have to. Just remove these include lines. Compiled on amd64 i386 sparc64; OK henning@ mikeb@
* Replace more ovbcopy with memmove; swap the src and dst arguments tooderaadt2013-06-111-3/+3
|
* Get rid of various 'typedef struct' definitions and use plain structuremglocker2013-04-151-8/+8
| | | | | | | | | 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@
* Instead of using a wrapper around usbd_transfer() when submitting ampi2013-04-121-9/+10
| | | | | | | transfer synchronously just pass the USBD_SYNCHRONOUS flag like any other flags when creating a transfer. ok sthen@, mglocker@
* attach to D-Link WUA-2340, from Aaron Wirtz on misc@sthen2012-10-031-1/+2
|
* Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thingmatthew2011-07-031-4/+1
| | | | | | | | 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
* Do not use NULL in integer comparisons. No functional change.miod2011-04-071-2/+2
| | | | ok matthew@ tedu@, also eyeballed by at least krw@ oga@ kettenis@ jsg@
* garbage collect "usb events". without /dev/usb there is no way to accessjakemsr2011-01-251-7/+1
| | | | | | them from userland, and nothing in the kernel uses them. ok krw@, miod@
* Remove dead links.damien2011-01-061-3/+1
| | | | Atheros have reworked their website.
* * replace per-driver dying and/or other state variables with use ofjakemsr2010-12-061-1/+5
| | | | | | | usbd_deactivete() and usbd_is_dying() * use usbd_deactivate() in activate()/DEACTIVATE * convert a few more direct checks of the associated bus' dying flag with usbd_is_dying()
* don't free network related resources if they were not allocatedjakemsr2010-10-271-3/+5
|
* check that a timeout(9) has been initialized before deleting itjakemsr2010-10-231-3/+5
| | | | ok phessler
* create another kthread to run xfer abort tasks. xfer abort tasks cannotjakemsr2010-10-231-2/+2
| | | | | | | | | | | be run from the generic task kthread, because xfers that need to be aborted block newly queued tasks from running (i.e. the xfer to be aborted blocks the abort of that task). as there are now three types of usb tasks, add an argument to usb_init_task() and another member to struct usb_task to specify the task type. fixes boot hangs that are showing up because we now use usb tasks to attach/detach usb devices.
* remove the unused if_init callback in struct ifnetjsg2010-08-271-2/+1
| | | | ok deraadt@ henning@ claudio@
* Interface drivers should use DV_IFNET, not DV_DULL.matthew2010-06-291-2/+2
| | | | ok deraadt@
* remove proc.h include from uvm_map.h. This has far reaching effects, astedu2010-04-201-2/+1
| | | | | | 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
* Get rid of devact enum, substitute it with an int and coresponding defines.pirofti2009-10-131-4/+4
| | | | | | This is needed for the addition of further suspend/resume actions. Okay deraadt@, marco@.
* timeout_add -> timeout_add_msecblambert2009-08-031-2/+2
| | | | ok jsg@
* remove duplicated usb iddamien2008-12-151-2/+1
|
* Second pass of simple timeout_add -> timeout_add_sec conversionsblambert2008-10-151-3/+3
| | | | | | | This should take care of the simpler ones (i.e., timeout values of integer multiples of hz). ok krw@, art@
* Add IDs for Philips SNU6500 to uath(4) ok damien@canacar2008-09-231-1/+2
|
* instead of passing rx tstamp and rssi to the ieee80211_input function,damien2008-07-211-2/+8
| | | | | | | pass a pointer to an ieee80211_rxinfo structure containing those two fields plus an extra flags field that indicates whether the frame was decrypted by hardware or not. required for a future fix.
* add following devicesyuo2008-06-081-1/+3
| | | | | - IODATA WN-G54/US (11bg) - MELCO WLI-U2-KAMG54 (11abg)
* Add missing monitor mode capabilities flag.brad2008-04-171-1/+2
| | | | ok damien@
* Add support for SMC SMCWUSBT-G2.jsg2008-01-211-1/+2
| | | | Tested by Kaspo Lo <kaxpolox@yahoo.com>
* treat usb vendor/product names as a locator, and have usbd_print handle it,deraadt2007-10-111-6/+1
| | | | | | so that it shows up before the :. as a result, all the usb devices do not need to have name printing code anymore. all this now works and prints nicely because usbd_probe_and_attach() is serialized. ok kettenis
* undo rev 1.10 "implement a zero-copy RX data path".damien2007-09-111-52/+47
| | | | | working with a fixed number of Rx buffers doesn't work well. fixes problems with blocked incoming traffic.
* use new malloc M_ZERO flag to shrink kernel.damien2007-09-071-2/+1
| | | | remove <malloc.h> from files where malloc is not used.
* unify firmware load failure messages; ok mglockerderaadt2007-08-281-3/+3
|
* replace the ieee80211_wepkey structure with a more generic ieee80211_keydamien2007-07-181-11/+8
| | | | one that can be used with other ciphers than WEP.
* Remove the definition and usage of the USB_DECLARE_DRIVER_CLASS andmbalmer2007-06-141-2/+17
| | | | | | | | USB_DECLARE_DRIVER macros. No binary change. ok dlg.
* Remove the definition and use of the device_ptr_t which was a struct device *.mbalmer2007-06-121-3/+3
| | | | | | No binary change. ok mk.
* Remove the definition and use of the USBDEVNAME macro.mbalmer2007-06-101-61/+61
| | | | | | | (This might look easy, but it was a big diff. Thanks to dlg and especially jsg for looking over it; we found at least four mistakes in the initial diff.) ok jsg.
* Remove the definition and use of the USBDEV macro. It only created confusionmbalmer2007-06-101-3/+3
| | | | | | | | and the address of it's argument: USBDEV(sc->sc_dev) yields &sc->sc_dev. No binary changes. ok jsg.
* Remove the definition and use of if_deactivate(). It was defined empty andmbalmer2007-06-091-2/+1
| | | | | | | | thus produced no code at all. No binary change. ok jsg.
* re-indent prototypes after "Static" removal.damien2007-06-091-24/+16
| | | | no binary change.
* Remove the "Static" declaration of many functions. It was defined to be emptymbalmer2007-06-051-97/+97
| | | | | | | and it was not consistently used. It was confusing as it suggested these functions were static, which they were not. discussed with dlg and jsg, ok jsg.