summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/wlan/if_uath.c
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Importing pfSense patches net80211HEAD.tgz and conf.file.ieee80211.diff"Renato Botelho2016-02-221-15/+16
| | | | This reverts commit 6ee75bdd7bf7c20359dd6e38c243586cb062edea.
* Importing pfSense patches net80211HEAD.tgz and conf.file.ieee80211.diffRenato Botelho2015-08-171-16/+15
|
* MFC r260444:kevlo2014-02-171-1/+1
| | | | | | | | | | | | | Rename definition of IEEE80211_FC1_WEP to IEEE80211_FC1_PROTECTED. The origin of WEP comes from IEEE Std 802.11-1997 where it defines whether the frame body of MAC frame has been encrypted using WEP algorithm or not. IEEE Std. 802.11-2007 changes WEP to Protected Frame, indicates whether the frame is protected by a cryptographic encapsulation algorithm. Reviewed by: adrian, rpaulo
* MFC r238274, r246752, r256720, r256721, r256722, r256955, r257409hselasky2013-12-161-2/+7
| | | | | | | | | | | r257429, r257435, r257712, r257732, r257743, r257748, r257955 r257957, r257958, r258082, r258641, r258643, r258732, r258733, r258840, r258919, r258921, r259029, r259030, r259031, r259032 and r259046: - Add support for the MediaTek/Ralink RT5370/RT5372 chipset. - Various minor USB WLAN fixes and improvements. PR: usb/182936
* Revert r252725 as it breaks WPA.rpaulo2013-07-141-6/+0
| | | | | | We need to fix wpa_supplicant because it checks whether the card has ic_cryptocaps set. Since net80211 can do software encryption this check in wpa_supplicant is wrong.
* Set ic_cryptocaps to make sure wpa_supplicant works with WEP.rpaulo2013-07-041-0/+6
|
* - Streamline detach logic in wlan drivers, so thathselasky2013-02-101-20/+38
| | | | | | | | | | | freed memory cannot be used during detach. - Remove all panic() calls from the urtw driver because panic() is not appropriate here. - Remove redundant checks for device detached in device detach callbacks. - Use DEVMETHOD_END to mark end of device methods. MFC after: 2 weeks
* Make sure we don't leak command buffers when a USBhselasky2013-02-081-6/+6
| | | | | | | command transfer fails. MFC after: 1 week Reported by: Ian FREISLICH
* Fix regression issue after r244503:hselasky2013-02-081-13/+13
| | | | | | | Correct init order to fix a NULL pointer access. MFC after: 1 week Reported by: Ian FREISLICH
* Make sure all USB drivers allocate buffer memoryhselasky2012-12-201-49/+29
| | | | | | | | | | | | | through the USB API and/or busdma. The following assumptions have been made: umass - buffers passed from CAM/SCSI layer are OK network - mbufs are OK. Some other nits while at it. MFC after: 1 week Suggested by: imp
* Mechanically substitute flags from historic mbuf allocator withglebius2012-12-041-2/+2
| | | | malloc(9) flags in sys/dev.
* Add missing CTLFLAG_TUN flag to tunable sysctls in USB stack.hselasky2012-10-261-2/+2
| | | | | | | | Rearrange the tunables and belonging sysctl declarations, so that they are next to eachother. Submitted by: n_hibma @ MFC after: 1 week
* Fix compiler warnings, mostly signed issues,hselasky2012-04-021-9/+14
| | | | | | when USB modules are compiled with WARNS=9. MFC after: 1 weeks
* Fix some net80211 enum nits:bschmidt2011-12-171-7/+7
| | | | | | | | | | - ic_vap_create() uses an ieee80211_opmode argument - ieee80211_rate2media() takes an ieee80211_phymode argument - ieee80211_plcp2rate() takes an ieee80211_phytype argument - cast to enum ieee80211_protmode and ieee80211_roamingmode to silence compiler warnings Submitted by: arundel@
* Style change.hselasky2011-11-121-9/+9
| | | | | | | | | | | | - Make it easier to port the USB code to other platforms by only using one set of memory functions for clearing and copying memory. None of the memory copies are overlapping. This means using bcopy() is not required. - Fix a compile warning when USB_HAVE_BUSDMA=0 - Add missing semicolon in avr32dci. - Update some comments. MFC after: 1 week
* Mark all SYSCTL_NODEs static that have no corresponding SYSCTL_DECLs.ed2011-11-071-1/+1
| | | | | | The SYSCTL_NODE macro defines a list that stores all child-elements of that node. If there's no SYSCTL_DECL macro anywhere else, there's no reason why it shouldn't be static.
* The SMCWUSBG is a zyd(4) device, not an uath(4) device. Remove from thegavin2011-06-261-1/+0
| | | | | | | | | | | | | | | latter. It appears that the addition to uath(4) came in through PR kern/135009, which had tested another device, the SMCWUSBTG2, successfully with uath(4) and included the SMCWUSBG as it "has the same chipset". I can find no other evidence that these two do actually share the same chipset. Moreover, Linux treats the SMCWUSBG as a zyd(4) device also. This reverts r223537. Discussed with: hselasky, kevlo MFC after: 1 week
* - Move all USB device ID arrays into so-called sections,hselasky2011-06-241-1/+1
| | | | | | | | | | | | sorted according to the mode which they support: host, device or dual mode - Add generic tool to extract these data: tools/bus_autoconf Discussed with: imp Suggested by: Robert Millan <rmh@debian.org> PR: misc/157903 MFC after: 14 days
* We need to grab a node reference count to vap->iv_bss before using it as it isthompsa2010-09-021-3/+9
| | | | | possible for the node to be replaced and freed at any time by ieee80211_sta_join1().
* Add missing MODULE_VERSION() definitions, this resolves problems aroundthompsa2010-09-011-0/+1
| | | | | | | | duplicate module loads. PR: usb/125736 Submitted by: danger, mm Reviewed by: hselasky
* Add new tunable 'net.link.ifqmaxlen' to set default send interfacesobomax2010-05-031-2/+2
| | | | | | | | | | queue length. The default value for this parameter is 50, which is quite low for many of today's uses and the only way to modify this parameter right now is to edit if_var.h file. Also add read-only sysctl with the same name, so that it's possible to retrieve the current value. MFC after: 1 month
* Add the Netgear WPN111thompsa2010-01-291-0/+1
|
* 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.
* fixes a TX hang that could be possible to happen when the trasfers areweongyo2009-10-141-0/+3
| | | | | | | in the high speed that some drivers don't call if_start callback after marking ~IFF_DRV_OACTIVE. MFC after: 3 days
* adds DLINK2 DWA120 device.weongyo2009-07-271-0/+1
| | | | | | PR: usb/136950 Reported by: Alexander Kuznetsov <skritku at gmail.com> Approved by: re (kib)
* - Make struct usb_xfer opaque so that drivers can not access the internalsthompsa2009-06-231-35/+36
| | | | - 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-151-20/+20
|
* s/usb2_/usb_/ on all typedefs for the USB stack.thompsa2009-05-291-5/+5
|
* 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-281-10/+10
|
* Print out device attachment.thompsa2009-05-211-0/+1
|
* Rename the usb sysctl tree from hw.usb2.* back to hw.usb.*.thompsa2009-05-211-5/+5
| | | | Submitted by: Hans Petter Selasky
* - rename usb2_mode to usb_mode [1]thompsa2009-05-211-1/+1
| | | | | | - change variable types to use the enum Submitted by: Hans Petter Selasky [1]
* Overhaul monitor mode handling:sam2009-05-201-36/+37
| | | | | | | | | | | | | | | | | | | | | | | | 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-201-1/+1
| | | | | | | | 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>
* fix 11a channel use; mark OFDM operation correctlysam2009-05-171-2/+2
| | | | Submitted by: Lucius Windschuh <lwindschuh@googlemail.com>
* Create a taskqueue for each wireless interface which provides a serialisedthompsa2009-05-021-12/+6
| | | | | | | | | | | | | | | | | | | | | | | sleepable context for net80211 driver callbacks. This removes the need for USB and firmware based drivers to roll their own code to defer the chip programming for state changes, scan requests, channel changes and mcast/promisc updates. When a driver callback completes the hardware state is now guaranteed to have been updated and is in sync with net80211 layer. This nukes around 1300 lines of code from the wireless device drivers making them more readable and less race prone. The net80211 layer has been updated as follows - all state/channel changes are serialised on the taskqueue. - ieee80211_new_state() always queues and can now be called from any context - scanning runs from a single taskq function and executes to completion. driver callbacks are synchronous so the channel, phy mode and rx filters are guaranteed to be set in hardware before probe request frames are transmitted. Help and contributions from Sam Leffler. Reviewed by: sam
* Catch up with usb2_config struct layout changes.thompsa2009-04-051-14/+14
|
* Add uath(4) wireless USB driver for Atheros AR5005UG and AR5005UXweongyo2009-04-041-0/+2862
chipsets. Reviewed by: sam
OpenPOWER on IntegriCloud