summaryrefslogtreecommitdiff
path: root/sys/dev/ic/ath.c
AgeCommit message (Collapse)Author
2009-10-13Get rid of devact enum, substitute it with an int and coresponding defines.Paul Irofti
This is needed for the addition of further suspend/resume actions. Okay deraadt@, marco@.
2009-09-13M_DUP_PKTHDR() define -> m_dup_pkthdr() function to properly dealKenneth R Westerback
with m_tag_copy_chain() failures. Use m_defrag() to eliminate hand rolled defragging of mbufs and some uses of M_DUP_PKTHDR(). Original diff from thib@, claudio@'s feedback integrated by me. Tests kevlo@ claudio@, "reads ok" blambert@ ok thib@ claudio@, "m_defrag() bits ok" kettenis@
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-07-31timeout_add -> timeout_add_msecBret Lambert
ok jsg@
2009-01-21Replace timeout_add(msecs * hz / 1000) with timeout_add_msec(msecs).Alexander Yurchenko
No functional changes. ok krw@ miod@
2008-10-15Second pass of simple timeout_add -> timeout_add_sec conversionsBret Lambert
This should take care of the simpler ones (i.e., timeout values of integer multiples of hz). ok krw@, art@
2008-09-01Switch ath(4) to softcrypto to enable support for WPA/WPA2.Reyk Floeter
Tested by ckuethe@ and many users, thanks!
2008-08-29add support for software crypto to allow WPA/WPA2/RSN. it is disabledReyk Floeter
for now because it needs more testing, but basic WPA/WPA2 and WEP seems to work. to enable it, set the compiled-in ath_softcrypto variable to 1. this is based on a previous diff from damien@ with some changes to disable the hardware crypto engine if softcrypto is enabled and to keeps the hardware crypto code in place to allow later work on hardware WPA/WPA2.
2008-08-27add IEEE80211_RADIOTAP_F_FCS radiotap flag from NetBSD.Damien Bergamini
use it in drivers that leave the 802.11 FCS in frames passed to radiotap BPF. otherwise, userland has no way to know if FCS is included or not as it depends on drivers. this is required by some ports (aircrack). requested by dhill@
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-08-25two spelling fixes from Anathae Townsend;Jason McIntyre
2008-08-14in ieee80211_input(), call if_start() after enqueuing frames in if_sndDamien Bergamini
when acting as an access point instead of having each driver doing the job. tested by krw@ (ral AP) and me with several drivers.
2008-07-30spacingReyk Floeter
2008-07-29- fix FIFO overruns on PCI-E chipsets by setting the DMA sizeReyk Floeter
RX/TX configuration registers to 128 instead of 512 bytes. - add a few more MAC/RF id strings for the dmesg. - check for PCI-E instead of single chip variants in a few places. ok deraadt@
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.
2007-10-13remove unneeded declarations that shadows existing vars; ok by many.Federico G. Schwindt
2007-10-01More easy bzero() -> M_ZERO. Use 'p = malloc(sizeof(*p) ...'.Kenneth R Westerback
2007-09-18Only the most obvious bzero() -> M_ZERO changes. No cast changes, noKenneth R Westerback
MALLOC/FREE, etc. Just adding M_ZERO to malloc() and deleting an immediately adjacent bzero().
2007-07-18replace the ieee80211_wepkey structure with a more generic ieee80211_keyDamien Bergamini
one that can be used with other ciphers than WEP.
2007-06-16constifyDamien Bergamini
2007-06-06the copyright holder changed the license from "dual bsd/gpl" to beReyk Floeter
2-clause bsd-only. good.
2007-05-09remove the internal wrapper functions for ieee80211_mhz2ieee andReyk Floeter
ieee80211_ieee2mhz which also removes some dead code. figured out by deraadt@
2007-04-13The integrated Atheros NICs found in IBM/Lenovo ThinkPads use the sameReyk Floeter
device ID for old AR5212-based 32bit and new AR5424-based 64bit (PCI Express Mini Card) interfaces. Use an extra check to look if the card is 64bit and attach it as a single chip device. This prevents a panic when attaching the device on some laptops like the T60. Tested on a T42 (old AR5212 Mini PCI interface), Tested on a T60 (new AR5424 Mini Card interface) Nevertheless, the AR5424 does not work yet. Thanks to Stefan Konrath
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-12-14fix a minor bug in the tx data queue setup by using the right queueReyk Floeter
type. this would cause us some more trouble with WME which isn't supported yet... thanks to Nick Kossifidis
2006-11-06figured out by tdeval@:Reyk Floeter
>During factorization in 1.57, the switch block was moved too early. >Hence it's updating an uninitialized ah structure.
2006-10-19s/Mhz/MHz/ in comments and printf() stringsTom Cosgrove
ok jsg@
2006-10-14fix the slightly different reset procedure of single chip variants.Reyk Floeter
this should successfully initialize the ar5424 PCI-E chipset. figured out by kettenis@
2006-09-19attach and enable the newer chipset generations AR2413, AR5413, andReyk Floeter
AR5424. unlike the previous chipset generations, these chipsets are single chip solutions. the AR5424 is a PCI Express chipset as found in various intel Macs. support is still incomplete- 11a mode works and 11b mode is rx-only. i need some more test reports, hardware donations (there are several different subrevisions) and time to finish it. thanks for help from kettenis@ "of course!" deraadt@
2006-09-19detect the newer single chip generations AR2413, AR5413 and AR5224 butReyk Floeter
don't attach them, yet.
2006-09-19"pure g" is a special, non-standard ofdm-only mode. use the standardReyk Floeter
dynamic cck/ofdm "11g" mode instead.
2006-09-19use the correct antenna mode settings and fix a bug in the txReyk Floeter
descriptor setup. this will fix various issues including 11a mode with ar5212.
2006-06-23set the RSSI Max value in ath(4) and use the new RSSI radiotap headerReyk Floeter
instead of the old db signal header. also allow tcpdump and hostapd to print the new RSSI radiotap header values current/max rssi. ok damien@ jsg@
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-05-08Make ath_attach() return error if the RF is unsupported so the PCI codePedro Martelletto
can disable its shutdown hooks, otherwise we will panic upon halt. Okay jsg@ and brad@.
2006-04-20printf() calls with the format string spanning several lines should not haveMiod Vallat
trailing commas between string chunks, for this has unexpected effects.
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-02-20Fix kernel builds without bpfilter. Linking is still broken.Damien Bergamini
"Please commit this diff ASAP" brad@
2006-01-04Remove redundant calls to bpfdetach.Can Erkin Acar
ok brad@
2005-12-10Initialize flags before using it. Spotted by lint.Kenneth R Westerback
ok reyk@
2005-11-11more verbose error message for the "bogus xmit rate" problemReyk Floeter
2005-09-23cleanup and simplify the regulation domain handling. some devices areReyk Floeter
known to have a broken/unsupported regulation domain stored in their EEPROM, we use the default instead (Canada). there's no need to manually define COUNTRYCODE in ar5xxx.c anymore for invalid EEPROMs but it's still possible to force a specific country - your choice. ok aanriot@
2005-09-22remove the very basic ath(4) rate control implementation and useReyk Floeter
rssadapt(9) instead. this may need some further work but now it's in the right place and shared with other drivers (like ral(4)). yes jsg@
2005-09-19don't attach unsupported radio chipsetsReyk Floeter
based on a diff by jsg@
2005-09-08use ieee80211_iterate_nodes to iterate the nodes and add a extra checkReyk Floeter
for the maximal number of gpio pins.
2005-09-08fix a possible division by zero by using minimal default values for theReyk Floeter
beacon interval and the beacon miss timeout (beacon interval * 7).
2005-09-08Remove the last of the FreeBSD compatiblity goop.Jonathan Gray
ok reyk@
2005-09-08Remove FreeBSD if_printf compat function from net80211.Jonathan Gray
ok reyk@
2005-08-21update the 802.11 station address if the ethernet lladdr has been changed.Reyk Floeter
pointed out by Nick Holmes and Justin Reigle.