summaryrefslogtreecommitdiff
path: root/sys/dev/ic/if_wivar.h
AgeCommit message (Collapse)Author
2002-10-27Add an option to use software WEP now that we have a software decryptTodd C. Miller
function. Can be useful for cards that only support 40-bit WEP or where the card firmware lacks weak IVs avoidance. Prism/Symbol only. In the future this will be expanded to support proposed WEP replacements. Based on code from Jamison Adcock.
2002-10-10Make wi_get_id() table driven, similar to NetBSD and FreeBSD butTodd C. Miller
make the table itself a #define so we can reuse it in wicontrol. Also add a bunch of chip IDs from NetBSD/FreeBSD. mickey@ OK
2002-07-09move common declarations to if_wivar.h; mickey@ and millert@ ok.Federico G. Schwindt
2002-06-22Add new flag, WI_FLAGS_BUS_PCMCIA and mark pcmcia attachment as such.Federico G. Schwindt
Replace ugly kludge with a macro that tests on sparc if it's pcmcia and tries to deal with it correctly (card mapped as be). This makes possible to have wi at pcmcia and pci on sparc64; from theo and myself. Tested with the PLX adapter and the SBus pcmcia bridge. millert@ ok.
2002-06-22Fix typo in WI_FLAGS_HAS_ROAMING, noticed by fgs@Todd C. Miller
2002-06-21put the objects in a better order, so that they align correctly.Theo de Raadt
whoever made struct ieee80211_nwid an odd-sized structure and created this particular little corner of alignment hell surely deserves a boot to the head.
2002-06-15Don't advertise hostap as an allowed media type for firmware < 0.80Todd C. Miller
Hopefully this will confuse people with crufty firmware a little less than the old behavior. Supposedly it is possible to get hostap working on prism firmware 0.7.6 but I'm not going to attempt that at this time.
2002-06-09a step towards consistancy; in general:Todd T. Fries
'struct arpcom foo' -> 'struct arpcom sc_arpcom' ok itojun@
2002-06-02BSD air-tools 0.2 patches from dachb0den labs; h1kari@dachb0den.comTodd C. Miller
The common.h include file has been incorporated into if_wi_ieee.h similar to what is in FreeBSD.
2002-04-26We use wi_authtype, not wi_authmode to store the auth type (open systemTodd C. Miller
or shared key).
2002-04-11o Set feature flags based on firmware type and version.Todd C. Miller
o Move the sc->has_wep flag into sc->wi_flags o Only do the COR reset on Symbol cards just to play it safe. o Remove unused sc->sc_enabled variable. o Kill ibss_portmap array in favor of sc->wi_ibss_port, which is stored in little endian. mickey@ OK
2002-04-07Don't reset COR in wi_reset(), break it out into its own function andTodd C. Miller
only call it from wi_attach() and wi_pcmcia_activate() (ie: just once). It would be nicer to have the COR reset be part of the bus-specific code but we need to know whether or not we have a Lucent card since old Lucent firmware revs get messed up on a COR soft reset. Even with the COR reset we still need to avoid initializing Symbol cards more than once. However, we *do* want to do a reset after returning from suspend. Therefore, rename wi_gone to wi_flags and store both the attach and init status in it. wi_reset() now checks wi_flags to see if the card should be initialized in the Symbol case. Info on initializing Symbol cards once from NetBSD.
2002-04-06Add support for setting antenna diversity on Symbol cards.Todd C. Miller
Also add some more Symbol-specific RID values I noticed in the Linux orinoco driver.
2002-04-06Add support for Symbol cards and printing of the primary stationTodd C. Miller
firmware version. Adapted from NetBSD and the Linux orinoco driver. The Symbol firmware requires that we do a COR soft reset before initializing the card in wi_reset(). Also, setting WI_RID_ROAMING_MODE caused the Symbol card to go into a strange (non-working) mode with firmware 2.x.x. There are some other Symbol additions/oddities that will need to be addressed in the future.
2002-03-28basic host-ap implementation, more work is needed; from Thomas Skibo ↵Michael Shalayeff
<skibo@pacbell.net>; millert@ ok
2002-02-19add support for media and other generic 802.11 ioctls, elliminates need for ↵Michael Shalayeff
wicontrol on the ramdisk floppy, pretty much; from netbsd
2001-12-20for mimi-pci cards registers are word in a dword, missed that in bringing ↵Michael Shalayeff
over support from netbsd; partially successfully tested by ellidz@eridu.uchicago.edu
2001-06-09Updates from NetBSD:Todd C. Miller
o Endian fixes o Missing WI_RID_AUTH_CNTL and WI_RID_MICROWAVE_OVEN bits o Move promisc mode setting to be before prism2 detect since some prism2 firmware revs need to have promisc to support WEP and it is useless to set promisc and then clear it again. o Add missing clear of ifp->if_timer when IFF_OACTIVE is cleared
2001-06-07no, definately *wi.* does not work hereMichael Shalayeff
2001-05-15Split wi(4) into bus-dependent and bus-independent bits similar toTodd C. Miller
an(4) -- no real code changes at this point. Rename if_wavelan_ieee.h to if_wi_ieee.h while I'm at it and create an if_wivar.h similar to NetBSD. PCI adaptors exist that are not true PCMCIA controllers so wi(4) @ PCI is possible (though the code is not working yet ;-).