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.)
This commit is contained in:
Adrian Chadd 2012-01-07 20:13:55 +00:00
parent 38ec0ca81c
commit ac2dae5070
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=229790

View File

@ -22,6 +22,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