summaryrefslogtreecommitdiffstats
path: root/sys/dev/wi/if_wivar.h
Commit message (Collapse)AuthorAgeFilesLines
* Export the hardware type (as number and name), the secondary firmwareimp2008-07-281-0/+2
| | | | | | revision and (on Prism cards) the primary firmware revision via sysctl. Move the printing of this information under bootverbose, since it is relatively easy to get to it now.
* Multi-bss (aka vap) support for 802.11 devices.sam2008-04-201-78/+24
| | | | | | | | | | | Note this includes changes to all drivers and moves some device firmware loading to use firmware(9) and a separate module (e.g. ral). Also there no longer are separate wlan_scan* modules; this functionality is now bundled into the wlan module. Supported by: Hobnob and Marvell Reviewed by: many Obtained from: Atheros (some bits)
* Update 802.11 wireless support:sam2007-06-111-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o major overhaul of the way channels are handled: channels are now fully enumerated and uniquely identify the operating characteristics; these changes are visible to user applications which require changes o make scanning support independent of the state machine to enable background scanning and roaming o move scanning support into loadable modules based on the operating mode to enable different policies and reduce the memory footprint on systems w/ constrained resources o add background scanning in station mode (no support for adhoc/ibss mode yet) o significantly speedup sta mode scanning with a variety of techniques o add roaming support when background scanning is supported; for now we use a simple algorithm to trigger a roam: we threshold the rssi and tx rate, if either drops too low we try to roam to a new ap o add tx fragmentation support o add first cut at 802.11n support: this code works with forthcoming drivers but is incomplete; it's included now to establish a baseline for other drivers to be developed and for user applications o adjust max_linkhdr et. al. to reflect 802.11 requirements; this eliminates prepending mbufs for traffic generated locally o add support for Atheros protocol extensions; mainly the fast frames encapsulation (note this can be used with any card that can tx+rx large frames correctly) o add sta support for ap's that beacon both WPA1+2 support o change all data types from bsd-style to posix-style o propagate noise floor data from drivers to net80211 and on to user apps o correct various issues in the sta mode state machine related to handling authentication and association failures o enable the addition of sta mode power save support for drivers that need net80211 support (not in this commit) o remove old WI compatibility ioctls (wicontrol is officially dead) o change the data structures returned for get sta info and get scan results so future additions will not break user apps o fixed tx rate is now maintained internally as an ieee rate and not an index into the rate set; this needs to be extended to deal with multi-mode operation o add extended channel specifications to radiotap to enable 11n sniffing Drivers: o ath: add support for bg scanning, tx fragmentation, fast frames, dynamic turbo (lightly tested), 11n (sniffing only and needs new hal) o awi: compile tested only o ndis: lightly tested o ipw: lightly tested o iwi: add support for bg scanning (well tested but may have some rough edges) o ral, ural, rum: add suppoort for bg scanning, calibrate rssi data o wi: lightly tested This work is based on contributions by Atheros, kmacy, sephe, thompsa, mlaier, kevlo, and others. Much of the scanning work was supported by Atheros. The 11n work was supported by Marvell.
* replace if_watchdog w/ a private calloutsam2006-12-111-0/+1
| | | | MFC after: 1 month
* split wi_start int locked+unlocked variants and use the unlockedsam2006-12-111-0/+1
| | | | | | one from the isr to eliminate a recursive lock MFC after: 1 month
* nuke compatibility cruftsam2006-12-111-15/+0
| | | | MFC after: 1 month
* Fixing WEP bustage in hostap mode since 5.2-RELEASE.avatar2005-10-021-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - WEP TX fix: The original code called software crypto, ieee80211_crypto_encap(), which never worked since IEEE80211_KEY_SWCRYPT was never flagged due to ieee80211_crypto_newkey() assumes that wi always supports hardware based crypto regardless of operational mode(by virtue of IEEE80211_C_WEP). This fix works around that issue by adding wi_key_alloc() to force the use of s/w crypto. Also if anyone ever decides to cleanup ioctl handling where key changes wouldn't cause a call to wi_init() every time, we'll need wi_key_alloc() to DTRT. In addition to that, this fix also adds code to wi_write_wep() to force existing keys to be switched between h/w and s/w crypto such that an operation mode change(sta <-> hostap) will flag IEEE80211_KEY_SWCRYPT properly. - WEP RX fix: Clear IEEE80211_F_DROPUNENC even in hostap mode. Quote from Sam: "This is really gross but I don't see an easy way around it. By doing it we lose the ability to independently drop unencode frames (and support mixed wep/!wep use). We should really be setting the EXCLUDE_UNENCRYPTED flag written in wi_write_wep based on IEEE80211_F_DROPUNENC but with our clearing it we can't depend on it being set properly." Reported by: Holm Tiffe <holm at freibergnet dot de> Submitted by: sam MFC after: 3 days
* MFp4: save mac addr hint, eliminage OLDCARD shimsimp2005-09-221-0/+1
|
* Stop embedding struct ifnet at the top of driver softcs. Instead thebrooks2005-06-101-2/+1
| | | | | | | | | | | | | | | | | | | | 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
* Start each of the license/copyright comments with /*-, minor shuffle of linesimp2005-01-061-1/+1
|
* o Update for net80211 changessam2004-12-081-2/+5
| | | | o Import some minor fixes from netbsd
* radiotap updates:sam2004-04-011-0/+2
| | | | | | o force little-endian byte order for header o pad header to 32-bit boundary to guard against applications that assume packet data alignment
* Older versions of the intersil firmware is a lot slower than newerimp2003-12-091-0/+1
| | | | | | | | | versions of the firmware. It responds more slowly to commands, and we bogusly failed them. We assume that all versions of the intersil firmware before 1.0 are 10 times slower and will give it 10x the time to finish. # for 5.2 we should always just assume 5s.
* o add experimental radiotap capture formatsam2003-09-051-1/+27
| | | | | | o add netbsd logic to convert rssi to device-independent values Obtained from: NetBSD (rssi conversion code)
* track changes to 802.11 code:sam2003-07-201-0/+2
| | | | | o override new_state method per new model o use ieee80211_state_name instead of private copy
* update for new 802.11 supportsam2003-06-281-3/+0
|
* o Lucent cards don't seem to like multiple buffers for tx. Use onlyimp2003-03-181-0/+1
| | | | | | | | | | | | | | | | | | | one tx buffer for these cards. The old driver only used one. We use 1 for symbol, and 3 for prism cards. o Don't do the maximum loops thing in the ISR. In fact, revert to the old interrupt handler. Lucent cards don't seem to work too well if you don't disable/enable interrupts from the card in the ISR. Between these two changes, Lucent cards suck less. They work in autoselect mode only. And seem to get 1Mbps or 2Mbps only. Setting a specific media speed doesn't work, and I've had a few issues even with these patches. They turn a former brick into a nearly useful card. These patches work on the prism 2 and 2.5 PC Card cards that I have. I've not tested this on PCI cards. I suspect, but couldn't find proof, that they were the reason that the ISR was changed so radically from its FreeBSD roots in NetBSD. We might need to have a variant ISR if so.
* Move symbol reset detection code back into wi_reset. This is a moreimp2003-03-181-0/+1
| | | | | | | reliable way to detect if the symbol cards have been reset or not. This makes symbol cards work better. Submitted by: deischen
* new wi driver that uses the 802.11 link layer codesam2003-01-151-119/+104
| | | | | Reviewed by: imp Obtained from: NetBSD (originally)
* Suspend/resume support (mostly for MiniPCI Prism2.5 boards).mdodd2003-01-141-0/+1
| | | | Reviewed by: imp
* Limit the TX key to a valid rangeimp2002-09-291-1/+2
| | | | PR: 39960, 39961 (patches here pointed out problem, but didn't quite fix it)
* Move the symbol firmware loading routines into if_wi.imp2002-08-151-0/+1
| | | | Define some basic firmware downloading commands.
* Send a disassoc packet for a STA that we don't know about that claims toimp2002-07-261-0/+1
| | | | | | be associated with us. From millert@openbsd.org Obtained from: OpenBSD (I think)
* IF_HANDOFF is no longer in -stableimp2002-06-301-12/+0
|
* Add better mediaopt support for ibss and friends.imp2002-06-191-0/+10
| | | | | | Now the driver is closer to matching the wi man page. Submitted by: jhay (who obtained it from OpenBSD).
* Make this driver compile for -stable also to prep for MFCimp2002-04-261-2/+27
|
* Minor format nitimp2002-04-161-1/+0
|
* unifdef -DWI_HOSTAP, like OpenBSD doesimp2002-04-121-2/+0
|
* Replace the original host WEP implementation with the one in OpenBSDimp2002-04-121-0/+1
| | | | | | | | | | (apparently by markus@, at least committed by him). This has the advantage of not using the bad IV's from Fluhrer/Mantin/Shamir as well as bringing the drivers a little closer together. Also use a few constants in place of magic numbers in one place. Obtained from: OpenBSD 1.25, 1.28, 1.36, 1.38, 1.42
* Integrate the hostap stuff that Thomas Skibo <skibo@packbell.net>imp2002-04-111-0/+7
| | | | | | | | | | wrote. This code was for 4.5-release, so I've ported it to -current and made a few minor tweaks. The biggest non-style tweak was to not make access point the default. More changes will be needed to get this actually working, but I wanted to get a relatively pure baseline. This doesn't seem to break what works now.
* MFNetBSD:imp2002-04-041-3/+10
| | | | | | | | | wi.c 1.64: Table driven IDs (ichiro) 1.59: Don't use magic numbers (ichiro) Also, added Sony, Lucent Embedded Ids and fix minor bugs for lucent cards (and submit those changes back to ichiro-san) Obtained from: NetBSD
* Four fixes from NetBSD:imp2002-04-031-3/+8
| | | | | | | | | | | | | | | | | | 1) Properly detect the Symbol based cards (The 3Com Airconnect and their ilk) and only reset them *ONCE* ever. This appears to make them work, but more testing is needed. The tests that would wedge up my machine completely now appear to work, but I have not real access points handy. 2) Report both the Station firmware and the Primary firmware on Prism based cards. On Lucent based cards, only report the station firmware since that's all it supports. On symbol cards, report the symbol specific firmware name as its station firmware. 3) Better Prism 2.5 and 3 family names. We really need to go table driven for this. 4) Workaround for bugs in Intersil's firmware is only needed for at most 0.8.2 and earlier, since 0.8.3 and later appear to work. Obtained from: NetBSD
* First cut at breaking out the bus attachment from the bus independentimp2002-04-021-0/+183
part of the driver. Also, move the softc and some other stuff to if_wivar.h from if_wireg.h to make future merging activities easier.
OpenPOWER on IntegriCloud