summaryrefslogtreecommitdiffstats
path: root/sys/dev/ic/ar5212.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove a pointless assignment introduced in previous commit.stsp2018-02-031-2/+1
| | | | CID 1464695; pointed out to me by mikeb@
* Fix 11g ifmedia modes in ath(4) (shown by 'ifconfig ath0 media').stsp2018-01-311-14/+15
| | | | | | | | | | | | There was code which set them up but didn't include 11b channels which are part of 11g. And there was a hack which effectively stripped important flag bits away and wouldn't work for modes with overlapping channels (b/g). As a result, some flags were missing from 11g channels the driver reported to net80211, which skipped over those channels when building the media list. This gets us one step closer to supporting the AR5424. ok mpi@
* Initialize status return code in ar5k_ar5211_reset() and ar5k_ar5212_reset(),stsp2017-10-151-1/+4
| | | | | | | in the same way as ar5k_ar5210_reset() does it. Error messages were displaying uninitialized values: "ath_reset: unable to reset hardware; hal status 3497439432" ok mpi@
* Remove wireless turbo mode support. It is a non-standard extensionstsp2016-01-121-41/+20
| | | | | | which only worked with ath(4) devices from a decade ago. Diff tested on ath(4) hardware by me to verify that 11a/b modes still work. ok reyk deraadt chris sthen kettenis
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-121-3/+3
| | | | after discussions with beck deraadt kettenis.
* Use the correct rf revision number for AR2425 radios. When read fromstsp2014-07-091-1/+2
| | | | | hardware the revision is zero. Linux also hardcodes this value. ok reyk
* Perform a warm reset instead of putting the hardware into full sleep modestsp2013-04-131-5/+34
| | | | | to avoid system hangs upon 'ifconfig down up' with some AR5212 hardware. Linux uses the same workaround. Diff from Dinar Talypov (t.dinar.m at gmail).
* Make ath(4) send multicast frames once, not multiple times.stsp2011-10-141-3/+2
| | | | | | | Fixes TKIP replays seen by STAs connecting to an ath(4) hostap and matches the FreeBSD driver. Tested with several cards by Theo and myself. Thanks mikeb for providing some cards, your next beer in Berlin is on me. ok deraadt
* replace custom macro AR5K_ELEMENTS() with nitems()reyk2009-06-021-12/+12
|
* Replace comparision between boolean expression result and an integergrange2009-02-061-2/+2
| | | | | | that may confuse gcc with a simple boolean expression. ok reyk@
* const void foo() makes no sense. No binary change.grange2009-01-151-3/+3
| | | | ok niklas@ otto@
* fallback to 11b support if the EEPROM is not reporting any available mode.reyk2008-09-131-6/+23
| | | | | there is probably a new EEPROM format here, but i don't know how to parse the AR5424 version yet, so just set some defaults for these chipsets for now.
* add a HAL function to force disabling the hardware crypto enginereyk2008-08-291-1/+24
|
* introduce new IEEE80211_STA_ONLY kernel option that can be set todamien2008-08-271-1/+3
| | | | | | | | | 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.
* spacingreyk2008-07-301-5/+5
|
* Update the RF, RFGAIN, MODE, INI, and BBGAIN initialization tablesreyk2008-07-301-57/+86
| | | | | | | | | | with different versions for various ar5212 variants and add an extra table for PCI-E devices. This fixes support for various newer devices (like the 1st generation MacBook, T61 variants) but it still does not work on a number of other devices. Tested by many ok deraadt@
* - fix FIFO overruns on PCI-E chipsets by setting the DMA sizereyk2008-07-291-8/+12
| | | | | | | | 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@
* backout last "fix" because it breaks operation on some devices. evenreyk2007-11-011-1/+3
| | | | | | | if the fix looks right, it seems to expose another problem that i haven't found yet. figured out by Denis Doroshenko at gmail dot com
* fix the setup of Tx descriptors. the frame type and "no ack" bits werereyk2007-10-291-3/+5
| | | | | | | | | | | | | | initialized in ar5k_ar521*_setup_tx_desc() but cleared in ar5k_ar521*_fill_tx_desc() by setting the segment length incorrectly. From ath5k via Nick Kossifidis (mickflemm at gmail dot com)* ---snip--- The missing no_ack in broadcast frames caused them to be retried up to the retry_limit(1+4=5 transmissions by default). ---snap--- * it was explicitly mentioned that it is ISC-licensed now
* ``it's'' -> ``its'' when the grammar gods require this change.miod2007-04-101-2/+2
|
* add some HAL functions (again) inspired by the changes from thereyk2007-03-121-2/+75
| | | | | madwifi-old-openhal project. this was backed out the last time because it was too close to the release and i didn't respect the ABI/API lock.
* do not use bcopy to set the mac address registers. this diff shouldreyk2007-03-121-11/+9
| | | | | | fix the "hal" on big endian systems. thanks to the madwifi-old-openhal people
* back out, reyk is not paying attentionderaadt2007-03-051-76/+2
|
* Add some HAL functions.reyk2007-03-051-2/+76
| | | | | | From madwifi-old-openhal via Nick Kossifidis (mickflemm at gmail dot com) Bump copyright while I'm here.
* Consistently spell FALLTHROUGH to appease lint.jsg2007-02-141-2/+2
| | | | ok kettenis@ cloder@ tom@ henning@
* fix a minor bug in the tx data queue setup by using the right queuereyk2006-12-141-4/+3
| | | | | | | type. this would cause us some more trouble with WME which isn't supported yet... thanks to Nick Kossifidis
* attach and enable the newer chipset generations AR2413, AR5413, andreyk2006-09-191-3/+4
| | | | | | | | | | | | | 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@
* better mode setup in the ar5211 and ar5212 reset functionsreyk2006-09-191-11/+19
|
* use the correct antenna mode settings and fix a bug in the txreyk2006-09-191-11/+8
| | | | | descriptor setup. this will fix various issues including 11a mode with ar5212.
* disable 11g mode for nowreyk2006-09-191-2/+3
|
* start to sync some changes and fixes from various "openhal" ports ofreyk2006-06-051-11/+21
| | | | | | | this driver. thanks for contribution (even if i didn't get much feedback from these projects...). tested by many during c2k6, like aanriot@ and ian@
* Update my e-mail address in the copyright statement, no binary changes.reyk2005-12-181-2/+2
|
* KNFreyk2005-10-071-2/+2
|
* don't attach unsupported radio chipsetsreyk2005-09-191-6/+7
| | | | based on a diff by jsg@
* ansi, no binary change.jsg2005-09-101-298/+114
| | | | ok reyk@
* catched->caughtmiod2005-08-141-2/+2
|
* remove a useless timeout after tx (decrease nasty delays whilereyk2005-07-301-11/+29
| | | | scanning) and fix various other minor things in the ath(4) driver.
* remove non-constant array initializers which is a GNU extension.reyk2005-06-171-4/+4
| | | | suggested by anil some time ago.
* fix hostap modereyk2005-05-281-14/+14
|
* remove some misplaced htole32sreyk2005-05-271-7/+7
|
* ath_hal_rx_monitor should be used for link state monitoring instead ofreyk2005-05-241-5/+4
| | | | | | setting the promisc mode. rename it to ath_hal_rx_signal and remove the incorrect promisc flag. this should fix some problems with ath running in forwarding mode.
* sync power management settings. this should fix some unrecoverablereyk2005-05-211-1/+4
| | | | sleep mode timeouts for ar5210, ar5211 and ar5212.
* improve power saving modereyk2005-05-211-11/+14
|
* fix silicon version number reporting. ie. ath0: mac 80.6 -> ath0: mac 5.6.reyk2005-05-081-4/+4
|
* beautify the code by renaming HAL functions with capitalized words (ireyk2005-04-181-178/+178
| | | | | always wanted to do that). this breaks HAL compatibility but porting should be easy, have a look at athvar.h. no functional changes.
* move reset of HAL descriptors to ath.creyk2005-04-081-4/+1
|
* bye bye unportable bitfieldsreyk2005-04-081-74/+135
|
* pad keys with zeros to a supported key length. this is bad but seemsreyk2005-04-061-4/+4
| | | | | to be the default WEP behaviour for string-based keys and allows commands like "ifconfig ath0 nwkey yuck" to work...
* fix a possible kernel panic in the ar5211 and ar5212 detach functions.reyk2005-03-231-2/+2
| | | | closes PR #4153.
* some fixes for wep and reset.reyk2005-03-201-57/+43
| | | | | | btw.: this is a commit using an ar5212 in 11b mode... ok deraadt@, krw@