summaryrefslogtreecommitdiff
path: root/sys/dev/ic/atw.c
AgeCommit message (Collapse)Author
2007-07-18convert code under #if 0 to the new ieee80211_key structure.Damien Bergamini
2007-06-07move ieee80211_compute_duration() and ieee80211_compute_duration1()Damien Bergamini
functions into the two drivers that use them (atw and rtw.) this code is not generic enough to be used by other drivers and there is no chance that it will ever be used in newer driver since it supports 802.11b only. plus, it hurts my eyes each time i look into ieee80211_output.c. "fine with me as long as the logic doesn't change in the functions" jsg@
2007-02-14put debug string tables under ATW_DEBUGJonathan Gray
2007-02-14remove no longer used rate related variable/definesJonathan Gray
2007-01-03M_DUP_PKTHDR() cleanup. On static buffers M_DUP_PKTHDR() will leak mbuf tags.Claudio Jeker
See similar rum(4) commit for more info. OK mglocker@
2006-11-26Make use of ieee80211_std_ratesetJonathan Gray
2006-08-30Return from channel tuning code if we get IEEE80211_CHAN_ANYJonathan Gray
as per other drivers instead of doing panics. Should workaround PR 5206 which I could never manage to reproduce, though we really shouldn't be getting IEEE80211_CHAN_ANY here. ok deraadt@
2006-06-23In a drivers activate() entry point, if on DVACT_DEACTIVATE it doesMiod Vallat
something, then it MUST return zero on DVACT_ACTIVATE, not EOPNOTSUPP; this very popular bug has been cut and pasted a lot of times... ok deraadt@ mickey@
2006-05-22Attach routines can fail before calling *hook_establish(), and theyKenneth R Westerback
often rely on the detach routine for cleanup. So be consistant and careful by checking for a NULL hook before calling *hook_disestablish in detach routines. ok mickey@ brad@ dlg@
2006-03-25allow bpf(4) to ignore packets based on their direction (inbound orDamien Miller
outbound), using a new BIOCSDIRFILT ioctl; guidance, feedback and ok canacar@
2006-03-22incorrect check for end of array; ok jsgTheo de Raadt
2006-02-28Switch to software WEP in a way mostly similiar to what David YoungJonathan Gray
did in NetBSD. Fixes WEP on aanriot@'s ADM8211A. ok deraadt@
2006-02-17Use ieee80211_compute_duration() instead of homerolled function.Jonathan Gray
From a change to NetBSD by David Young. Tested by aanriot@ on ADM8211A and me on ADM8211B.
2005-10-11Eliminate use of M_HASFCS.Brad Smith
From thorpej NetBSD ok jsg@
2005-09-24The ADM8211B seems to stall after some time of constantJonathan Gray
activity at DS11 speeds. Check for this in the watchdog using seemingly undocumented bits of the TEST1 register used in Linux driver and restart if a stall is detected.
2005-09-24Make use of ieee80211_ibss_merge() from net80211.Jonathan Gray
Based on changes made by David Young to NetBSD.
2005-09-23Handle SI4126 operations differently on ADM8211B. ThisJonathan Gray
is the final piece required to make ADM8211B based devices work. Based around what the Linux driver does. ok reyk@
2005-09-22Print MAC name and version and use "address" instead ofJonathan Gray
"802.11 address" when printing MAC address.
2005-09-08Remove the last of the FreeBSD compatiblity goop.Jonathan Gray
ok reyk@
2005-08-27move some debug messages to use the debug macros so they dont appearAnil Madhavapeddy
during normal operation. deraadt@ ok
2005-07-18remove trailing newline in panic(9); ok millert@ and deraadt@Federico G. Schwindt
2005-07-02clear IFF_RUNNING & IFF_OACTIVE in foo_stop() before de-allocating resources.Brad Smith
2005-06-21remove duplicate function prototypes. ok deraadtKevin Lo
2005-05-27make sure to enable socket on resume.Robert Nagy
in order for the enable to work disable the socket on suspend. lot of help from mickey@ ok jsg@ millert@
2005-03-26enable reception of multicast frames; from NetBSDChristian Weisgerber
2005-02-17derived from NetBSD:Reyk Floeter
--- Make the node table into an LRU cache: least-recently used nodes are at the end of the node queue. Change the reference-counting discipline: ni->ni_refcnt indicates how many times net80211 has granted ni to the driver. Every node in the table with ni_refcnt=0 is eligible to be garbage-collected. The mere presence of a node in the table does not any longer indicate its auth/assoc state; nodes have a ni_state variable, now. While I am here, patch ieee80211_find_node_for_beacon to do a "best match" by bssid/ssid/channel, not a "perfect match." This keeps net80211 from caching duplicate nodes in the table. --- ok deraadt@ dlg@, looks good jsg@
2005-01-15make sure interface is in RUNNING state before touching the multicast filtersBrad Smith
From NetBSD NetBSD PR 27678 for details ok mcbride@
2004-12-31Define atw cfdriver struct in atw.c so atw at cardbus does notJonathan Gray
depend on atw at pci. ok millert@
2004-07-25Begin conditioning device configuration on revision number. Three typesTodd C. Miller
are known: ADM8211A (1.1/1.5), ADM8211B (2.0), ADM8211C (3.0). The B and C parts, while not yet supported, have AP capability. From NetBSD (dyoung).
2004-07-25Fix IBSS merges in atw(4). From NetBSD (dyoung)Todd C. Miller
2004-07-25Improve register definitions and slightly demystify some magicTodd C. Miller
numbers. From NetBSD (dyoung)
2004-07-25The RSSI field in the Rx descriptor is the unadulterated contentTodd C. Miller
of the DIVCTL/RSSI register on the RF3000 baseband. Mask all but the RSSI bits. From NetBSD (dyoung).
2004-07-19Delete the AP scan timeout in atw_detach. Fixes a panic on detach if theTodd C. Miller
timeout is still active as seen by david@
2004-07-15Remove an errant ATW_CLR() that was the result of a merge error.Todd C. Miller
2004-07-15Insist that callers use atw_write_sram to copy even-length buffersTodd C. Miller
to even offsets in the ADM8211 SRAM. From NetBSD (dyoung).
2004-07-15Totally revamp/re-organize device initialization using clue from theTodd C. Miller
reference driver. From NetBSD (dyoung).
2004-07-15Totally revamp device resets using clue from the reference driver.Todd C. Miller
From NetBSD (dyoung).
2004-07-15kill sc_intr_ackTodd C. Miller
2004-07-15Take the paranoia out of the code for writing baseband registers.Todd C. Miller
Totally revamp the way that the synthesizer and baseband are programmed. From NetBSD (dyoung). Also remove trailing whitespace from lines (me).
2004-07-15missing bits from last commitTodd C. Miller
2004-07-15Simplify the Rx filter setup. From NetBSD (dyoung)Todd C. Miller
2004-07-15Countdown correctly to the Target Beacon Transmission Time.Todd C. Miller
Borrowing an idea from the reference driver, use no 64-bit arithmetic. From NetBSD (dyoung)
2004-07-15Simplify IBSS merge code.Todd C. Miller
In atw_start_beacon, set CAP0 as well as BCNT and CAP1. From NetBSD (dyoung)
2004-07-15Re-synchronize TSFT after an IBSS merge.Todd C. Miller
Set up the Tx descriptor ring more safely. Fix an endianness bug. "It's a wonder this ever worked." (Actually, it's not.) hange the order in which I write the BSSID registers on the ADM8211, to match the reference driver. This probably does not make any functional difference. Only write the SSID buffer to the ADM8211 SRAM up to the end of the SSID, not up to the end of the buffer. Given the (too conservative?) delays involved, this should save some time when we join a new network. From NetBSD (dyoung)
2004-07-15In the transmit interrupt handler, do not unnecessarily synchronizeTodd C. Miller
all the descriptors for a buffer chain. Just synchronize the last one, which has the interesting stuff. We still synchronize all the descriptors for the buffer chain if super-verbose debugging is enabled, since the driver will print all the descriptors for the chain. Delay for tens of milliseconds lot after writing the Network Access Register. This is what the reference driver does, we can probably lower the delays later. From NetBSD (dyoung)
2004-07-15Delete some dead code and a less-than-helpful comment.Todd C. Miller
Don't call back into the bus-specific code for resets any longer. It does not seem to be necessary. When super-verbose debugging is enabled, convert Rx descriptors' endianness before printing them. Clamp the length of a received packet, just in case the chip lies. From NetBSD (dyoung)
2004-07-15Don't send data packets until the interface is in state RUN. ThisTodd C. Miller
stops ARP and IPv6 Neighbor Discovery packets from trickling out the interface before it is time. Remove dead code from atw_clear_sram. During scans, initialize the BSSID to ff:ff:ff:ff:ff:ff before sending the first probe request. From NetBSD (dyoung)
2004-07-15Do not treat the lost beacon count specially any more. It is kind ofTodd C. Miller
a dumb way to track the link condition anyway. From NetBSD (dyoung).
2004-07-15In ad hoc mode, don't set the mysterious EA bit in the Network AccessTodd C. Miller
Register. ADMtek's reference driver does not use it at all, and it does not seem to make any difference whether we set it or not. Also remove some dead code and test instrumentation. From NetBSD (dyoung).
2004-07-07Only drain the transmit queue if we are idling the transmit section.Todd C. Miller
From NetBSD (dyoung)