summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_zyd.c
AgeCommit message (Collapse)Author
2011-07-03Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thingMatthew Dempsky
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
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@
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@
2009-11-22add a bunch of devices found in linux driversJonathan Gray
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-06-01oops, bad merge.Damien Bergamini
2009-06-01- cleanup tx pathDamien Bergamini
- nitemize
2009-06-01fix endianness issue.Damien Bergamini
tested by jsg@ on tadpole sparc64 laptop.
2009-05-31Add AL2230S support, extracted from part of a massiveJonathan Gray
'sync to p4' style commit in FreeBSD.
2009-05-31PV2000 -> AL2230SJonathan Gray
2009-05-31Match on siemens zd1211b, support for the al2230s radioJonathan Gray
is not yet in, but this makes things easier.
2009-03-27Sitecom WL-603 should work according to linux driverJonathan Gray
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-08-27hardware may pass us ACK or CTS frames in some cases, so useDamien Bergamini
IEEE80211_ACK_LEN instead of IEEE80211_MIN_LEN for ZYD_MIN_RXBUFSZ and ZYD_MIN_FRAGSZ. silence some warnings while i'm there. change ZYD_FILTER_BSS to use the same value as the vendor's driver that contains some magic (undocumented) bits.
2008-08-27introduce new IEEE80211_STA_ONLY kernel option that can be set toDamien Bergamini
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.
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-05-27Add ZyXEL G-202, which was already in usbdevs.Jonathan Gray
From/tested by pedro@am-gen.org
2008-04-16Kernel implementation of the 4-way handshake and group-keyDamien Bergamini
handshake protocols (both supplicant and authenticator state machines) as defined in the IEEE 802.11i standard. Software implementation of the TKIP (Temporal Key Integrity Protocol) and CCMP (CTR with CBC-MAC Protocol) protocols. This diff doesn't implement any of the 802.1X authentication protocols and thus only PSK authentication (using pre-shared keys) is currently supported. In concrete terms, this adds support for WPA-PSK and WPA2-PSK protocols, both in station and hostap modes. The following drivers are marked as WPA-capable and should work: bwi(4), malo(4), ral(4), iwn(4), wpi(4), ural(4), rum(4), upgt(4), and zyd(4) The following options have been added to ifconfig(8): wpa, wpapsk, wpaprotos, wpaakms, wpaciphers, wpagroupcipher wpa-psk(8) can be used to generate keys from passphrases. tested by many@ ok deraadt@
2007-12-07more zydas versions, collected from various placesTheo de Raadt
2007-11-27properly update hardware multicast filter.Damien Bergamini
hints from zd1211rw.
2007-11-18add the Planex GW-US54GXS adapter.Brad Smith
From the Linux ZyDAS driver. ok dlg@
2007-11-03two fixes from FreeBSD:Damien Bergamini
- fix an incorrect setting of `retry times' in case of zd1211b - increase max rx size so there's room for multi-frame transactions (slightly modified version) from the Linux zd1211rw driver: - patch registers CR47 and CR157 on devices that require it - fix power calibration setting on ZD1211B
2007-10-14attach Planex GWUS54GD, from freebsdFelix Kronlage
ok damien@
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-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-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-05-27Farewell USB_{ATTACH,MATCH,DETACH}* you will not be missed.Jonathan Gray
ok deraadt@ krw@ mbalmer@
2007-02-11Don't enable debug spam by default.Jonathan Gray
2007-02-09Add a bunch more zyd(4) devicesJonathan Gray
2007-01-14Match some additional devices found in Linux driver.Jonathan Gray
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-16o add missing calibration bits for ZD1211B in zyd_set_chan()Damien Bergamini
o add workaround for TX rate==0 bug here too.
2006-12-09Add USR5423. -mojMats O Jansson
2006-12-02Add a "break" which makes AL7230B initialize now. Still doesn't workMarcus Glocker
afterwards, but ... Spotted by claudio@, ok deraadt@ jsg@
2006-11-30cosmeticDamien Bergamini
2006-11-30fix PHY initialization for ZD1211B.Damien Bergamini
we were iterating from 0 to N(zyd_def_phy), but N(zyd_def_phy) is not equal to N(zyd_def_phyB). we were probably writting garbage to the PHY.
2006-11-30fix setting of MAC register ZYD_MAC_RETRY for ZD1211B.Damien Bergamini
maximum retry count must be set for each EDCA access category.
2006-11-30more ZD1211B devicesJonathan Gray
2006-11-29Remaining bits required for ZD1211B support.Jonathan Gray
Seems to work fine with Linksys and 3Com adapters.
2006-11-29match Linksys WUSBF54GJonathan Gray
2006-11-27Initial untested bits for ZD1211B support, different initJonathan Gray
sequences for radios not yet done. "commit what you have" damien@