summaryrefslogtreecommitdiffstats
path: root/sys/dev/ic/ar5211.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix 11g ifmedia modes in ath(4) (shown by 'ifconfig ath0 media').stsp2018-01-311-12/+13
| | | | | | | | | | | | 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-21/+9
| | | | | | 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
* Unbreak WEP/WPA on AR5211 ath(4) devices by setting hardware WEP keytablestsp2015-03-201-1/+5
| | | | | entry types to NULL, as done for AR5212 devices. ath(4) uses software crypto. ok reyk@
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-121-2/+2
| | | | after discussions with beck deraadt kettenis.
* make a variable that can take a value of -1 signed to match what thejsg2012-08-301-2/+3
| | | | | | rest of the code expects. from brad
* replace custom macro AR5K_ELEMENTS() with nitems()reyk2009-06-021-6/+6
|
* If a bogus channel is encountered, return an error instead of tryingguenther2009-06-021-4/+11
| | | | | | | to use the -1 flag value as an array index. Found by Parfait. ok reyk@ oga@
* 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-5/+17
| | | | | 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.
* Update the RF, RFGAIN, MODE, INI, and BBGAIN initialization tablesreyk2008-07-301-2/+2
| | | | | | | | | | 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@
* 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/+67
| | | | | 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-67/+2
|
* Add some HAL functions.reyk2007-03-051-2/+67
| | | | | | 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@
* better mode setup in the ar5211 and ar5212 reset functionsreyk2006-09-191-6/+12
|
* fix 11a/b antenna mode setupreyk2006-09-191-10/+5
|
* disable 11g mode for nowreyk2006-09-191-2/+3
|
* Update my e-mail address in the copyright statement, no binary changes.reyk2005-12-181-2/+2
|
* KNFreyk2005-10-071-3/+3
|
* fix a bug in Tx descriptor processing.reyk2005-10-041-2/+2
| | | | found by David Malone
* don't attach unsupported radio chipsetsreyk2005-09-191-7/+3
| | | | based on a diff by jsg@
* ansi, no binary change.jsg2005-09-101-298/+115
| | | | ok reyk@
* catched->caughtmiod2005-08-141-2/+2
|
* remove a useless timeout after tx (decrease nasty delays whilereyk2005-07-301-10/+27
| | | | 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-10/+2
|
* 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-7/+12
| | | | sleep mode timeouts for ar5210, ar5211 and ar5212.
* fix silicon version number reporting. ie. ath0: mac 80.6 -> ath0: mac 5.6.reyk2005-05-081-4/+4
|
* support 11b and 11a mode on the ar5211. "pure" 11g mode is not yetreyk2005-04-201-4/+75
| | | | tested but should work as well. thanks for the hardware donation!
* beautify the code by renaming HAL functions with capitalized words (ireyk2005-04-181-174/+174
| | | | | 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-9/+1
|
* bye bye unportable bitfieldsreyk2005-04-081-55/+92
|
* 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-50/+32
| | | | | | btw.: this is a commit using an ar5212 in 11b mode... ok deraadt@, krw@
* further fixes for ar5212.reyk2005-03-191-11/+43
|
* the wep mac may be NULL if it's a broadcast keyreyk2005-03-131-4/+7
| | | | ok krw@
* fix beacon handlingreyk2005-03-101-22/+112
|
* improve radiotap support, fix some minor bugs.reyk2005-03-031-16/+12
|
* add support for the atheros ar5211 802.11A/B/g wireless chipset.reyk2005-02-251-0/+2488
ok deraadt@