Commit Graph

347 Commits

Author SHA1 Message Date
sam
a8803ad8ee fix build w/ AH_DEBUG 2009-03-24 00:09:35 +00:00
sam
5292c35824 purge hal abi support; now that the hal is merged w/ the driver
we cannot be out of sync

MFC after:	1 week
2009-03-19 19:29:10 +00:00
sam
8bfd160665 Minor cleanups of tdma protocol handling:
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
2009-03-18 19:28:17 +00:00
sam
4f53d474a6 preliminary ar9280 support:
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)
2009-03-12 18:18:28 +00:00
sam
ec17f9599d add asserts 2009-03-12 00:09:29 +00:00
sam
2f15c795a9 replace if_watchdog w/ private callout; probably can merge this with the
calibration work sometime in the future
2009-03-09 23:10:19 +00:00
sam
6365101387 remove ar9160Detach; it does nothing 2009-03-09 23:04:06 +00:00
imp
ed87bed6c0 remove now-redunant cardbus attachment. 2009-03-09 13:23:54 +00:00
sam
1a8d7ef920 add a sysctl to ena/dis frobbing cca 2009-03-05 00:15:43 +00:00
sam
f621884a68 fix typo's 2009-02-24 15:43:42 +00:00
sam
fb76cfd34b move attach debug msg to the rf backend 2009-02-24 01:16:40 +00:00
sam
dce1c351b5 Add PCIE power control api:
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
2009-02-24 01:07:06 +00:00
sam
e10f01b24b Fill in gpio support for 5416 and later parts:
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
2009-02-24 00:33:08 +00:00
sam
44e443ab8d misc fixups, mostly for code not compiled yet 2009-02-24 00:29:32 +00:00
sam
1bb0a46d4d 5416 and later parts mux the gpio outputs; extend the api to include
a signal type that's used to select the appropriate mux
2009-02-24 00:12:16 +00:00
sam
0c3d0ae510 move eeprom attach above first reset as the reset code checks the
eeprom contents for 9280 and later parts
2009-02-24 00:03:14 +00:00
sam
9b20a16012 attach methods don't need to be public, make 'em static 2009-02-23 23:58:37 +00:00
sam
fdb4cb08bc 5416 and later parts get the radio rev differently; add ar5416GetRadioRev
to do it the right way
2009-02-23 23:54:08 +00:00
sam
35472ccdb1 remove private copies of gpio methods that were needed when the hal
was an independent entity
2009-02-23 23:48:17 +00:00
sam
d673ad903b print mac+rf part names; drop the printing 2ghz rf stuff (might come back) 2009-02-23 23:41:12 +00:00
sam
ba7e159e0c correct SIFS setting; there is a 2usec adjustment between the calculated
value and what the hardware requires (based on inspection of INI values)

Submitted by:	Jiri Fojtasek <jiri.fojtasek@hlohovec.net>
2009-02-20 22:06:58 +00:00
sam
ebd2f49d0d don't adjust core clk conversions for 1/2 and 1/4 rate channels; the
mac runs at full speed so doing this breaks conversion for ifs parameters

Submitted by:	Felix Fietkau <nbd@openwrt.org>
2009-02-20 22:05:08 +00:00
sam
e97897ada3 remove private support for IEEE80211_MODE_HALF and IEEE80211_MODE_QUARTER
now that net80211 has them
2009-02-19 05:22:40 +00:00
sam
dc72869d2f Cleanup ath_hal_computetxtime's handling of 1/2 and 1/4-width channels:
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.
2009-02-19 04:24:22 +00:00
sam
59775ab419 add HAL_DIAG_SETREGS to write registers via the diag api 2009-02-19 04:15:14 +00:00
sam
234c48a69e whitespace 2009-02-19 04:10:51 +00:00
sam
73d051056b add SIOCZATHSTATS ioctl to zero driver statistics 2009-02-13 05:38:03 +00:00
sam
ca6a964ab3 add driver stat to count tx drops due to insufficient frag buffers 2009-02-13 05:30:22 +00:00
sam
d59038e2ab Recognize AR5212_AR2317_REV2 in ar5312Probe()
Submitted by:	Pavel Roskin <proski@gnu.org>
2009-02-13 01:50:04 +00:00
sam
a648074191 fix both instances of name
Pointy hat:	sam
2009-02-11 22:34:22 +00:00
sam
32a5c53f3b fix typo in AH_CHIP definition
Submitted by:	Pavel Roskin <proski@gnu.org>
2009-02-11 22:18:03 +00:00
sam
f6d409ff3b gcc 4.3.2 examines getLowerUpperIndex() and concludes that it's not
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>
2009-02-11 22:15:37 +00:00
sam
7388d289a6 don't do phantom beacon miss checking for s/w beacon miss handling,
this can mistakenly drop events that cause the s/w bmiss timer to
never get re-armed
2009-02-10 23:48:29 +00:00
sam
50792711b6 mark the CLR key installed for open auth stations such that it is reclaimed
when net80211 tears down station state; without this we leak keycache slots
2009-02-10 19:27:50 +00:00
sam
80e7762b02 add hw.ath.bstuck to control the stuck beacon threshold 2009-02-10 19:26:42 +00:00
sam
22d9ca334e on resume ah_curchan may be NULL if no channel change has been done;
workaround this by passing net80211's channel as we know it'll never
be null

Submitted by:	trasz
2009-02-10 19:25:11 +00:00
sam
35694b6825 consolidate conditional code 2009-02-10 19:23:25 +00:00
sam
61f77d6544 count stuck beacon events 2009-02-07 05:34:41 +00:00
sam
4b8982cf33 fix 11n channel construction 2009-02-07 01:54:57 +00:00
sam
f7b39f5e66 add macro for future regulatory mods 2009-02-07 01:53:44 +00:00
sam
d40450f670 add PSB channels to the calibration list 2009-02-06 00:48:56 +00:00
sam
336cb9e99f eliminate gainFCorrection; just have ar5212GetGainFCorrection return
the calculated value as it's only used in one place
2009-02-05 21:13:31 +00:00
sam
18819a0562 Minor packet drop improvements:
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
2009-02-05 21:02:40 +00:00
sam
5b2183aa12 improve IQ cal debug msgs; in particular don't scare people by screaming
"MISGATED IQ CAL!" when it's not
2009-02-05 20:56:33 +00:00
sam
d9b4eedcd5 fill in ar5212ResetCalValid; reset the IQ valid flag on the channel
so IQ calibration will be started on the next periodic cal
2009-02-05 20:51:53 +00:00
sam
3eb0ca6204 style 2009-02-05 20:49:13 +00:00
sam
1434b839c9 replace r/w idiom with OS_REG_SET_BIT (to match other code) 2009-02-05 20:48:30 +00:00
sam
39a3163400 fix compilation w/ AH_DEBUG 2009-02-03 19:00:56 +00:00
sam
286b1aea9d o make SAVE_CCK slightly less error prone by always writing the _flag
value used later by RESTORE_CCK
o swap arg order in RESTORE_CCK to slightly reduce cost
2009-02-02 16:56:58 +00:00
sam
cf42d4143e restore variable initialization removed in r187831; this broke
the horrible SAVE/RESTORE_CCK macros used by swan/nala cards to
implement 11b using 11g
2009-02-02 16:55:57 +00:00