28#define AR_PHY_CCA_FILTERWINDOW_LENGTH_INIT 3
29#define AR_PHY_CCA_FILTERWINDOW_LENGTH 5
31#define NUM_NF_READINGS 6
32#define ATH9K_NF_CAL_HIST_MAX 5
40#define INIT_INI_ARRAY(iniarray, array, rows, columns) do { \
41 (iniarray)->ia_array = (u32 *)(array); \
42 (iniarray)->ia_rows = (rows); \
43 (iniarray)->ia_columns = (columns); \
46#define INI_RA(iniarray, row, column) \
47 (((iniarray)->ia_array)[(row) * ((iniarray)->ia_columns) + (column)])
49#define INIT_CAL(_perCal) do { \
50 (_perCal)->calState = CAL_WAITING; \
51 (_perCal)->calNext = NULL; \
54#define INSERT_CAL(_ahp, _perCal) \
56 if ((_ahp)->cal_list_last == NULL) { \
58 (_ahp)->cal_list_last = (_perCal); \
59 ((_ahp)->cal_list_last)->calNext = (_perCal); \
61 ((_ahp)->cal_list_last)->calNext = (_perCal); \
62 (_ahp)->cal_list_last = (_perCal); \
63 (_perCal)->calNext = (_ahp)->cal_list; \
74#define MIN_CAL_SAMPLES 1
75#define MAX_CAL_SAMPLES 64
76#define INIT_LOG_COUNT 5
77#define PER_MIN_LOG_COUNT 2
78#define PER_MAX_LOG_COUNT 10
101#define MAX_PACAL_SKIPCOUNT 8
#define ATH9K_NF_CAL_HIST_MAX
void ath9k_hw_loadnf(struct ath_hw *ah, struct ath9k_channel *chan)
void ath9k_hw_start_nfcal(struct ath_hw *ah, int update)
void ath9k_hw_reset_calibration(struct ath_hw *ah, struct ath9k_cal_list *currCal)
int ath9k_hw_reset_calvalid(struct ath_hw *ah)
int ath9k_hw_getnf(struct ath_hw *ah, struct ath9k_channel *chan)
void ath9k_init_nfcal_hist_buffer(struct ath_hw *ah, struct ath9k_channel *chan)
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
enum ath9k_cal_state calState
const struct ath9k_percal_data * calData
struct ath9k_cal_list * calNext
int16_t nfCalBuffer[ATH9K_NF_CAL_HIST_MAX]
void(* calCollect)(struct ath_hw *)
void(* calPostProc)(struct ath_hw *, u8)