/* *************************************************************************** * Ralink Tech Inc. * 4F, No. 2 Technology 5th Rd. * Science-based Industrial Park * Hsin-chu, Taiwan, R.O.C. * * (c) Copyright 2002-2004, Ralink Technology, Inc. * * All rights reserved. Ralink's source code is an unpublished work and the * use of a copyright notice does not imply otherwise. This source code * contains confidential trade secret material of Ralink Tech. Any attemp * or participation in deciphering, decoding, reverse engineering or in any * way altering the source code is stricitly prohibited, unless the prior * written consent of Ralink Technology, Inc. is obtained. *************************************************************************** Module Name: eeprom.h Abstract: Miniport header file for eeprom related information Revision History: Who When What -------- ---------- ---------------------------------------------- */ #ifndef __FRQCAL_H__ #define __FRQCAL_H__ /* */ /* The frequency calibration control */ /* */ typedef struct _FREQUENCY_CALIBRATION_CONTROL { BOOLEAN bEnableFrequencyCalibration; /* Enable the frequency calibration algorithm */ BOOLEAN bSkipFirstFrequencyCalibration; /* Avoid calibrating frequency at the time the STA is just link-up */ BOOLEAN bApproachFrequency; /* Approach the frequency */ UCHAR AdaptiveFreqOffset; /* Adaptive frequency offset */ CHAR LatestFreqOffsetOverBeacon; /* Latest frequency offset from the beacon */ CHAR BeaconPhyMode; /* Latest frequency offset from the beacon */ } FREQUENCY_CALIBRATION_CONTROL, *PFREQUENCY_CALIBRATION_CONTROL; #define RTMP_FREQ_CAL_DISABLE(__pAd) \ __pAd->FreqCalibrationCtrl.bEnableFrequencyCalibration = FALSE; /* */ /* Invalid frequency offset */ /* */ #define INVALID_FREQUENCY_OFFSET -128 /* */ /* The upperbound/lowerbound of the frequency offset */ /* */ #define UPPERBOUND_OF_FREQUENCY_OFFSET 127 #define LOWERBOUND_OF_FREQUENCY_OFFSET -127 /*#ifdef RT5390 */ /* */ /* The trigger point of the high/low frequency */ /* */ #define HIGH_FREQUENCY_TRIGGER_POINT_OFDM 20 #define LOW_FREQUENCY_TRIGGER_POINT_OFDM -20 #define HIGH_FREQUENCY_TRIGGER_POINT_CCK 4 #define LOW_FREQUENCY_TRIGGER_POINT_CCK -4 #ifdef MT7601 #define MT7601_HIGH_FREQUENCY_TRIGGER_POINT_CCK 19 #define MT7601_LOW_FREQUENCY_TRIGGER_POINT_CCK -19 #define MT7601_DECREASE_FREQUENCY_OFFSET_CCK 5 #define MT7601_INCREASE_FREQUENCY_OFFSET_CCK -5 #define MT7601_HIGH_FREQUENCY_TRIGGER_POINT_OFDM20 102 #define MT7601_LOW_FREQUENCY_TRIGGER_POINT_OFDM20 -102 #define MT7601_DECREASE_FREQUENCY_OFFSET_OFDM20 32 #define MT7601_INCREASE_FREQUENCY_OFFSET_OFDM20 -32 #define MT7601_HIGH_FREQUENCY_TRIGGER_POINT_OFDM40 82 #define MT7601_LOW_FREQUENCY_TRIGGER_POINT_OFDM40 -82 #define MT7601_DECREASE_FREQUENCY_OFFSET_OFDM40 20 #define MT7601_INCREASE_FREQUENCY_OFFSET_OFDM40 -20 #endif /* MT7601 */ /* */ /* The trigger point of decreasng/increasing the frequency offset */ /* */ #define DECREASE_FREQUENCY_OFFSET_OFDM 10 #define INCREASE_FREQUENCY_OFFSET_OFDM -10 #define DECREASE_FREQUENCY_OFFSET_CCK 2 #define INCREASE_FREQUENCY_OFFSET_CCK -2 /*#endif // RT5390 */ /* */ /* The trigger point of decreasng/increasing the frequency offset */ /* */ #define DECREASE_FREQUENCY_OFFSET 3 #define INCREASE_FREQUENCY_OFFSET -3 /* */ /* Frequency calibration period */ /* */ #define FREQUENCY_CALIBRATION_PERIOD 100 #endif /* __FRQCAL_H__ */