summaryrefslogtreecommitdiff
path: root/sys/dev/ic
AgeCommit message (Collapse)Author
2002-04-08two missing splx()sMichael Shalayeff
2002-04-08restore what was a default inactivity timeout, two minutesMichael Shalayeff
2002-04-08make hostap work on other-endian machines; tested by drahn@Michael Shalayeff
2002-04-08add flag to swap channels. from netbsd.Mike Frantzen
ok deraadt@
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-06For PLX-based bridge cards, move printing of pcmcia card CIS stringsTodd C. Miller
out of generic wi_attach() and into wi_pci_attach(). This means we can't print the CIS info for embedded cards like the NCP130 but since those don't have a "real" pcmcia card in them this is really not a problem. Also check to see that there is actually a pcmcia present and give and error if not. CIS magic number taken from the Linux orinoco driver; there may be a better way to do this.
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-04-05Add another check for sc->wi_gone; from FreeBSDTodd C. Miller
2002-04-04wi_init() now takes a struct wi_softc * not a void * since an sc pointerTodd C. Miller
is available everywhere wi_init() is called. deraadt@ OK
2002-04-03In Host-AP mode, set IBSS SSID to the normal network id. This makesTodd C. Miller
"ifconfig nwid FOO" work correctly in Host-AP mode.
2002-04-03- read the rx completion register exactly once.Jason Wright
- don't complain about still owned descriptors tested by myself and Joey Coleman <joeycoleman@acm.org>
2002-04-02keylen is either 8 (40 bit secret ) or 16 (104 bit)Markus Friedl
wrong index used for RC4SWAP during key setup IV is stored in little endian format; works for millert@
2002-04-02fix keyid encoding wi_tx_keyMarkus Friedl
2002-04-02Prism2 firmware should be reported as version a.b.c not a.b variant c.Todd C. Miller
Only Lucent uses the 'variant' form. Also, prism2 firmware 0.8.2 does WEP w/o requiring promisc mode (from NetBSD). OK mickey@
2002-04-02always reset promisc in hostap mode (a comment added), a couple of ↵Michael Shalayeff
formatiing and byte-swapping fixens as well
2002-04-01freem mbuf on input pkt check failureMichael Shalayeff
2002-04-01killed a char accidentallyMichael Shalayeff
2002-04-01need to splsoftclock here too, i think i've got 'em all nowMichael Shalayeff
2002-04-01always check for bad IVsMarkus Friedl
2002-04-01Missing splx in suser() check.Todd C. Miller
2002-04-01skip bad IVs; ok provos@/deraadt@Markus Friedl
2002-04-01Add support for PowerStorm 4D20 TGA boqrds with IBM 561 ramdac (akaMatthieu Herrb
32bit TGA) From NetBSD, ok deraadt@.
2002-04-01Use WI_RID_DATA_RATES not WI_RID_SUPPORT_RATE to get the list ofTodd C. Miller
supported data rates. Fixes rate probing on Lucent cards. Figured out from reading the Linux orinoco driver.
2002-03-31Fix logic thinko. In AP mode we were never calling wihap_check_tx() ifTodd C. Miller
the IFF_PROMISC flag was set (e.g. in bridge mode). Found by mickey@ There still seems to be an issue with Lucent stations reporting 1Mbs when the AP is in bridge mode though.
2002-03-31check for super user more; millert@ okMichael Shalayeff
2002-03-30make sure that hostap never happens on non-prism2 cardsMichael Shalayeff
2002-03-30kill lots of space and insert some more for knfMichael Shalayeff
2002-03-30o Move register definitions to if_wireg.hTodd C. Miller
o Rename some register defines to be more useful (adapted from FreeBSD) o Enable interrupts on PLX chip since some boards don't have this in the EEPROM (adapted from FreeBSD and Linux).
2002-03-30WI_RID_SUPPORT_RATE only seems to work for prism2. On lucent boardsTodd C. Miller
it only indicates support for the lowest speed which is not what we want.
2002-03-30only trust supported rates report on prism2 cardsMichael Shalayeff
2002-03-30missing suser on SIOCS80211NWIDMarkus Friedl
2002-03-30implement WEP in wi_do_hostencrypt()Markus Friedl
2002-03-30Actually write new value to the card for SIOCS80211NWID ioctlTodd C. Miller
2002-03-29i_nwid is not a NUL-terminated string, it is length bounded.Todd C. Miller
2002-03-291) restrict 'hostap' mediaopt to prism2 chipsTodd C. Miller
2) set ether_dhost and ether_shost based on wi_dst_addr and wi_src_addr respectively. This allows packets to traverse the hostap and is also what FreeBSD and NetBSD both do. 3) Move the setting of tx_frame.wi_frame_ctl to be right after we zero tx_frame. Otherwise we end up clearing the WI_FCTL_FROMDS flag. 4) Use some ETHER_* constants instead of hard-coding things (cosmetic only)
2002-03-28put the protos and spls in placeMichael Shalayeff
2002-03-28missing timeout add and del; some minor api changeMichael Shalayeff
2002-03-28some BITS defs for %bMichael Shalayeff
2002-03-28basic host-ap implementation, more work is needed; from Thomas Skibo ↵Michael Shalayeff
<skibo@pacbell.net>; millert@ ok
2002-03-28recognize isl37300p as a prism2.5, for niels babyMichael Shalayeff
2002-03-27From FreeBSD: check for FIFO becoming unfull correctly, in the case of ↵Niklas Hallqvist
consumer index wrapping. Improve an internal API. ok mickey@
2002-03-26Add support for the TMD7160 dumb PCI-ISA bridge (similar in function toTodd C. Miller
the PLX905x). Info gleaned from patches to the Linux wlan driver from NDC. This makes the NDC NCP130 rev A2 work.
2002-03-26Fix 128bit WEP on prism2; from FreeBSDTodd C. Miller
2002-03-26enforce higher spl such that ccbs do not get fired upon in timeouts and ↵Michael Shalayeff
other places where we call for resource allocations which do no proper spl protection these days
2002-03-26Fix problems the ahc driver was having with the recent changes toKenneth R Westerback
scsiconf.c. The fact that both this ('original') ahc driver and the new ahc driver (since reverted) crashed if devices capable of tagged queuing were not correctly flagged as such must be a clue to some interesting problem. a) Restore marking of appropriate devices as tagged. b) Use TAG_ENB define instead of MSG_SIMPLE_Q_TAG when manipulating hscb->control. Both were defined to the same value, but TAG_ENB is the define used to extract the bit later on. c) Delete unused field 'tagdisable'. ok millert@, also tested by naddy@
2002-03-25some fw versions return even more data in the an_ltv_status; form Gabriel ↵Michael Shalayeff
Kihlman <gk@univits.se>
2002-03-25This was part of the newer ahc driver which has been backed outTodd C. Miller
2002-03-22- Move reading collision counters out of splimp()Jason Wright
- all non-debug prints should print the interface name - quite whining about RX counter expiring, who cares.
2002-03-22 make idstrs[] even if SMC_DEBUG is not defined, so the sm(4) driversVincent Labrecque
compile. ok fgsch