summaryrefslogtreecommitdiffstats
path: root/sys/dev/ath/ath_hal/ar5416
Commit message (Collapse)AuthorAgeFilesLines
* Remove svn:executable prop.rpaulo2010-04-121-0/+0
|
* Setup the correct RX/TX chainmask when we play with the antennarpaulo2010-04-091-2/+2
| | | | | | | settings. MFC after: 1 week Sponsored by: iXsystems, inc
* Couple of suggestions from Sam regarding latest commit:rpaulo2010-03-023-4/+4
| | | | | | | o rename the new variables to comply with the naming scheme o move the new variables to an AR5212 specific struct o use ahp when available o revert to previous ts_flags check
* Properly setup the TX FIFO threshold for AR5416 based chipsets,rpaulo2010-03-013-2/+8
| | | | | | including the AR9285. This seems to fix some users's problems. Submitted by: Jorge Boncompte [DTI2] <jorge at dti2.net>
* Fix Kite and Merlin version check.rpaulo2010-02-161-2/+2
|
* Fix KITE version check.rpaulo2010-02-151-3/+3
| | | | Obtained from: //depot/user/rpaulo/80211n/...
* Bring back AR9285 support. This fixes most of the issues and should berpaulo2010-02-159-21/+1481
| | | | | | pretty usable. MFC after: 1 month
* Revert part of the 9285 support because it breaks the 9280 support. I'llrpaulo2010-02-147-446/+135
| | | | | try to do the 9285 support without interfering with any other chipset revisions support.
* 't' stands for Turbo and is a valid mode, so fix previous commit.rpaulo2010-02-101-1/+1
| | | | Pointed out by: sam
* Fix TX power problems with AR9285.rpaulo2010-02-086-48/+100
|
* Fix typo in comment.rpaulo2010-02-081-1/+1
|
* Add support for the AR9285 chipset, which is found on many netbooksrpaulo2010-01-2913-150/+1946
| | | | | | | | | | | | | | | | | available today. This card is a low power 802.11bgn that only does 11n rates up to MCS 7 (that's 65 Mbps in 20Mhz mode and 135 in 40Mhz mode). 802.11n is not yet supported, but will be in the future. The driver still has a problem regarding to the setting of txpower on the card, so don't expect good performance yet. After fixing this problem, an MFC is possible. Special thanks to iXsystems and S Smirnov <tonve at yandex.ru> for help with the purchase of a netbook with this card. Sponsored by: iXsystems, Inc.
* Replace Id keyword with the FreeBSD keyword.rpaulo2010-01-2910-10/+10
|
* Replace Id keyword with the FreeBSD keyword.rpaulo2010-01-291-1/+1
|
* Remove extraneous semicolons, no functional changes.mbr2010-01-071-1/+1
| | | | | Submitted by: Marc Balmer <marc@msys.ch> MFC after: 1 week
* Fix ar5416 and later parts on big-endian platforms: setup the h/w bytesam2009-07-071-15/+14
| | | | | | swizzler using the same technique used everywhere else. Approved by: re (kib)
* Revert a local change that should not have been in the last commit.phk2009-06-281-1/+1
| | | | Approved by: re (kib)
* There are a number of ways an application can check if there arephk2009-06-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | inbound data waiting on a filedescriptor, such as a pipe or a socket, for instance by using select(2), poll(2), kqueue(2), ioctl(FIONREAD) etc. But we have no way of finding out if written data have yet to be disposed of, for instance, transmitted (and ack'ed!) to some remote host, or read by the applicantion at the far end of the pipe. The closest we get, is calling shutdown(2) on a TCP socket in non-blocking mode, but this has the undesirable sideeffect of preventing future communication. Add a complement to FIONREAD, called FIONWRITE, which returns the number of bytes not yet properly disposed of. Implement it for all sockets. Background: A HTTP server will want to time out connections, if no new request arrives within a certain period after the last transmitted response has actually been sent (and ack'ed). For a busy HTTP server, this timeout can be subsecond duration. In order to signal to a load-balancer that the connection is truly dead, TCP_RST will be the preferred method, as this avoids the need for a RTT delay for FIN handshaking, with a client which, surprisingly often, no longer at the remote IP number. If a slow, distant client is being served a response which is big enough to fill the window, but small enough to fit in the socket buffer, the write(2) call will return immediately. If the session timeout is armed at that time, all bytes in the response may not have been transmitted by the time it fires. FIONWRITE allows the timeout to check that no data is outstanding on the connection, before it TCP_RST's it. Input & Idea from: rwatson Approved by: re (kib)
* Add HAL_RX_FILTER_BSSID support (to disable bssid match):sam2009-06-271-0/+1
| | | | | | | | | | | o add HAL_CAP_BSSIDMATCH to identify parts that have the support for disabling bssid match o honor capability for set/get rx filter o use HAL_CAP_BSSIDMATCH in driver to decide whether to use the bssid match disable or fall back to promisc mode Reviewed by: rpaulo Approved by: re (rwatson)
* purge HAL_TXSTAT_ALTRATE; you can figure this out by checking ts_finaltsisam2009-06-131-6/+3
| | | | and it cannot be used with MCS rate codes
* remove special handling for BNR; it is direct mapped to the harwdare sosam2009-05-191-4/+0
| | | | can be added to HAL_INT_COMMON except on the 5210 where it doesn't exist
* add HAL_CAP_INTRMASK to return the set of interrupts supported by the devicesam2009-05-191-0/+11
|
* kill more portability functions that are no longer usefulsam2009-05-081-2/+2
|
* add support for the Beacon Not Ready (BNR) interruptsam2009-05-061-0/+4
| | | | (available on 5211 and later)
* preliminary ar9280 support:sam2009-03-128-646/+2987
| | | | | | | | | | o add 9280 attach that sets up ini, cal, etc. o new rf backend for 9280 and later parts o split ini setup and spur mitigation support out to methods and provide 9280-specific support o minor fixups to shared code to handle 9280-specific work Obtained from: Atheros (ini values and some code)
* remove ar9160Detach; it does nothingsam2009-03-091-14/+1
|
* fix typo'ssam2009-02-241-2/+2
|
* move attach debug msg to the rf backendsam2009-02-243-4/+2
|
* Add PCIE power control api:sam2009-02-246-3/+76
| | | | | | | | | | | | o add ah_configPCIE and ah_disablePCIE for drivers to configure PCIE power save operation (modeled after ath9k, may need changes) o add private state flag to indicate if device is PCIE (replaces private hack in 5212 code) o add serdes programming ini bits for 5416 and later parts and setup for each part (5416 and 9160 logic hand-crafted from existing routines); 5212 remains open-coded but is now hooked in via ah_configPCIE o add PCIE workaround gunk o add ar5416AttachPCIE for iodomatic code used by 5416 and later parts
* Fill in gpio support for 5416 and later parts:sam2009-02-245-49/+208
| | | | | | | | o add output mux support o gpio pin count is chip-dependent o 9280 and 9285 do input handling different o hookup gpio interrupts o no need to save/restore soft led state around reset
* misc fixups, mostly for code not compiled yetsam2009-02-241-10/+11
|
* 5416 and later parts mux the gpio outputs; extend the api to includesam2009-02-242-3/+4
| | | | a signal type that's used to select the appropriate mux
* move eeprom attach above first reset as the reset code checks thesam2009-02-242-8/+8
| | | | eeprom contents for 9280 and later parts
* attach methods don't need to be public, make 'em staticsam2009-02-233-6/+2
|
* 5416 and later parts get the radio rev differently; add ar5416GetRadioRevsam2009-02-233-2/+18
| | | | to do it the right way
* remove private copies of gpio methods that were needed when the halsam2009-02-231-6/+1
| | | | was an independent entity
* print mac+rf part names; drop the printing 2ghz rf stuff (might come back)sam2009-02-231-2/+2
|
* gcc 4.3.2 examines getLowerUpperIndex() and concludes that it's notsam2009-02-111-0/+1
| | | | | | | | | | | guaranteed to initialize its two last arguments. Therefore, there is a warning in the subsequent caller ar5416FillVpdTable(), which doesn't initialize those arguments. Change getLowerUpperIndex() to assign values to indexL and indexR even in the case of assertion failure. Submitted by: Pavel Roskin <proski@gnu.org>
* fix compilation w/ AH_DEBUGsam2009-02-031-1/+1
|
* Overhaul regulatory support:sam2009-01-287-413/+308
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o remove HAL_CHANNEL; convert the hal to use net80211 channels; this mostly involves mechanical changes to variable names and channel attribute macros o gut HAL_CHANNEL_PRIVATE as most of the contents are now redundant with the net80211 channel available o change api for ath_hal_init_channels: no more reglass id's, no more outdoor indication (was a noop), anM contents o add ath_hal_getchannels to have the hal construct a channel list without altering runtime state; this is used to retrieve the calibration list for the device in ath_getradiocaps o add ath_hal_set_channels to take a channel list and regulatory data from above and construct internal state to match (maps frequencies for 900MHz cards, setup for CTL lookups, etc) o compact the private channel table: we keep one private channel per frequency instead of one per HAL_CHANNEL; this gives a big space savings and potentially improves ani and calibration by sharing state (to be seen; didn't see anything in testing); a new config option AH_MAXCHAN controls the table size (default to 96 which was chosen to be ~3x the largest expected size) o shrink ani state and change to mirror private channel table (one entry per frequency indexed by ic_devdata) o move ani state flags to private channel state o remove country codes; use net80211 definitions instead o remove GSM regulatory support; it's no longer needed now that we pass in channel lists from above o consolidate ADHOC_NO_11A attribute with DISALLOW_ADHOC_11A o simplify initial channel list construction based on the EEPROM contents; we preserve country code support for now but may want to just fallback to a WWR sku and dispatch the discovered country code up to user space so the channel list can be constructed using the master regdomain tables o defer to net80211 for max antenna gain o eliminate sorting of internal channel table; now that we use ic_devdata as an index, table lookups are O(1) o remove internal copy of the country code; the public one is sufficient o remove AH_SUPPORT_11D conditional compilation; we always support 11d o remove ath_hal_ispublicsafetysku; not needed any more o remove ath_hal_isgsmsku; no more GSM stuff o move Conformance Test Limit (CTL) state from private channel to a lookup using per-band pointers cached in the private state block o remove regulatory class id support; was unused and belongs in net80211 o fix channel list construction to set IEEE80211_CHAN_NOADHOC, IEEE80211_CHAN_NOHOSTAP, and IEEE80211_CHAN_4MSXMIT o remove private channel flags CHANNEL_DFS and CHANNEL_4MS_LIMIT; these are now set in the constructed net80211 channel o store CHANNEL_NFCREQUIRED (Noise Floor Required) channel attribute in one of the driver-private flag bits of the net80211 channel o move 900MHz frequency mapping into the hal; the mapped frequency is stored in the private channel and used throughout the hal (no more mapping in the driver and/or net80211) o remove ath_hal_mhz2ieee; it's no longer needed as net80211 does the calculation and available in the net80211 channel o change noise floor calibration logic to work with compacted private channel table setup; this may require revisiting as we no longer can distinguish channel attributes (e.g. 11b vs 11g vs turbo) but since the data is used only to calculate status data we can live with it for now o change ah_getChipPowerLimits internal method to operate on a single channel instead of all channels in the private channel table o add ath_hal_gethwchannel to map a net80211 channel to a h/w frequency (always the same except for 900MHz channels) o add HAL_EEBADREG and HAL_EEBADCC status codes to better identify regulatory problems o remove CTRY_DEBUG and CTRY_DEFAULT enum's; these come from net80211 now o change ath_hal_getwirelessmodes to really return wireless modes supported by the hardware (was previously applying regulatory constraints) o return channel interference status with IEEE80211_CHANSTATE_CWINT (should change to a callback so hal api's can take const pointers) o remove some #define's no longer needed with the inclusion of <net80211/_ieee80211.h> Sponsored by: Carlson Wireless
* fix return status handling by ar5XXXReset; this is the reason thesam2009-01-231-2/+2
| | | | driver sometimes reports reset failed w/ status 0
* import ath halsam2008-12-0126-0/+11315
OpenPOWER on IntegriCloud