Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
ani.h File Reference

Go to the source code of this file.

Data Structures

struct  ath9k_mib_stats
 
struct  ath9k_ani_default
 
struct  ar5416AniState
 
struct  ar5416Stats
 

Macros

#define HAL_PROCESS_ANI   0x00000001
 
#define DO_ANI(ah)   (((ah)->proc_phyerr & HAL_PROCESS_ANI) && ah->curchan)
 
#define BEACON_RSSI(ahp)   (ahp->stats.avgbrssi)
 
#define ATH9K_ANI_OFDM_TRIG_HIGH   3500
 
#define ATH9K_ANI_OFDM_TRIG_HIGH_BELOW_INI   1000
 
#define ATH9K_ANI_OFDM_TRIG_LOW   400
 
#define ATH9K_ANI_OFDM_TRIG_LOW_ABOVE_INI   900
 
#define ATH9K_ANI_CCK_TRIG_HIGH   600
 
#define ATH9K_ANI_CCK_TRIG_LOW   300
 
#define ATH9K_ANI_NOISE_IMMUNE_LVL   4
 
#define ATH9K_ANI_USE_OFDM_WEAK_SIG   true
 
#define ATH9K_ANI_CCK_WEAK_SIG_THR   false
 
#define ATH9K_ANI_SPUR_IMMUNE_LVL   3
 
#define ATH9K_ANI_FIRSTEP_LVL   2
 
#define ATH9K_ANI_RSSI_THR_HIGH   40
 
#define ATH9K_ANI_RSSI_THR_LOW   7
 
#define ATH9K_ANI_PERIOD   300
 
#define ATH9K_ANI_POLLINTERVAL   1000
 
#define HAL_NOISE_IMMUNE_MAX   4
 
#define HAL_SPUR_IMMUNE_MAX   7
 
#define HAL_FIRST_STEP_MAX   2
 
#define ATH9K_SIG_FIRSTEP_SETTING_MIN   0
 
#define ATH9K_SIG_FIRSTEP_SETTING_MAX   20
 
#define ATH9K_SIG_SPUR_IMM_SETTING_MIN   0
 
#define ATH9K_SIG_SPUR_IMM_SETTING_MAX   22
 
#define ah_mibStats   stats.ast_mibstats
 

Enumerations

enum  ath9k_ani_cmd {
  ATH9K_ANI_PRESENT = 0x1, ATH9K_ANI_NOISE_IMMUNITY_LEVEL = 0x2, ATH9K_ANI_OFDM_WEAK_SIGNAL_DETECTION = 0x4, ATH9K_ANI_CCK_WEAK_SIGNAL_THR = 0x8,
  ATH9K_ANI_FIRSTEP_LEVEL = 0x10, ATH9K_ANI_SPUR_IMMUNITY_LEVEL = 0x20, ATH9K_ANI_MODE = 0x40, ATH9K_ANI_PHYERR_RESET = 0x80,
  ATH9K_ANI_MRC_CCK = 0x100, ATH9K_ANI_ALL = 0xfff
}
 

Functions

void ath9k_enable_mib_counters (struct ath_hw *ah)
 
void ath9k_hw_disable_mib_counters (struct ath_hw *ah)
 
void ath9k_hw_ani_setup (struct ath_hw *ah)
 
void ath9k_hw_ani_init (struct ath_hw *ah)
 

Macro Definition Documentation

#define ah_mibStats   stats.ast_mibstats

Definition at line 146 of file ani.h.

#define ATH9K_ANI_CCK_TRIG_HIGH   600

Definition at line 35 of file ani.h.

#define ATH9K_ANI_CCK_TRIG_LOW   300

Definition at line 38 of file ani.h.

#define ATH9K_ANI_CCK_WEAK_SIG_THR   false

Definition at line 42 of file ani.h.

#define ATH9K_ANI_FIRSTEP_LVL   2

Definition at line 46 of file ani.h.

#define ATH9K_ANI_NOISE_IMMUNE_LVL   4

Definition at line 40 of file ani.h.

#define ATH9K_ANI_OFDM_TRIG_HIGH   3500

Definition at line 27 of file ani.h.

#define ATH9K_ANI_OFDM_TRIG_HIGH_BELOW_INI   1000

Definition at line 28 of file ani.h.

#define ATH9K_ANI_OFDM_TRIG_LOW   400

Definition at line 31 of file ani.h.

#define ATH9K_ANI_OFDM_TRIG_LOW_ABOVE_INI   900

Definition at line 32 of file ani.h.

#define ATH9K_ANI_PERIOD   300

Definition at line 51 of file ani.h.

#define ATH9K_ANI_POLLINTERVAL   1000

Definition at line 54 of file ani.h.

#define ATH9K_ANI_RSSI_THR_HIGH   40

Definition at line 48 of file ani.h.

#define ATH9K_ANI_RSSI_THR_LOW   7

Definition at line 49 of file ani.h.

#define ATH9K_ANI_SPUR_IMMUNE_LVL   3

Definition at line 44 of file ani.h.

#define ATH9K_ANI_USE_OFDM_WEAK_SIG   true

Definition at line 41 of file ani.h.

#define ATH9K_SIG_FIRSTEP_SETTING_MAX   20

Definition at line 61 of file ani.h.

#define ATH9K_SIG_FIRSTEP_SETTING_MIN   0

Definition at line 60 of file ani.h.

#define ATH9K_SIG_SPUR_IMM_SETTING_MAX   22

Definition at line 63 of file ani.h.

#define ATH9K_SIG_SPUR_IMM_SETTING_MIN   0

Definition at line 62 of file ani.h.

#define BEACON_RSSI (   ahp)    (ahp->stats.avgbrssi)

Definition at line 24 of file ani.h.

#define DO_ANI (   ah)    (((ah)->proc_phyerr & HAL_PROCESS_ANI) && ah->curchan)

Definition at line 22 of file ani.h.

#define HAL_FIRST_STEP_MAX   2

Definition at line 58 of file ani.h.

#define HAL_NOISE_IMMUNE_MAX   4

Definition at line 56 of file ani.h.

#define HAL_PROCESS_ANI   0x00000001

Definition at line 20 of file ani.h.

#define HAL_SPUR_IMMUNE_MAX   7

Definition at line 57 of file ani.h.

Enumeration Type Documentation

Enumerator:
ATH9K_ANI_PRESENT 
ATH9K_ANI_NOISE_IMMUNITY_LEVEL 
ATH9K_ANI_OFDM_WEAK_SIGNAL_DETECTION 
ATH9K_ANI_CCK_WEAK_SIGNAL_THR 
ATH9K_ANI_FIRSTEP_LEVEL 
ATH9K_ANI_SPUR_IMMUNITY_LEVEL 
ATH9K_ANI_MODE 
ATH9K_ANI_PHYERR_RESET 
ATH9K_ANI_MRC_CCK 
ATH9K_ANI_ALL 

Definition at line 67 of file ani.h.

Function Documentation

void ath9k_enable_mib_counters ( struct ath_hw ah)

Definition at line 456 of file ani.c.

void ath9k_hw_ani_init ( struct ath_hw ah)

Definition at line 509 of file ani.c.

void ath9k_hw_ani_setup ( struct ath_hw ah)

Definition at line 492 of file ani.c.

void ath9k_hw_disable_mib_counters ( struct ath_hw ah)

Definition at line 478 of file ani.c.