diff options
author | Sujith Manoharan <c_manoha@qca.qualcomm.com> | 2013-06-02 23:49:27 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-06-03 15:55:47 -0400 |
commit | 4f4395c692fd74f6ebfb99892e5da3842f70d4c3 (patch) | |
tree | 60c30d77ad38d405c4024a2b69cfb4b5de98f343 /drivers/net | |
parent | e323300d9741d44e6543ece3659671742f93acba (diff) |
ath9k: Set ofdmWeakSigDetect directly
The macros ATH9K_ANI_USE_OFDM_WEAK_SIG can be removed.
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ani.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ani.h | 6 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar5008_phy.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar9003_phy.c | 2 |
4 files changed, 4 insertions, 12 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ani.c b/drivers/net/wireless/ath/ath9k/ani.c index 734e72db039a..ba0bad6728bb 100644 --- a/drivers/net/wireless/ath/ath9k/ani.c +++ b/drivers/net/wireless/ath/ath9k/ani.c | |||
@@ -505,14 +505,10 @@ void ath9k_hw_ani_init(struct ath_hw *ah) | |||
505 | struct ar5416AniState *ani = &chan->ani; | 505 | struct ar5416AniState *ani = &chan->ani; |
506 | 506 | ||
507 | ani->spurImmunityLevel = ATH9K_ANI_SPUR_IMMUNE_LVL; | 507 | ani->spurImmunityLevel = ATH9K_ANI_SPUR_IMMUNE_LVL; |
508 | |||
509 | ani->firstepLevel = ATH9K_ANI_FIRSTEP_LVL; | 508 | ani->firstepLevel = ATH9K_ANI_FIRSTEP_LVL; |
510 | |||
511 | ani->mrcCCK = AR_SREV_9300_20_OR_LATER(ah) ? true : false; | 509 | ani->mrcCCK = AR_SREV_9300_20_OR_LATER(ah) ? true : false; |
512 | |||
513 | ani->ofdmsTurn = true; | 510 | ani->ofdmsTurn = true; |
514 | 511 | ani->ofdmWeakSigDetect = true; | |
515 | ani->ofdmWeakSigDetect = ATH9K_ANI_USE_OFDM_WEAK_SIG; | ||
516 | ani->cckNoiseImmunityLevel = ATH9K_ANI_CCK_DEF_LEVEL; | 512 | ani->cckNoiseImmunityLevel = ATH9K_ANI_CCK_DEF_LEVEL; |
517 | ani->ofdmNoiseImmunityLevel = ATH9K_ANI_OFDM_DEF_LEVEL; | 513 | ani->ofdmNoiseImmunityLevel = ATH9K_ANI_OFDM_DEF_LEVEL; |
518 | } | 514 | } |
diff --git a/drivers/net/wireless/ath/ath9k/ani.h b/drivers/net/wireless/ath/ath9k/ani.h index 07079f28f830..c585e053ce68 100644 --- a/drivers/net/wireless/ath/ath9k/ani.h +++ b/drivers/net/wireless/ath/ath9k/ani.h | |||
@@ -34,11 +34,7 @@ | |||
34 | #define ATH9K_ANI_CCK_TRIG_LOW 300 | 34 | #define ATH9K_ANI_CCK_TRIG_LOW 300 |
35 | 35 | ||
36 | #define ATH9K_ANI_NOISE_IMMUNE_LVL 4 | 36 | #define ATH9K_ANI_NOISE_IMMUNE_LVL 4 |
37 | #define ATH9K_ANI_USE_OFDM_WEAK_SIG true | ||
38 | #define ATH9K_ANI_CCK_WEAK_SIG_THR false | ||
39 | |||
40 | #define ATH9K_ANI_SPUR_IMMUNE_LVL 3 | 37 | #define ATH9K_ANI_SPUR_IMMUNE_LVL 3 |
41 | |||
42 | #define ATH9K_ANI_FIRSTEP_LVL 2 | 38 | #define ATH9K_ANI_FIRSTEP_LVL 2 |
43 | 39 | ||
44 | #define ATH9K_ANI_RSSI_THR_HIGH 40 | 40 | #define ATH9K_ANI_RSSI_THR_HIGH 40 |
@@ -107,7 +103,7 @@ struct ar5416AniState { | |||
107 | u8 mrcCCK; | 103 | u8 mrcCCK; |
108 | u8 spurImmunityLevel; | 104 | u8 spurImmunityLevel; |
109 | u8 firstepLevel; | 105 | u8 firstepLevel; |
110 | u8 ofdmWeakSigDetect; | 106 | bool ofdmWeakSigDetect; |
111 | u32 listenTime; | 107 | u32 listenTime; |
112 | u32 ofdmPhyErrCount; | 108 | u32 ofdmPhyErrCount; |
113 | u32 cckPhyErrCount; | 109 | u32 cckPhyErrCount; |
diff --git a/drivers/net/wireless/ath/ath9k/ar5008_phy.c b/drivers/net/wireless/ath/ath9k/ar5008_phy.c index 391da5ad6a99..92b79a2a003d 100644 --- a/drivers/net/wireless/ath/ath9k/ar5008_phy.c +++ b/drivers/net/wireless/ath/ath9k/ar5008_phy.c | |||
@@ -1251,7 +1251,7 @@ static void ar5008_hw_ani_cache_ini_regs(struct ath_hw *ah) | |||
1251 | /* these levels just got reset to defaults by the INI */ | 1251 | /* these levels just got reset to defaults by the INI */ |
1252 | aniState->spurImmunityLevel = ATH9K_ANI_SPUR_IMMUNE_LVL; | 1252 | aniState->spurImmunityLevel = ATH9K_ANI_SPUR_IMMUNE_LVL; |
1253 | aniState->firstepLevel = ATH9K_ANI_FIRSTEP_LVL; | 1253 | aniState->firstepLevel = ATH9K_ANI_FIRSTEP_LVL; |
1254 | aniState->ofdmWeakSigDetect = ATH9K_ANI_USE_OFDM_WEAK_SIG; | 1254 | aniState->ofdmWeakSigDetect = true; |
1255 | aniState->mrcCCK = false; /* not available on pre AR9003 */ | 1255 | aniState->mrcCCK = false; /* not available on pre AR9003 */ |
1256 | } | 1256 | } |
1257 | 1257 | ||
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_phy.c b/drivers/net/wireless/ath/ath9k/ar9003_phy.c index 2bf6548dd143..94b22cb84535 100644 --- a/drivers/net/wireless/ath/ath9k/ar9003_phy.c +++ b/drivers/net/wireless/ath/ath9k/ar9003_phy.c | |||
@@ -1213,7 +1213,7 @@ static void ar9003_hw_ani_cache_ini_regs(struct ath_hw *ah) | |||
1213 | /* these levels just got reset to defaults by the INI */ | 1213 | /* these levels just got reset to defaults by the INI */ |
1214 | aniState->spurImmunityLevel = ATH9K_ANI_SPUR_IMMUNE_LVL; | 1214 | aniState->spurImmunityLevel = ATH9K_ANI_SPUR_IMMUNE_LVL; |
1215 | aniState->firstepLevel = ATH9K_ANI_FIRSTEP_LVL; | 1215 | aniState->firstepLevel = ATH9K_ANI_FIRSTEP_LVL; |
1216 | aniState->ofdmWeakSigDetect = ATH9K_ANI_USE_OFDM_WEAK_SIG; | 1216 | aniState->ofdmWeakSigDetect = true; |
1217 | aniState->mrcCCK = true; | 1217 | aniState->mrcCCK = true; |
1218 | } | 1218 | } |
1219 | 1219 | ||