diff options
author | adrian <adrian@FreeBSD.org> | 2012-01-07 20:13:55 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2012-01-07 20:13:55 +0000 |
commit | 9fdf403f85bfac6149c9c54846162dd91a7605c4 (patch) | |
tree | d95ae7ae1207937e47809cac1b290431ecd34ecf /sys/dev | |
parent | 2cda06a517500b350d5ccd461a50e6c7933e5ade (diff) | |
download | FreeBSD-src-9fdf403f85bfac6149c9c54846162dd91a7605c4.zip FreeBSD-src-9fdf403f85bfac6149c9c54846162dd91a7605c4.tar.gz |
Commit a temporary workaround for people who are building kernels
where they've disabled all the wireless devices/framework.
This is just a build workaround. If you're actively using wireless,
you must still define AH_SUPPORT_AR5416 as I'm not sure what else
will break!
The real solution is to make the module build depend if AH_SUPPORT_AR5416
is defined, as well as make the 11n code in if_ath_tx.c and if_ath_tx_ht.c
completely optional (maybe depend upon ATH_SUPPORT_11N.)
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ath/ath_hal/ah_desc.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/dev/ath/ath_hal/ah_desc.h b/sys/dev/ath/ath_hal/ah_desc.h index 2ef7b85..b7d4e2d 100644 --- a/sys/dev/ath/ath_hal/ah_desc.h +++ b/sys/dev/ath/ath_hal/ah_desc.h @@ -23,6 +23,17 @@ #include "opt_ah.h" /* NB: required for AH_SUPPORT_AR5416 */ /* + * For now, define this for the structure definitions. + * Because of how the HAL / driver module currently builds, + * it's not very feasible to build the module without + * this defined. The rest of the code (eg in the driver + * body) can work fine with these fields being uninitialised; + * they'll be initialised to 0 anyway. + */ + +#define AH_SUPPORT_AR5416 1 + +/* * Transmit descriptor status. This structure is filled * in only after the tx descriptor process method finds a * ``done'' descriptor; at which point it returns something |