summaryrefslogtreecommitdiff
path: root/sys/dev/ic/atw.c
AgeCommit message (Collapse)Author
2009-08-16remove use of BITS and BIT macros.Jonathan Gray
2009-08-16start getting rid of some of these horrific bit macros, removeJonathan Gray
usage of BITS(). There is a binary change due to the way these macros are further used in the MASK_AND_RSHIFT specifically for ATW_SR_RFTYPE_MASK and ATW_SR_BBPTYPE_MASK.
2009-08-10More cases of shutdown hooks not needed after card is already stopped. InTheo de Raadt
these cases the xxstop function is a bit more complicated and has a flag of some sort, but the use of that flag does not matter; DMA is already ceased ok dlg
2009-06-03put the values direct in the array, otherwise the nested macros are longerTheo de Raadt
than standards permit found & ok by jsg
2009-01-21Replace timeout_add(msecs * hz / 1000) with timeout_add_msec(msecs).Alexander Yurchenko
No functional changes. ok krw@ miod@
2008-11-28Eliminate the redundant bits of code for MTU and multicast handlingBrad Smith
from the individual drivers now that ether_ioctl() handles this. Shrinks the i386 kernels by.. RAMDISK - 2176 bytes RAMDISKB - 1504 bytes RAMDISKC - 736 bytes Tested by naddy@/okan@/sthen@/brad@/todd@/jmc@ and lots of users. Build tested on almost all archs by todd@/brad@ ok naddy@
2008-10-03Remove a few small ifdef/ifndef OpenBSD sections which contained someBrad Smith
NetBSD code.
2008-08-29the atw(4) man page says:Damien Bergamini
"The driver lets you change to Host AP mode, but it does not work and it probably never will." so just remove the HOSTAP capability bit in the code and remove this sentence.
2008-08-27introduce new IEEE80211_STA_ONLY kernel option that can be set toDamien Bergamini
remove IBSS and HostAP support from net80211 and 802.11 drivers. it can be used to shrink RAMDISK kernels for instance (like what was done for wi(4)). it also has the benefit of highlighting what is specific to IBSS and HostAP modes in the code. the cost is that we now have two code paths to maintain.
2008-07-21instead of passing rx tstamp and rssi to the ieee80211_input function,Damien Bergamini
pass a pointer to an ieee80211_rxinfo structure containing those two fields plus an extra flags field that indicates whether the frame was decrypted by hardware or not. required for a future fix.
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
2008-05-13Remove commented out NetBSD __KERNEL_RCSID macro usage.Brad Smith
ok dlg@
2008-04-16Kernel implementation of the 4-way handshake and group-keyDamien Bergamini
handshake protocols (both supplicant and authenticator state machines) as defined in the IEEE 802.11i standard. Software implementation of the TKIP (Temporal Key Integrity Protocol) and CCMP (CTR with CBC-MAC Protocol) protocols. This diff doesn't implement any of the 802.1X authentication protocols and thus only PSK authentication (using pre-shared keys) is currently supported. In concrete terms, this adds support for WPA-PSK and WPA2-PSK protocols, both in station and hostap modes. The following drivers are marked as WPA-capable and should work: bwi(4), malo(4), ral(4), iwn(4), wpi(4), ural(4), rum(4), upgt(4), and zyd(4) The following options have been added to ifconfig(8): wpa, wpapsk, wpaprotos, wpaakms, wpaciphers, wpagroupcipher wpa-psk(8) can be used to generate keys from passphrases. tested by many@ ok deraadt@
2008-03-13Do not increment the input packet counter in these drivers asBrad Smith
ieee80211_input() already does this. Mentioned by Peter Philipp in PR 5248. ok claudio@ mglocker@
2007-09-30s/NPBFILTER/NBPFILTER/ in #endif comment. No functional change.Mark Kettenis
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).