aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ral
Commit message (Collapse)AuthorAgeFilesLines
...
* Add support for the second (RT2561/RT2561S) and third (RT2661 MIMO XR)Damien Bergamini2006-03-059-1296/+4814
| | | | | | | | | | | generations of 802.11abg chipsets from Ralink Technology. Get rid of the pccard front-end while I'm here since all adapters are cardbus ones. Obtained from: OpenBSD Notes: svn path=/head/; revision=156321
* use s/w bmiss facilitySam Leffler2006-02-181-0/+2
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=155795
* stop device so we don't panic on card ejectSam Leffler2006-02-181-0/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=155794
* Adjust tx power based on user preferences.Damien Bergamini2006-01-291-0/+3
| | | | Notes: svn path=/head/; revision=154994
* o Fix short preamble supportDamien Bergamini2006-01-293-60/+95
| | | | | | | | | | o Fix contention window o Feed rx rate to radiotap o Clean ral_setup_txdesc (sync w/ ural) o s/ic_ibss_chan/ic_curchan/ Notes: svn path=/head/; revision=154993
* Sync with ural:Damien Bergamini2005-11-292-18/+19
| | | | | | | | o Send management frames at the lowest possible rate. o Cosmetic tweaks. Notes: svn path=/head/; revision=152935
* Optimize PLCP length field computation for 802.11b rates.Damien Bergamini2005-11-231-5/+4
| | | | Notes: svn path=/head/; revision=152722
* Optimize and clean TX time computation.Damien Bergamini2005-11-151-22/+7
| | | | | | | | | Avoid a test and a modulus operation. MFC after: 2 weeks Notes: svn path=/head/; revision=152454
* Be more robust when handling Rx interrupts. If we can't allocate and DMA mapDamien Bergamini2005-11-131-21/+41
| | | | | | | | | | a new mbuf, just discard the received frame and reuse the old mbuf. This should fix kernel panics on high network traffic. MFC after: 2 weeks Notes: svn path=/head/; revision=152386
* Remove OLDCARD shimsWarner Losh2005-09-211-23/+4
| | | | Notes: svn path=/head/; revision=150440
* Make sure that we call if_free(ifp) after bus_teardown_intr. Since weWarner Losh2005-09-191-1/+1
| | | | | | | | | | could get an interrupt after we free the ifp, and the interrupt handler depended on the ifp being still alive, this could, in theory, cause a crash. Eliminate this possibility by moving the if_free to after the bus_teardown_intr() call. Notes: svn path=/head/; revision=150306
* Avoid deferencing NULL in if_free().Ruslan Ermilov2005-09-161-3/+2
| | | | Notes: svn path=/head/; revision=150218
* if_ral_pccard does not depend on pccard module directly, but ratherWarner Losh2005-08-221-1/+0
| | | | | | | | | | depends, like all other pccard drivers, indirectly through kobj on pccard. Therefore, it is not appropriate to force pccard to be loaded when if_ral.ko is loaded. This makes it possible to load if_ral w/o loading pccard.ko on, eg, pci only systems. Notes: svn path=/head/; revision=149359
* Fix basic rates set for 802.11a/g operating modes. This can significantlyDamien Bergamini2005-08-211-16/+29
| | | | | | | | | improve transfer rates in 802.11a/g. Fix IFS settings in ral(4) too. MFC after: 6 days Notes: svn path=/head/; revision=149348
* Don't automatically start scanning in if_init() if IEEE80211_ROAMING_MANUALDamien Bergamini2005-08-201-4/+6
| | | | | | | | | flag is set. MFC after: 1 week Notes: svn path=/head/; revision=149333
* Clarify/fix handling of the current channel:Sam Leffler2005-08-101-7/+8
| | | | | | | | | | | | | | | | | | | | | | o add ic_curchan and use it uniformly for specifying the current channel instead of overloading ic->ic_bss->ni_chan (or in some drivers ic_ibss_chan) o add ieee80211_scanparams structure to encapsulate scanning-related state captured for rx frames o move rx beacon+probe response frame handling into separate routines o change beacon+probe response handling to treat the scan table more like a scan cache--look for an existing entry before adding a new one; this combined with ic_curchan use corrects handling of stations that were previously found at a different channel o move adhoc neighbor discovery by beacon+probe response frames to a new ieee80211_add_neighbor routine Reviewed by: avatar Tested by: avatar, Michal Mertl MFC after: 2 weeks Notes: svn path=/head/; revision=148936
* Propagate rename of IFF_OACTIVE and IFF_RUNNING to IFF_DRV_OACTIVE andRobert Watson2005-08-092-13/+14
| | | | | | | | | | | | | | | | | IFF_DRV_RUNNING, as well as the move from ifnet.if_flags to ifnet.if_drv_flags. Device drivers are now responsible for synchronizing access to these flags, as they are in if_drv_flags. This helps prevent races between the network stack and device driver in maintaining the interface flags field. Many __FreeBSD__ and __FreeBSD_version checks maintained and continued; some less so. Reviewed by: pjd, bz MFC after: 7 days Notes: svn path=/head/; revision=148887
* diff reduction against p4: define IEEE80211_FIXED_RATE_NONE and useSam Leffler2005-07-221-2/+2
| | | | | | | it instead of -1 Notes: svn path=/head/; revision=148290
* remove local mods that snuck into rev 1.6Sam Leffler2005-07-101-4/+1
| | | | | | | Approved by: re (scottl implicit) Notes: svn path=/head/; revision=147888
* remove driver-private key allocators; use the default one insteadSam Leffler2005-07-101-12/+0
| | | | | | | | | | so wpa keys are handled properly Reviewed by: avatar Approved by: re (scottl) Notes: svn path=/head/; revision=147871
* oops ... forgot to declare sc in my previous commit. unbreak build.Damien Bergamini2005-07-081-0/+1
| | | | | | | Approved by: re (scottl) Notes: svn path=/head/; revision=147842
* ral_init() takes a struct ral_softc as parameter not a struct ifnet.Damien Bergamini2005-07-081-1/+1
| | | | | | | | | | Fixes a panic that occured when setting the interface parameters while the interface was associated. Approved by: re (scottl) Notes: svn path=/head/; revision=147838
* reclaim node reference when ieee80211_encap failsSam Leffler2005-07-081-2/+7
| | | | | | | | Reviewed by: avatar Approved by: re (scottl) Notes: svn path=/head/; revision=147834
* reclaim mbuf when ieee80211_crypto_encap failsSam Leffler2005-07-071-1/+3
| | | | | | | | Approved by: re (scottl) Obtained from: netbsd Notes: svn path=/head/; revision=147806
* o Fix a write mbuf-after-free bug. The duration field of the 802.11 headerDamien Bergamini2005-06-291-9/+23
| | | | | | | | | | | | | | was written in the old fragmented mbuf chain instead of the defragmented one. Thus, the duration field of outgoing frames was incorrect. o Only call m_defrag() if the mbuf fragmentation threshold is greater than what is currently supported by the driver. Reviewed by: silby (mentor) Approved by: re (scottl) Notes: svn path=/head/; revision=147662
* Eliminate unused argument in PCMCIA_CARD macro.Warner Losh2005-06-241-1/+1
| | | | | | | | | | | Provide a backwards compatible way to have the extra macro by defining PCCARD_API_LEVEL 5 before including pccarddevs for driver writers that want/need to have the same driver on 5 and 6 with pccard attachments. Approved by: re (dwhite) Notes: svn path=/head/; revision=147580
* Stop embedding struct ifnet at the top of driver softcs. Instead theBrooks Davis2005-06-102-5/+11
| | | | | | | | | | | | | | | | | | | | | | | struct ifnet or the layer 2 common structure it was embedded in have been replaced with a struct ifnet pointer to be filled by a call to the new function, if_alloc(). The layer 2 common structure is also allocated via if_alloc() based on the interface type. It is hung off the new struct ifnet member, if_l2com. This change removes the size of these structures from the kernel ABI and will allow us to better manage them as interfaces come and go. Other changes of note: - Struct arpcom is no longer referenced in normal interface code. Instead the Ethernet address is accessed via the IFP2ENADDR() macro. To enforce this ac_enaddr has been renamed to _ac_enaddr. - The second argument to ether_ifattach is now always the mac address from driver private storage rather than sometimes being ac_enaddr. Reviewed by: sobomax, sam Notes: svn path=/head/; revision=147256
* Fix WPA (802.11i) support.Damien Bergamini2005-05-221-0/+12
| | | | | | | Approved by: silby (mentor) Notes: svn path=/head/; revision=146499
* Initial import of ipw, iwi, ral and ural drivers:Damien Bergamini2005-04-187-0/+3868
ipw - Intel PRO/Wireless 2100 iwi - Intel PRO/Wireless 2200BG/2225BG/2915ABG ral - Ralink Technology RT2500 ural - Ralink Technology RT2500USB Approved by: silby (mentor) Notes: svn path=/head/; revision=145247