summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/wlan
Commit message (Collapse)AuthorAgeFilesLines
* Change USB_DEBUG to #ifdef and allow it to be turned off. Previously this hadthompsa2010-04-224-4/+4
| | | | | | the illusion of a tunable setting but was always turned on regardless. MFC after: 1 week
* Remove previously added if 0's.rpaulo2010-04-091-12/+0
| | | | MFC after: 1 month
* Remove debugging code that snuck in.rpaulo2010-04-071-1/+0
|
* net80211 rate control framework (net80211 ratectl).rpaulo2010-04-079-210/+121
| | | | | | | | | | | | | | | | | This framework allows drivers to abstract the rate control algorithm and just feed the framework with the usable parameters. The rate control framework will now deal with passing the parameters to the selected algorithm. Right now we have AMRR (the default) and RSSADAPT but there's no way to select one with ifconfig, yet. The objective is to have more rate control algorithms in the net80211 stack so all drivers[0] can use it. Ideally, we'll have the well-known sample rate control algorithm in the net80211 at some point so all drivers can use it (not just ath). [0] all drivers that do rate control in software, that is. Reviewed by: bschmidt, thompsa, weyongo MFC after: 1 months
* - Integrate latest driver code from OpenBSDthompsa2010-03-113-129/+611
| | | | | | | - Drain our tasks from the ieee80211 taskqueue - Add more IDs Submitted by: Akinori Furukoshi
* Add the Netgear WPN111thompsa2010-01-291-0/+1
|
* Attempt to recover on a TX error rather than stopping all transfers.thompsa2010-01-292-8/+18
| | | | Submitted by: Hans Petter Selesky
* Add device ID.thompsa2010-01-291-0/+1
| | | | PR: usb/142427
* Use device_printf rather than printf + device_get_nameunit.thompsa2010-01-281-30/+21
|
* Release the firmware after loading to the device.thompsa2010-01-282-16/+28
|
* Add run(4), a driver for Ralink RT2700U/RT2800U/RT3000U USB 802.11agn devices.thompsa2010-01-283-0/+5495
| | | | | This driver was written for OpenBSD by Damien Bergamini and ported over by Akinori Furukoshi.
* adds sysctl knobs to show rate statistics that it could be useful toweongyo2010-01-272-0/+59
| | | | debug slow TX speed.
* removes a hack to attach TRENDnet TEW-504UB/EU that I think this issueweongyo2010-01-191-1/+0
| | | | | is solved with r202607. Now idProduct of all uath(4) devices should be decreased after loading the firmware.
* Use macros to strip off USB_VENDOR_ and USB_PRODUCT_ from some id tables to makethompsa2009-12-262-77/+81
| | | | them more compact and readable.
* Remove overuse of exclamation marks in kernel printfs, there mere fact athompsa2009-11-261-14/+14
| | | | | | message has been printed is enough to get someones attention. Also remove the line number for DPRINTF/DPRINTFN, it already prints the funtion name and a unique message.
* fixes a typo that value should be 0 not 10.weongyo2009-11-031-1/+1
|
* overhauls urtw(4) for supporting RTL8187B devices properly that thereweongyo2009-10-183-371/+658
| | | | | | | | | | | | | | | | | | | | | | was major changes to initialize RF chipset and set H/W registers and removed a lot of magic numbers on code. Details are as follows: - uses the endpoint 0x89 to get TX status information which used to get TX complete or retry numbers or get a beacon interrupt. It's only valuable for RTL8187B. - removes urtw_write[8|16|32]_i functions that it's useless now. - uses ic->ic_updateslot to set SLOT, SIFS, DIES, EIFS, CW_VAL registers that doesn't set these whenever the channel is changed. - code for initializing RF chipset for RTL8187B changed a lot that there was many problems on TX transfers so it doesn't work properly even if just for a ping/pong. Now it becomes more stable than before that TX throughputs using netperf(1) were about 15 ~ 17Mbps/s though sometimes it encounters packet losses. - removes a lot of magic numbers that in the previous all of representing RX and TX descriptors were consisted of magic numbers and structures. It'd be more readable rather than before. - calculates TX duration more accurately for urtw(4) devices. - style(9)
* fixes a TX hang that could be possible to happen when the trasfers areweongyo2009-10-145-2/+23
| | | | | | | in the high speed that some drivers don't call if_start callback after marking ~IFF_DRV_OACTIVE. MFC after: 3 days
* fixes a TX hang bug that it could happen when if_start callback didn'tweongyo2009-10-141-2/+8
| | | | | | | be restarted by full of the output queue. MFC after: 3 days Tested by: bsduser <bsd at acd.homelinux.org>
* updates device entries supported with the product name not magic numbersweongyo2009-10-041-11/+12
| | | | | | and sorts entries. WUSB54GCV2 is added. Obtained from: OpenBSD
* Revert previous commit and add myself to the list of people who shouldphk2009-09-083-1284/+1276
| | | | know better than to commit with a cat in the area.
* Add necessary include.phk2009-09-083-1276/+1284
|
* fix a TX issue on big endian machines like powerpc or sparc64. Nowweongyo2009-09-041-1/+1
| | | | | | zyd(4) should work on all architectures. Obtained from: OpenBSD
* Remove redundant locking.alfred2009-08-241-2/+0
| | | | Submitted by: hps
* Temporarily revert the new-bus locking for 8.0 release. It will bejhb2009-08-201-2/+2
| | | | | | reintroduced after HEAD is reopened for commits by re@. Approved by: re (kib), attilio
* Make the newbus subsystem Giant free by adding the new newbus sxlock.attilio2009-08-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The newbus lock is responsible for protecting newbus internIal structures, device states and devclass flags. It is necessary to hold it when all such datas are accessed. For the other operations, softc locking should ensure enough protection to avoid races. Newbus lock is automatically held when virtual operations on the device and bus are invoked when loading the driver or when the suspend/resume take place. For other 'spourious' operations trying to access/modify the newbus topology, newbus lock needs to be automatically acquired and dropped. For the moment Giant is also acquired in some key point (modules subsystem) in order to avoid problems before the 8.0 release as module handlers could make assumptions about it. This Giant locking should go just after the release happens. Please keep in mind that the public interface can be expanded in order to provide more support, if there are really necessities at some point and also some bugs could arise as long as the patch needs a bit of further testing. Bump __FreeBSD_version in order to reflect the newbus lock introduction. Reviewed by: ed, hps, jhb, imp, mav, scottl No answer by: ariff, thompsa, yongari Tested by: pho, G. Trematerra <giovanni dot trematerra at gmail dot com>, Brandon Gooch <jamesbrandongooch at gmail dot com> Sponsored by: Yahoo! Incorporated Approved by: re (ksmith)
* adds DLINK2 DWA120 device.weongyo2009-07-271-0/+1
| | | | | | PR: usb/136950 Reported by: Alexander Kuznetsov <skritku at gmail.com> Approved by: re (kib)
* Add ids of Sitecom USB wlan gadget.phk2009-06-281-0/+1
| | | | Approved by: re (kib)
* Use if_maddr_rlock()/if_maddr_runlock() rather than IF_ADDR_LOCK()/rwatson2009-06-263-6/+2
| | | | | | | | | | | | | IF_ADDR_UNLOCK() across network device drivers when accessing the per-interface multicast address list, if_multiaddrs. This will allow us to change the locking strategy without affecting our driver programming interface or binary interface. For two wireless drivers, remove unnecessary locking, since they don't actually access the multicast address list. Approved by: re (kib) MFC after: 6 weeks
* updates AMRR statistics with tx complete status that if not the tx rateweongyo2009-06-251-0/+3
| | | | always would be reduced.
* uses ZYD_NOTIF_RETRYSTATUS info to count the number of retries.weongyo2009-06-251-1/+2
|
* - Make struct usb_xfer opaque so that drivers can not access the internalsthompsa2009-06-236-219/+222
| | | | - Reduce the number of headers needed for a usb driver, the common case is just usb.h and usbdi.h
* reorders the sequence when the device is detached. After detaching theweongyo2009-06-171-6/+34
| | | | | | | interface is completed then it'll process other parts to avoid a race condition. Pointed by: jhb
* s/usb2_/usb_|usbd_/ on all function names for the USB stack.thompsa2009-06-156-204/+204
|
* Make variables static where appropriate.thompsa2009-06-131-1/+1
| | | | Found by: cscout
* unify zyd_tx_mgt() and zyd_tx_data() to simplify TX path and sortsweongyo2009-06-092-137/+60
| | | | | | | setting TX descritor. While I'm here fixes a bug that the management frames only sent at 2 Mbits/s.
* reimplements RF logic for GCT chipset (as known as UW2453) to supportweongyo2009-06-042-155/+187
| | | | | | | | | | ICIDU NI-707503 which is donated by Nick Hibma (great thanks!). Though it has a MAXIM RF (0x8) there's some success reports with using GCT RF (0x9) codes and it worked well for ICIDU NI-707503 too. So codes for MAXIM and GCT RFs are integrated. Before this commit, if I rememeber correctly, MAXIM RF is never tested that it seems it's a first report working with FreeBSD.
* cleanups the device match list.weongyo2009-06-041-48/+52
|
* ZyXEL G-202 has zd1211b chipset, not zd1211.weongyo2009-06-011-1/+1
| | | | Tested by: Samuel Boivie <samuel at boivie.org>
* validate tx rate(s) in the raw xmit pathsam2009-05-292-6/+6
| | | | Tested by: "Paul B. Mahol" <onemda@gmail.com> (rum, bwi)
* s/usb2_/usb_/ on all typedefs for the USB stack.thompsa2009-05-297-237/+237
|
* adds new device IDs.weongyo2009-05-291-0/+2
| | | | | PR: usb/135009 Submitted by: Bill Squire <billsf at 2600.COM>
* s/usb2_/usb_/ on all C structs for the USB stack.thompsa2009-05-2812-100/+100
|
* ports urtw(4) for USB2. Additionally it supports a 8187B chipset weaklyweongyo2009-05-273-0/+4718
| | | | that it needs more stabilization.
* Print out device attachment.thompsa2009-05-212-0/+2
|
* Rename the usb sysctl tree from hw.usb2.* back to hw.usb.*.thompsa2009-05-214-11/+11
| | | | Submitted by: Hans Petter Selasky
* - rename usb2_mode to usb_mode [1]thompsa2009-05-215-5/+5
| | | | | | - change variable types to use the enum Submitted by: Hans Petter Selasky [1]
* Overhaul monitor mode handling:sam2009-05-208-152/+151
| | | | | | | | | | | | | | | | | | | | | | | | o replace DLT_IEEE802_11 support in net80211 with DLT_IEEE802_11_RADIO and remove explicit bpf support from wireless drivers; drivers now use ieee80211_radiotap_attach to setup shared data structures that hold the radiotap header for each packet tx/rx o remove rx timestamp from the rx path; it was used only by the tdma support for debugging and was mostly useless due to it being 32-bits and mostly unavailable o track DLT_IEEE80211_RADIO bpf attachments and maintain per-vap and per-com state when there are active taps o track the number of monitor mode vaps o use bpf tap and monitor mode vap state to decide when to collect radiotap state and dispatch frames; drivers no longer explicitly directly check bpf state or use bpf calls to tap frames o handle radiotap state updates on channel change in net80211; drivers should not do this (unless they bypass net80211 which is almost always a mistake) o update various drivers to be more consistent/correct in handling radiotap o update ral to include TSF in radiotap'd frames o add promisc mode callback to wi Reviewed by: cbzimmer, rpaulo, thompsa
* try to unsetup USB xfers before calling ieee80211_ifdetach() to fix aweongyo2009-05-202-2/+2
| | | | | | | | bug referencing a destroyed lock within TX callbacks during device detach. Submitted by: hps (original version) Tested by: Lucius Windschuh <lwindschuh at googlemail.com>
* add TRENDnet TEW-504UB/EUsam2009-05-171-0/+1
| | | | Submitted by: Lucius Windschuh <lwindschuh@googlemail.com>
OpenPOWER on IntegriCloud