Update the ext channel cycpwr threshold 1 register for the extension
channel when the channel is HT/40. The new ANI code (primarily for the AR9300/AR9400) in ath9k sets this register but the ANI code for the previous 11n chips didn't set this. Unlike ath9k, only set this for HT/40 channels. Obtained From: ath9k
This commit is contained in:
parent
d96fd07637
commit
b657b11d8d
@ -296,6 +296,12 @@ ar5416AniControl(struct ath_hal *ah, HAL_ANI_CMD cmd, int param)
|
||||
}
|
||||
OS_REG_RMW_FIELD(ah, AR_PHY_TIMING5,
|
||||
AR_PHY_TIMING5_CYCPWR_THR1, params->cycPwrThr1[level]);
|
||||
|
||||
/* Only set the ext channel cycpwr_thr1 field for ht/40 */
|
||||
if (IEEE80211_IS_CHAN_HT40(AH_PRIVATE(ah)->ah_curchan))
|
||||
OS_REG_RMW_FIELD(ah, AR_PHY_EXT_CCA,
|
||||
AR_PHY_EXT_TIMING5_CYCPWR_THR1, params->cycPwrThr1[level]);
|
||||
|
||||
if (level > aniState->spurImmunityLevel)
|
||||
ahp->ah_stats.ast_ani_spurup++;
|
||||
else if (level < aniState->spurImmunityLevel)
|
||||
|
@ -100,6 +100,13 @@
|
||||
#define AR_PHY_EXT_MINCCA_PWR_S 23
|
||||
#define AR_PHY_EXT_CCA_THRESH62 0x007F0000
|
||||
#define AR_PHY_EXT_CCA_THRESH62_S 16
|
||||
/*
|
||||
* This duplicates AR_PHY_EXT_CCA_CYCPWR_THR1; it reads more like
|
||||
* an ANI register this way.
|
||||
*/
|
||||
#define AR_PHY_EXT_TIMING5_CYCPWR_THR1 0x0000FE00
|
||||
#define AR_PHY_EXT_TIMING5_CYCPWR_THR1_S 9
|
||||
|
||||
#define AR9280_PHY_EXT_MINCCA_PWR 0x01FF0000
|
||||
#define AR9280_PHY_EXT_MINCCA_PWR_S 16
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user