joerg
636b9f2c58
abs on unsigned values is a nop.
2014-02-27 01:31:09 +00:00
martin
97f5cd3b5b
Remove unused variable
2013-09-12 12:10:11 +00:00
martin
121875800b
Remove unsued variable
2013-09-12 12:08:49 +00:00
martin
2861b6deff
Remove unused variable
2013-09-12 12:04:37 +00:00
martin
1b1163f56b
Get rid of unused variables
2013-09-12 12:03:33 +00:00
martin
46208470f2
Remove unused variable
2013-09-12 11:44:08 +00:00
martin
84e3fc8358
Fix wrong for loop limit
2013-09-12 11:38:23 +00:00
martin
fda716a94d
Remove unused maxPower_t4 variable.
2013-09-12 11:26:53 +00:00
joerg
9547cd8b38
Fix header guards.
2013-06-25 15:08:43 +00:00
msaitoh
5d8b710d44
Fix off by one read error.
2012-12-11 09:17:31 +00:00
nakayama
155d42ae0b
Fix ATHHAL_DEBUG by syncing HALDEBUG() with Atheros HAL code.
2012-04-11 13:48:11 +00:00
bouyer
867f16169f
Revert previous; needs more work
2012-03-15 18:52:02 +00:00
bouyer
5ade347d8f
Use the right marcro for loop bound, avoids read past array end. Found by
...
gcc -03
2012-03-15 18:49:49 +00:00
wiz
bc52f506fb
Consistently use ar5416SetPowerMode. From Henning Petersen in PR 45999.
2012-02-12 13:55:27 +00:00
wiz
87b4d73fea
Use correct return value. From clang via Henning Petersen in PR 45995.
2012-02-12 13:48:45 +00:00
wiz
498ae6154b
Use correct return value. From clang via Henning Petersen in PR 45996.
2012-02-12 13:47:19 +00:00
jmcneill
cb9ec697cf
SVN r220966 from FreeBSD:
...
Fix a corner-case of interrupt handling which resulted in potentially
spurious (and fatal) interrupt errors.
2011-11-28 00:30:17 +00:00
jmcneill
6edd5ebb16
Fix AR_SREV_MERLIN_20 and AR_SREV_MERLIN_20_OR_LATER macros to match
...
rev 2.1 as well as 2.0, from FreeBSD. Fixes 5GHz mode on my 9280.
2011-08-01 10:21:32 +00:00
joerg
3eb244d801
Retire varargs.h support. Move machine/stdarg.h logic into MI
...
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
2011-07-17 20:54:30 +00:00
joerg
986345740c
Define a few macros as unsigned to avoid UB when later shifting them
...
in ways that involve integer overflow.
2011-05-30 13:58:23 +00:00
joerg
45132449f2
Silence warnings about unused return value for a dead hardware read.
2011-05-30 13:57:21 +00:00
cegger
f2fbc0de6d
Get improvements from FreeBSD-current (January 2011).
...
Successfully tested with WEP, WPA and WPA2 on AR9285.
Reviewed by jmcneill@
2011-03-07 11:25:41 +00:00
cegger
6f6097d0cf
add defflag for AR9285.
...
Spotted by jmcneill@
2011-03-05 14:42:11 +00:00
cegger
0b677bd453
make it compile with ATHHAL_DEBUG
2011-02-21 13:04:22 +00:00
cegger
9aa13d102d
add AR9285 support
2011-02-21 11:06:37 +00:00
jmcneill
074f2fafe1
add AR9280 support
2011-02-20 11:21:02 +00:00
jmcneill
80da431343
support building as a module
2011-02-20 03:55:18 +00:00
dyoung
3f178d7fdb
Protect against a NULL pointer dereference that I've seen in the wild.
2011-01-26 00:55:42 +00:00
sborrill
acb87f0c16
NetBSD doesn't support alq(9) and hence ATHHAL_DEBUG_ALQ is unusable.
...
Nevertheless, remove reference to old binary HAL header file in the
ATHHAL_DEBUG_ALQ section.
2009-08-07 21:01:48 +00:00
reinoud
8aafc997af
Fix prototypes to match the functions. The prototypes had `int' specified for
...
parameters or result where they should have been the corresponding enums.
gcc won't bitch on them but conceptually they are different and could be
stored in a different width. Compiling with pcc brought this to light.
2009-05-14 09:07:49 +00:00
martin
bce5c2205a
Now that we compile the Atheros HAL from source we pass all the right
...
flags to the compiler so it obeys the same ABI as the rest of the kernel.
Remove the hacks used to work around the abi differences (using %s7 as
curlwp) intruduced for the binary hal.
2009-03-24 21:36:46 +00:00
mrg
7c9a97ab4a
initialise some variables whined about by gcc -O3.
2009-01-06 06:03:57 +00:00
christos
d1018e8baf
KNF.
...
NB: These were not imported properly. The Id RCS keyword lines were not
cleaned up, and there were no NetBSD keywords added. Perhaps Re-import
correctly?
2008-12-31 14:08:46 +00:00
phil
806ddf688c
Add a return HAL_OK in the AR_EEP_MACADDR case. Without this
...
it falls through to the next case and returns a register value.
Found by Aran Clauson.
2008-12-31 07:24:01 +00:00
alc
0a5dd2a285
Restore a valid call to ath_hal_wait() and wrap the if() statement with curly bracket.
...
Fix build wrt the original HAL, prevent the next call to OS_REG_WRITE() to be skipped
if HALDEBUG() is not defined.
pointed out by <sam>
2008-12-13 05:16:28 +00:00
alc
c3d9f7dbb1
Don't display the global kernel symbol `version' but the *eeprom* version, as done in the original code.
2008-12-12 21:31:49 +00:00
cegger
9d34af294b
make i386 ALL kernel compile
2008-12-12 21:01:59 +00:00
alc
26688c3395
Add HAL standard option and file list.
...
I forgot to `cvs add' them :).
2008-12-11 14:11:43 +00:00
alc
b297f5e6b5
Import HAL's OS dependent code and config(9)'s interface header.
2008-12-11 05:37:40 +00:00
alc
a9d4fb0bb4
Fix the build of the new HAL:
...
- constify link-set iterator
- do RF lookup only if any RF has been built
- fix global symbols shadowing
- const static -> static const
- don't redefine `uintptr_t'
- use `unsigned long' in __DECONST()
- fix AH_RF() macros
- __va_list -> va_list
- add missing struct trailing element
- add a few #ifdef AH_DEBUG block to avoid empty if() statement
- some other nits...
2008-12-11 05:30:29 +00:00
alc
1e10b93de9
Import Atheros HAL, from FreeBSD (revision 185521)
2008-12-11 04:46:22 +00:00