summaryrefslogtreecommitdiffstats
path: root/sys/dev/ath
Commit message (Collapse)AuthorAgeFilesLines
* purge hal abi support; now that the hal is merged w/ the driversam2009-03-196-72/+0
| | | | | | we cannot be out of sync MFC after: 1 week
* Minor cleanups of tdma protocol handling:sam2009-03-181-3/+3
| | | | | | | | | | | o break out version-related code to simplify rev'ing the protocol o add parameter validation macros so checks that appear multiple places are consistent (and easy to change) o add protocol version check when looking for a scan candidate o improve scan debug output format o rewrite beacon update handling to calculate a bitmask of changed values and pass that down through the driver callback so drivers can optimize work o do slot bounds check before use when parsing received beacons
* 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)
* add assertssam2009-03-121-0/+2
|
* replace if_watchdog w/ private callout; probably can merge this with thesam2009-03-092-14/+21
| | | | calibration work sometime in the future
* remove ar9160Detach; it does nothingsam2009-03-091-14/+1
|
* remove now-redunant cardbus attachment.imp2009-03-091-1/+0
|
* add a sysctl to ena/dis frobbing ccasam2009-03-052-1/+22
|
* 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-2415-42/+162
| | | | | | | | | | | | 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-2415-25/+52
| | | | 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-235-9/+3
|
* 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-235-32/+6
| | | | was an independent entity
* print mac+rf part names; drop the printing 2ghz rf stuff (might come back)sam2009-02-234-28/+90
|
* correct SIFS setting; there is a 2usec adjustment between the calculatedsam2009-02-201-2/+2
| | | | | | value and what the hardware requires (based on inspection of INI values) Submitted by: Jiri Fojtasek <jiri.fojtasek@hlohovec.net>
* don't adjust core clk conversions for 1/2 and 1/4 rate channels; thesam2009-02-201-8/+0
| | | | | | mac runs at full speed so doing this breaks conversion for ifs parameters Submitted by: Felix Fietkau <nbd@openwrt.org>
* remove private support for IEEE80211_MODE_HALF and IEEE80211_MODE_QUARTERsam2009-02-192-9/+2
| | | | now that net80211 has them
* Cleanup ath_hal_computetxtime's handling of 1/2 and 1/4-width channels:sam2009-02-193-86/+74
| | | | | | | | | o mark phy type to indicate 1/2 or 1/4-rate operation o use phy type instead of channel attributes to identify 1/2 and 1/4-rate operation o general cleanup of code including move phy constants to ah_internal.h Eventually this code should go away and we should use the net0211 equivalents.
* add HAL_DIAG_SETREGS to write registers via the diag apisam2009-02-192-4/+20
|
* whitespacesam2009-02-191-2/+2
|
* add SIOCZATHSTATS ioctl to zero driver statisticssam2009-02-132-0/+7
|
* add driver stat to count tx drops due to insufficient frag bufferssam2009-02-132-3/+3
|
* Recognize AR5212_AR2317_REV2 in ar5312Probe()sam2009-02-131-0/+1
| | | | Submitted by: Pavel Roskin <proski@gnu.org>
* fix both instances of namesam2009-02-111-1/+1
| | | | Pointy hat: sam
* fix typo in AH_CHIP definitionsam2009-02-111-1/+1
| | | | Submitted by: Pavel Roskin <proski@gnu.org>
* 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>
* don't do phantom beacon miss checking for s/w beacon miss handling,sam2009-02-101-17/+22
| | | | | this can mistakenly drop events that cause the s/w bmiss timer to never get re-armed
* mark the CLR key installed for open auth stations such that it is reclaimedsam2009-02-101-0/+2
| | | | when net80211 tears down station state; without this we leak keycache slots
* add hw.ath.bstuck to control the stuck beacon thresholdsam2009-02-101-2/+6
|
* on resume ah_curchan may be NULL if no channel change has been done;sam2009-02-101-1/+3
| | | | | | | workaround this by passing net80211's channel as we know it'll never be null Submitted by: trasz
* consolidate conditional codesam2009-02-101-4/+2
|
* count stuck beacon eventssam2009-02-071-0/+1
|
* fix 11n channel constructionsam2009-02-071-6/+6
|
* add macro for future regulatory modssam2009-02-071-0/+5
|
* add PSB channels to the calibration listsam2009-02-061-3/+12
|
* eliminate gainFCorrection; just have ar5212GetGainFCorrection returnsam2009-02-052-11/+12
| | | | the calculated value as it's only used in one place
* Minor packet drop improvements:sam2009-02-052-4/+11
| | | | | | | | o change tdma packet drop msg when ack required to ATH_DEBUG_TDMA (ATH_DEBUG_XMIT is too noisy) o add a debug msg for raw packet drop due to interface down/invalid o add stats for these two cases o explain how another drop case is handled
* improve IQ cal debug msgs; in particular don't scare people by screamingsam2009-02-051-13/+7
| | | | "MISGATED IQ CAL!" when it's not
* fill in ar5212ResetCalValid; reset the IQ valid flag on the channelsam2009-02-051-1/+10
| | | | so IQ calibration will be started on the next periodic cal
* stylesam2009-02-051-1/+2
|
* replace r/w idiom with OS_REG_SET_BIT (to match other code)sam2009-02-051-3/+2
|
* fix compilation w/ AH_DEBUGsam2009-02-032-2/+2
|
* o make SAVE_CCK slightly less error prone by always writing the _flagsam2009-02-021-2/+3
| | | | | value used later by RESTORE_CCK o swap arg order in RESTORE_CCK to slightly reduce cost
* restore variable initialization removed in r187831; this brokesam2009-02-021-1/+1
| | | | | the horrible SAVE/RESTORE_CCK macros used by swan/nala cards to implement 11b using 11g
* Overhaul regulatory support:sam2009-01-2838-3423/+2411
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
OpenPOWER on IntegriCloud