summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_uath.c
AgeCommit message (Collapse)Author
2011-04-07Do not use NULL in integer comparisons. No functional change.Miod Vallat
ok matthew@ tedu@, also eyeballed by at least krw@ oga@ kettenis@ jsg@
2011-01-25garbage collect "usb events". without /dev/usb there is no way to accessJacob Meuser
them from userland, and nothing in the kernel uses them. ok krw@, miod@
2011-01-06Remove dead links.Damien Bergamini
Atheros have reworked their website.
2010-12-06* replace per-driver dying and/or other state variables with use ofJacob Meuser
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()
2010-10-27don't free network related resources if they were not allocatedJacob Meuser
2010-10-23check that a timeout(9) has been initialized before deleting itJacob Meuser
ok phessler
2010-10-23create another kthread to run xfer abort tasks. xfer abort tasks cannotJacob Meuser
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.
2010-08-27remove the unused if_init callback in struct ifnetJonathan Gray
ok deraadt@ henning@ claudio@
2010-06-29Interface drivers should use DV_IFNET, not DV_DULL.Matthew Dempsky
ok deraadt@
2010-04-20remove proc.h include from uvm_map.h. This has far reaching effects, asTed Unangst
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
2009-10-13Get rid of devact enum, substitute it with an int and coresponding defines.Paul Irofti
This is needed for the addition of further suspend/resume actions. Okay deraadt@, marco@.
2009-08-03timeout_add -> timeout_add_msecBret Lambert
ok jsg@
2008-12-15remove duplicated usb idDamien Bergamini
2008-10-15Second pass of simple timeout_add -> timeout_add_sec conversionsBret Lambert
This should take care of the simpler ones (i.e., timeout values of integer multiples of hz). ok krw@, art@
2008-09-23Add IDs for Philips SNU6500 to uath(4) ok damien@Can Erkin Acar
2008-07-21instead of passing rx tstamp and rssi to the ieee80211_input function,Damien Bergamini
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.
2008-06-08add following devicesYojiro Uo
- IODATA WN-G54/US (11bg) - MELCO WLI-U2-KAMG54 (11abg)
2008-04-17Add missing monitor mode capabilities flag.Brad Smith
ok damien@
2008-01-21Add support for SMC SMCWUSBT-G2.Jonathan Gray
Tested by Kaspo Lo <kaxpolox@yahoo.com>
2007-10-11treat usb vendor/product names as a locator, and have usbd_print handle it,Theo de Raadt
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
2007-09-11undo rev 1.10 "implement a zero-copy RX data path".Damien Bergamini
working with a fixed number of Rx buffers doesn't work well. fixes problems with blocked incoming traffic.
2007-09-07use new malloc M_ZERO flag to shrink kernel.Damien Bergamini
remove <malloc.h> from files where malloc is not used.
2007-08-28unify firmware load failure messages; ok mglockerTheo de Raadt
2007-07-18replace the ieee80211_wepkey structure with a more generic ieee80211_keyDamien Bergamini
one that can be used with other ciphers than WEP.
2007-06-14Remove the definition and usage of the USB_DECLARE_DRIVER_CLASS andMarc Balmer
USB_DECLARE_DRIVER macros. No binary change. ok dlg.
2007-06-12Remove the definition and use of the device_ptr_t which was a struct device *.Marc Balmer
No binary change. ok mk.
2007-06-10Remove the definition and use of the USBDEVNAME macro.Marc Balmer
(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.
2007-06-10Remove the definition and use of the USBDEV macro. It only created confusionMarc Balmer
and the address of it's argument: USBDEV(sc->sc_dev) yields &sc->sc_dev. No binary changes. ok jsg.
2007-06-09Remove the definition and use of if_deactivate(). It was defined empty andMarc Balmer
thus produced no code at all. No binary change. ok jsg.
2007-06-09re-indent prototypes after "Static" removal.Damien Bergamini
no binary change.
2007-06-05Remove the "Static" declaration of many functions. It was defined to be emptyMarc Balmer
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.
2007-05-27Farewell USB_{ATTACH,MATCH,DETACH}* you will not be missed.Jonathan Gray
ok deraadt@ krw@ mbalmer@
2007-05-21Remove logprintf macroJonathan Gray
2007-02-19do not do a curproc test for interrupt context, because it is plainly wrong.Theo de Raadt
this lets these work on macppc, for instance diagnosed by kettenis, but damien is not around, so ok jsg and others
2007-01-02Don't use M_DUP_PKTHDR() in the driver bpf hook. Using M_DUP_PKTHDR() on aClaudio Jeker
static mbuf results in a mbuf tag memory leak. Same change as in rum(4). OK mglocker@
2006-12-16trim 802.11 FCS from received frames.Damien Bergamini
noticed by jsg@
2006-12-03don't include <net80211/ieee80211_amrr.h>Damien Bergamini
rate control is handled by firmware.
2006-12-03The device doesn't always detach gracefully from the bus after a firmwareDamien Bergamini
upload. We thus force a port reset and a re-exploration on the parent hub after firmware upload. In uath_newstate(), if we're called from a process context, we don't need to schedule a USB task. This fixes a problem in uath_stop(): when moving to the S_INIT state, the task was scheduled after the device was reset. Don't abort the RX firmware command pipe in uath_stop(), otherwise we will never receive commands ACKs from the firmware anymore. We now survive to an ifconfig down up.
2006-11-26do not have each net80211 driver define its own rates structures. if they useTheo de Raadt
the standard rates, use some defined by net80211 itself. kernel shrinks a bit ok jsg mglocker
2006-10-03make sure to call SLIST_INIT on sc->rx_freelist.Damien Bergamini
sanity check length field in RX descriptors.
2006-09-20implement a zero-copy RX data path.Damien Bergamini
instead of copying the xfer buffer's content into a mbuf cluster, attach the xfer buffer as a mbuf external storage and pass it to the net80211 layer as is. maintain a reference count on the softc structure and wait in detach() until all references have been released by the network layer.
2006-09-18fix my 1.7 commit.Damien Bergamini
in uath_reset(), return on error if tsleep() fails.
2006-09-18better uath_set_rates().Damien Bergamini
2006-09-18cleanup the list of supported devices.Damien Bergamini
2006-09-18don't use IF_PREPEND() on altq's.Damien Bergamini
use IFQ_POLL()/IFQ_DEQUEUE() logic instead as described in altq(4).
2006-09-18More uath devices, also properly mark some of the UB52/AR5005UX devicesJonathan Gray
with the dual band flag.
2006-09-16add new uath(4) ids and fix existing ones.Damien Bergamini
ok deraadt@
2006-09-16more uath(4) usb ids.Damien Bergamini
from jsg@
2006-09-16indentDamien Bergamini
2006-09-16Initial import of uath(4), a driver for Atheros USB2.0 AR5005UG/AR5005UXDamien Bergamini
chipsets. Based on a black-box analysis of the Windows binary driver. Requires a firmware that is not freely redistributable (see man uath). The driver handles both pre- and post-firmware devices. Still a bit experimental but Tx/Rx works great in BSS mode (on i386). No 802.11a, IBSS, or HostAP modes yet but there's more to come. Great thanks to jsg@ for digging the USB IDs out of the Windows driver. Committed over a D-Link DWL-G132.