summaryrefslogtreecommitdiffstats
path: root/sys/dev/ath
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* change ic_getradiocaps driver callback to include the max # channelssam2009-01-271-2/+2
| | | | so callers know the size of the array passed down
* fix return status handling by ar5XXXReset; this is the reason thesam2009-01-235-10/+10
| | | | driver sometimes reports reset failed w/ status 0
* don't run the calibration code if scanning, we won't be on the home channelsam2009-01-231-0/+4
|
* correct typo that left programmed sifs time in the slot timesam2009-01-212-3/+3
| | | | | | (to be applied on subsequent resets) Submitted by: Jiri Fojtasek <jiri.fojtasek@hlohovec.net>
* export PSB frequenciessam2009-01-161-4/+13
|
* On some platforms touching the bb registers when the phy is poweredsam2009-01-131-2/+3
| | | | | | | down will cause a fault. Check the phy power state before possibly reading from the bb, this can happen as ar5212Reset intentionally calls ar5212GetRfgain before bringing the bb out of reset (but we do it here and not in the caller to guard against other possible uses).
* TDMA support for long distance point-to-point links using ath devices:sam2009-01-083-50/+734
| | | | | | | | | | | | | | | o add net80211 support for a tdma vap that is built on top of the existing adhoc-demo support o add tdma scheduling of frame transmission to the ath driver; it's conceivable other devices might be capable of this too in which case they can make use of the 802.11 protocol additions etc. o add minor bits to user tools that need to know: ifconfig to setup and configure, new statistics in athstats, and new debug mask bits While the architecture can support >2 slots in a TDMA BSS the current design is intended (and tested) for only 2 slots. Sponsored by: Intel
* correct fixed rate handling; the rixmap was changed a while backsam2009-01-071-16/+11
| | | | to be indexed by the ieee rate code
* remove the ath_rate module dependency; it's all bundledsam2009-01-061-1/+0
|
* remove module glue, it's not used any moresam2009-01-063-81/+0
|
* Correct 5212 ani support so that max noise immunity, spur immunity, andsam2008-12-191-10/+10
| | | | | | | step levels are used. Noticed by: Jiri Fojtasek <jiri.fojtasek@hlohovec.net> Reviewed by: rpaulo
* fix ini setupsam2008-12-151-1/+1
| | | | Submitted by: Jiri Fojtasek <jiri.fojtasek@hlohovec.net>
* o remove dead codesam2008-12-131-21/+4
| | | | | | o fix AH_RF macro expansion to be as intended (worked before unintentionally) Obtained from: netbsd
* remove dead codesam2008-12-131-12/+0
| | | | Obtained from: netbsd
* add constsam2008-12-131-4/+4
| | | | Obtained from: netbsd
* fix static const ordersam2008-12-131-3/+3
| | | | Obtained from: netbsd
* fix static const ordersam2008-12-131-2/+2
| | | | Obtained from: netbsd
* remove duplicate casesam2008-12-131-2/+1
| | | | Obtained from: netbsd
* remove conflicting declsam2008-12-131-3/+1
| | | | Obtained from: netbsd
* add missing breaksam2008-12-111-1/+2
| | | | Coverity ID: 4159
* add missing breaksam2008-12-111-1/+2
| | | | Coverity ID: 4151
OpenPOWER on IntegriCloud