1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-12 14:29:28 +00:00

Add the 11n chipset RF frontends to the linker set, even though they're not

attached this way.

The AR5212 based NICs have a variety of RF frontends, so there's a linker set
which the AR5212 attach routine calls. The same framework is used for the
AR5416 and later but as there's a fixed RF frontend for each 11n NIC, it
is just directly attached.

However in the case of compiling a cut down HAL (eg _just_ AR9130 WMAC support),
the linker set ends up being empty and this causes the compile to fail.

So this is just a workaround for that - it means those users who wish an 11n
only HAL can compile the 11n chipsets and RF frontend they need, and just
"ath_ar5212" for the AR5212/AR5416 common code, and it'll just work.

Sponsored by:	Hobnob, Inc.
This commit is contained in:
Adrian Chadd 2011-12-15 00:59:11 +00:00
parent 46a924c4c8
commit 4473d4da67
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228517
4 changed files with 32 additions and 0 deletions

View File

@ -549,3 +549,11 @@ ar2133RfAttach(struct ath_hal *ah, HAL_STATUS *status)
return AH_TRUE;
}
static HAL_BOOL
ar2133Probe(struct ath_hal *ah)
{
return (AR_SREV_OWL(ah) || AR_SREV_HOWL(ah) || AR_SREV_SOWL(ah));
}
AH_RF(RF2133, ar2133Probe, ar2133RfAttach);

View File

@ -384,3 +384,11 @@ ar9280RfAttach(struct ath_hal *ah, HAL_STATUS *status)
return AH_TRUE;
}
static HAL_BOOL
ar9280RfProbe(struct ath_hal *ah)
{
return (AR_SREV_MERLIN(ah));
}
AH_RF(RF9280, ar9280RfProbe, ar9280RfAttach);

View File

@ -77,3 +77,11 @@ ar9285RfAttach(struct ath_hal *ah, HAL_STATUS *status)
return AH_TRUE;
}
static HAL_BOOL
ar9285RfProbe(struct ath_hal *ah)
{
return (AR_SREV_KITE(ah));
}
AH_RF(RF9285, ar9285RfProbe, ar9285RfAttach);

View File

@ -390,3 +390,11 @@ ar9287RfAttach(struct ath_hal *ah, HAL_STATUS *status)
return AH_TRUE;
}
static HAL_BOOL
ar9287RfProbe(struct ath_hal *ah)
{
return (AR_SREV_KIWI(ah));
}
AH_RF(RF9287, ar9287RfProbe, ar9287RfAttach);