iPXE
|
Go to the source code of this file.
Data Structures | |
struct | ani_ofdm_level_entry |
struct | ani_cck_level_entry |
Macros | |
#define | ATH9K_ANI_OFDM_NUM_LEVEL ARRAY_SIZE(ofdm_level_table) |
#define | ATH9K_ANI_OFDM_MAX_LEVEL (ATH9K_ANI_OFDM_NUM_LEVEL-1) |
#define | ATH9K_ANI_OFDM_DEF_LEVEL 3 /* default level - matches the INI settings */ |
#define | ATH9K_ANI_CCK_NUM_LEVEL ARRAY_SIZE(cck_level_table) |
#define | ATH9K_ANI_CCK_MAX_LEVEL (ATH9K_ANI_CCK_NUM_LEVEL-1) |
#define | ATH9K_ANI_CCK_MAX_LEVEL_LOW_RSSI (ATH9K_ANI_CCK_NUM_LEVEL-3) |
#define | ATH9K_ANI_CCK_DEF_LEVEL 2 /* default level - matches the INI settings */ |
Variables | |
static const struct ani_ofdm_level_entry | ofdm_level_table [] |
static const struct ani_cck_level_entry | cck_level_table [] |
#define ATH9K_ANI_OFDM_NUM_LEVEL ARRAY_SIZE(ofdm_level_table) |
Definition at line 53 of file ath9k_ani.c.
#define ATH9K_ANI_OFDM_MAX_LEVEL (ATH9K_ANI_OFDM_NUM_LEVEL-1) |
Definition at line 55 of file ath9k_ani.c.
#define ATH9K_ANI_OFDM_DEF_LEVEL 3 /* default level - matches the INI settings */ |
Definition at line 57 of file ath9k_ani.c.
#define ATH9K_ANI_CCK_NUM_LEVEL ARRAY_SIZE(cck_level_table) |
Definition at line 99 of file ath9k_ani.c.
#define ATH9K_ANI_CCK_MAX_LEVEL (ATH9K_ANI_CCK_NUM_LEVEL-1) |
Definition at line 101 of file ath9k_ani.c.
#define ATH9K_ANI_CCK_MAX_LEVEL_LOW_RSSI (ATH9K_ANI_CCK_NUM_LEVEL-3) |
Definition at line 103 of file ath9k_ani.c.
#define ATH9K_ANI_CCK_DEF_LEVEL 2 /* default level - matches the INI settings */ |
Definition at line 105 of file ath9k_ani.c.
|
static |
Definition at line 108 of file ath9k_ani.c.
References ah, AR_SREV_9300_20_OR_LATER, and modparam_force_new_ani.
Referenced by ath9k_ani_reset(), ath9k_ani_restart(), ath9k_hw_ani_cck_err_trigger(), ath9k_hw_ani_init(), ath9k_hw_ani_lower_immunity(), ath9k_hw_ani_ofdm_err_trigger(), and ath9k_hw_ani_read_counters().
|
static |
Definition at line 113 of file ath9k_ani.c.
References ath9k_mib_stats::ackrcv_bad, ah, AR_ACK_FAIL, AR_BEACON_CNT, AR_FCS_FAIL, AR_RTS_FAIL, AR_RTS_OK, ath9k_mib_stats::beacons, ath9k_mib_stats::fcs_bad, REG_READ, ath9k_mib_stats::rts_bad, and ath9k_mib_stats::rts_good.
Referenced by ath9k_ani_restart().
|
static |
Definition at line 123 of file ath9k_ani.c.
References ah, AR_PHY_COUNTMAX, AR_PHY_ERR_1, AR_PHY_ERR_2, AR_PHY_ERR_CCK_TIMING, AR_PHY_ERR_MASK_1, AR_PHY_ERR_MASK_2, AR_PHY_ERR_OFDM_TIMING, ath9k_hw_update_mibstats(), ar5416AniState::cckPhyErrCount, DBG2, DO_ANI, ENABLE_REGWRITE_BUFFER, ar5416AniState::listenTime, ar5416AniState::ofdmPhyErrCount, REG_WRITE, REGWRITE_BUFFER_FLUSH, and use_new_ani().
Referenced by ath9k_ani_reset(), ath9k_ani_reset_old(), ath9k_hw_ani_init(), ath9k_hw_ani_monitor(), and ath9k_hw_ani_read_counters().
|
static |
Definition at line 157 of file ath9k_ani.c.
References ah, ATH9K_ANI_FIRSTEP_LEVEL, ATH9K_ANI_NOISE_IMMUNITY_LEVEL, ATH9K_ANI_OFDM_WEAK_SIGNAL_DETECTION, ATH9K_ANI_SPUR_IMMUNITY_LEVEL, ath9k_hw_ani_control(), BEACON_RSSI, ar5416AniState::firstepLevel, HAL_FIRST_STEP_MAX, HAL_NOISE_IMMUNE_MAX, HAL_SPUR_IMMUNE_MAX, NET80211_BAND_2GHZ, ar5416AniState::noiseImmunityLevel, ar5416AniState::ofdmWeakSigDetect, ar5416AniState::rssiThrHigh, ar5416AniState::rssiThrLow, and ar5416AniState::spurImmunityLevel.
Referenced by ath9k_hw_ani_ofdm_err_trigger().
|
static |
Definition at line 217 of file ath9k_ani.c.
References ah, ATH9K_ANI_FIRSTEP_LEVEL, ATH9K_ANI_NOISE_IMMUNITY_LEVEL, ath9k_hw_ani_control(), BEACON_RSSI, ar5416AniState::firstepLevel, HAL_FIRST_STEP_MAX, HAL_NOISE_IMMUNE_MAX, NET80211_BAND_2GHZ, ar5416AniState::noiseImmunityLevel, and ar5416AniState::rssiThrLow.
Referenced by ath9k_hw_ani_cck_err_trigger().
Definition at line 244 of file ath9k_ani.c.
References ah, ATH9K_ANI_FIRSTEP_LEVEL, ATH9K_ANI_SPUR_IMMUNITY_LEVEL, ath9k_hw_ani_control(), BEACON_RSSI, cck_level_table, ar5416AniState::cckNoiseImmunityLevel, DBG2, ani_ofdm_level_entry::fir_step_level, ani_cck_level_entry::fir_step_level, ar5416AniState::firstepLevel, ar5416AniState::noiseFloor, ofdm_level_table, ar5416AniState::ofdmNoiseImmunityLevel, ar5416AniState::rssiThrHigh, ar5416AniState::rssiThrLow, ani_ofdm_level_entry::spur_immunity_level, and ar5416AniState::spurImmunityLevel.
Referenced by ath9k_ani_reset(), ath9k_hw_ani_lower_immunity(), and ath9k_hw_ani_ofdm_err_trigger().
|
static |
Definition at line 275 of file ath9k_ani.c.
References ah, ATH9K_ANI_OFDM_MAX_LEVEL, ath9k_hw_ani_ofdm_err_trigger_old(), ath9k_hw_set_ofdm_nil(), DO_ANI, ar5416AniState::ofdmNoiseImmunityLevel, and use_new_ani().
Referenced by ath9k_hw_ani_monitor().
Definition at line 296 of file ath9k_ani.c.
References ah, AR_SREV_9300_20_OR_LATER, AR_SREV_9485, ATH9K_ANI_CCK_MAX_LEVEL_LOW_RSSI, ATH9K_ANI_FIRSTEP_LEVEL, ATH9K_ANI_MRC_CCK, ath9k_hw_ani_control(), BEACON_RSSI, cck_level_table, ar5416AniState::cckNoiseImmunityLevel, DBG2, ani_ofdm_level_entry::fir_step_level, ani_cck_level_entry::fir_step_level, ar5416AniState::firstepLevel, ani_cck_level_entry::mrc_cck_on, ar5416AniState::mrcCCKOff, ar5416AniState::noiseFloor, ofdm_level_table, ar5416AniState::ofdmNoiseImmunityLevel, ar5416AniState::rssiThrHigh, and ar5416AniState::rssiThrLow.
Referenced by ath9k_ani_reset(), ath9k_hw_ani_cck_err_trigger(), and ath9k_hw_ani_lower_immunity().
|
static |
Definition at line 334 of file ath9k_ani.c.
References ah, ATH9K_ANI_CCK_MAX_LEVEL, ath9k_hw_ani_cck_err_trigger_old(), ath9k_hw_set_cck_nil(), ar5416AniState::cckNoiseImmunityLevel, DO_ANI, and use_new_ani().
Referenced by ath9k_hw_ani_monitor().
|
static |
Definition at line 352 of file ath9k_ani.c.
References ah, ATH9K_ANI_FIRSTEP_LEVEL, ATH9K_ANI_NOISE_IMMUNITY_LEVEL, ATH9K_ANI_OFDM_WEAK_SIGNAL_DETECTION, ATH9K_ANI_SPUR_IMMUNITY_LEVEL, ath9k_hw_ani_control(), BEACON_RSSI, ar5416AniState::firstepLevel, ar5416AniState::noiseImmunityLevel, ar5416AniState::ofdmWeakSigDetect, ar5416AniState::rssiThrHigh, ar5416AniState::rssiThrLow, and ar5416AniState::spurImmunityLevel.
Referenced by ath9k_hw_ani_lower_immunity().
|
static |
Definition at line 401 of file ath9k_ani.c.
References ah, ath9k_hw_ani_lower_immunity_old(), ath9k_hw_set_cck_nil(), ath9k_hw_set_ofdm_nil(), ar5416AniState::cckNoiseImmunityLevel, ar5416AniState::ofdmNoiseImmunityLevel, ar5416AniState::ofdmsTurn, and use_new_ani().
Referenced by ath9k_hw_ani_monitor().
|
static |
Definition at line 424 of file ath9k_ani.c.
References ah, AR_PHY_ERR_CCK_TIMING, AR_PHY_ERR_MASK_1, AR_PHY_ERR_MASK_2, AR_PHY_ERR_OFDM_TIMING, ATH9K_ANI_CCK_WEAK_SIGNAL_THR, ATH9K_ANI_FIRSTEP_LEVEL, ATH9K_ANI_NOISE_IMMUNITY_LEVEL, ATH9K_ANI_OFDM_WEAK_SIGNAL_DETECTION, ath9k_ani_restart(), ATH9K_ANI_SPUR_IMMUNITY_LEVEL, ath9k_hw_ani_control(), ath9k_hw_getrxfilter(), ath9k_hw_setrxfilter(), ATH9K_RX_FILTER_PHYERR, ar5416AniState::cckWeakSigThreshold, DO_ANI, ENABLE_REGWRITE_BUFFER, ar5416AniState::firstepLevel, ar5416AniState::noiseImmunityLevel, ar5416AniState::ofdmWeakSigDetect, REG_WRITE, REGWRITE_BUFFER_FLUSH, and ar5416AniState::spurImmunityLevel.
Referenced by ath9k_ani_reset().
void ath9k_ani_reset | ( | struct ath_hw * | ah, |
int | is_scanning | ||
) |
Definition at line 466 of file ath9k_ani.c.
References ah, AR_PHY_ERR_CCK_TIMING, AR_PHY_ERR_MASK_1, AR_PHY_ERR_MASK_2, AR_PHY_ERR_OFDM_TIMING, ATH9K_ANI_CCK_DEF_LEVEL, ATH9K_ANI_MODE, ATH9K_ANI_OFDM_DEF_LEVEL, ath9k_ani_reset_old(), ath9k_ani_restart(), ath9k_hw_set_cck_nil(), ath9k_hw_set_ofdm_nil(), ar5416AniState::cckNoiseImmunityLevel, ath9k_channel::chan, DBG, DBG2, DO_ANI, ENABLE_REGWRITE_BUFFER, ar5416AniState::ofdmNoiseImmunityLevel, REG_WRITE, REGWRITE_BUFFER_FLUSH, and use_new_ani().
Referenced by ath9k_hw_startpcureceive().
|
static |
Definition at line 536 of file ath9k_ani.c.
References ah, AR_PHY_COUNTMAX, AR_PHY_ERR_1, AR_PHY_ERR_2, AR_PHY_ERR_CCK_TIMING, AR_PHY_ERR_MASK_1, AR_PHY_ERR_MASK_2, AR_PHY_ERR_OFDM_TIMING, ath9k_ani_restart(), ath9k_hw_common(), ath_hw_cycle_counters_update(), ath_hw_get_listen_time(), ar5416AniState::cckPhyErrCount, common, DBG2, ar5416AniState::listenTime, ar5416AniState::ofdmPhyErrCount, REG_READ, REG_WRITE, and use_new_ani().
Referenced by ath9k_hw_ani_monitor().
void ath9k_hw_ani_monitor | ( | struct ath_hw * | ah, |
struct ath9k_channel *chan | __unused | ||
) |
Definition at line 597 of file ath9k_ani.c.
References ah, ath9k_ani_restart(), ath9k_hw_ani_cck_err_trigger(), ath9k_hw_ani_lower_immunity(), ath9k_hw_ani_ofdm_err_trigger(), ath9k_hw_ani_read_counters(), ar5416AniState::cckNoiseImmunityLevel, ar5416AniState::cckPhyErrCount, DBG2, DO_ANI, ar5416AniState::listenTime, ar5416AniState::ofdmNoiseImmunityLevel, ar5416AniState::ofdmPhyErrCount, and ar5416AniState::ofdmsTurn.
Referenced by ath_ani_calibrate().
void ath9k_hw_ani_setup | ( | struct ath_hw * | ah | ) |
void ath9k_hw_ani_init | ( | struct ath_hw * | ah | ) |
Definition at line 664 of file ath9k_ani.c.
References ah, ath9k_channel::ani, AR_SREV_9300_20_OR_LATER, ARRAY_SIZE, ATH9K_ANI_CCK_DEF_LEVEL, ATH9K_ANI_CCK_TRIG_HIGH_NEW, ATH9K_ANI_CCK_TRIG_HIGH_OLD, ATH9K_ANI_CCK_TRIG_LOW_NEW, ATH9K_ANI_CCK_TRIG_LOW_OLD, ATH9K_ANI_CCK_WEAK_SIG_THR, ATH9K_ANI_ENABLE_MRC_CCK, ATH9K_ANI_FIRSTEP_LVL_NEW, ATH9K_ANI_FIRSTEP_LVL_OLD, ATH9K_ANI_OFDM_TRIG_HIGH_NEW, ATH9K_ANI_OFDM_TRIG_HIGH_OLD, ATH9K_ANI_OFDM_TRIG_LOW_NEW, ATH9K_ANI_OFDM_TRIG_LOW_OLD, ATH9K_ANI_PERIOD_NEW, ATH9K_ANI_PERIOD_OLD, ATH9K_ANI_POLLINTERVAL_NEW, ATH9K_ANI_POLLINTERVAL_OLD, ath9k_ani_restart(), ATH9K_ANI_RSSI_THR_HIGH, ATH9K_ANI_RSSI_THR_LOW, ATH9K_ANI_SPUR_IMMUNE_LVL_NEW, ATH9K_ANI_SPUR_IMMUNE_LVL_OLD, ATH9K_ANI_USE_OFDM_WEAK_SIG, ar5416AniState::cckNoiseImmunityLevel, ar5416AniState::cckWeakSigThreshold, ath9k_channel::chan, DBG2, ar5416AniState::firstepLevel, HAL_PROCESS_ANI, ar5416AniState::mrcCCKOff, ar5416AniState::ofdmsTurn, ar5416AniState::ofdmWeakSigDetect, ar5416AniState::rssiThrHigh, ar5416AniState::rssiThrLow, ar5416AniState::spurImmunityLevel, and use_new_ani().
Referenced by ath9k_hw_post_init().
|
static |
Definition at line 40 of file ath9k_ani.c.
Referenced by ath9k_hw_set_cck_nil(), and ath9k_hw_set_ofdm_nil().
|
static |
Definition at line 86 of file ath9k_ani.c.
Referenced by ath9k_hw_set_cck_nil(), and ath9k_hw_set_ofdm_nil().