Add a new capability flag to announce that the chip implements LNA mixing

for the RX path.

This is different to the div comb HAL flag, that says it actually
can use this for RX diversity (the "slow" diversity path implemented
but disabled in the AR9285 HAL code.)

Tested:

* AR9285, STA operation
This commit is contained in:
Adrian Chadd 2013-06-05 00:42:04 +00:00
parent bd77565e39
commit d98a3d6936
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=251400
4 changed files with 6 additions and 1 deletions

View File

@ -784,6 +784,8 @@ ath_hal_getcapability(struct ath_hal *ah, HAL_CAPABILITY_TYPE type,
case HAL_CAP_MFP: /* Management frame protection setting */
*result = pCap->halMfpSupport;
return HAL_OK;
case HAL_CAP_RX_LNA_MIXING: /* Hardware uses an RX LNA mixer to map 2 antennas to a 1 stream receiver */
return pCap->halRxUsingLnaMixing ? HAL_OK : HAL_ENOTSUPP;
default:
return HAL_EINVAL;
}

View File

@ -198,6 +198,7 @@ typedef enum {
HAL_CAP_BB_READ_WAR = 244, /* baseband read WAR */
HAL_CAP_SERIALISE_WAR = 245, /* serialise register access on PCI */
HAL_CAP_ENFORCE_TXOP = 246, /* Enforce TXOP if supported */
HAL_CAP_RX_LNA_MIXING = 247, /* RX hardware uses LNA mixing */
} HAL_CAPABILITY_TYPE;
/*

View File

@ -279,7 +279,8 @@ typedef struct {
halAntDivCombSupport : 1,
halAntDivCombSupportOrg : 1,
halRadioRetentionSupport : 1,
halSpectralScanSupport : 1;
halSpectralScanSupport : 1,
halRxUsingLnaMixing : 1;
uint32_t halWirelessModes;
uint16_t halTotalQueues;

View File

@ -525,6 +525,7 @@ ar9285FillCapabilityInfo(struct ath_hal *ah)
pCap->halMbssidAggrSupport = AH_TRUE;
pCap->hal4AddrAggrSupport = AH_TRUE;
pCap->halSpectralScanSupport = AH_TRUE;
pCap->halRxUsingLnaMixing = AH_TRUE;
if (AR_SREV_KITE_12_OR_LATER(ah))
pCap->halPSPollBroken = AH_FALSE;