Skip to content

Commit

Permalink
iwlagn: define valid init calibration mask
Browse files Browse the repository at this point in the history
Use the valid calibration mask for init calibration

Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
  • Loading branch information
Wey-Yi Guy committed Jul 21, 2011
1 parent a21321c commit ad3f712
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions drivers/net/wireless/iwlwifi/iwl-commands.h
Original file line number Diff line number Diff line change
Expand Up @@ -3167,9 +3167,6 @@ enum {

#define IWL_MAX_PHY_CALIBRATE_TBL_SIZE (253)

#define IWL_CALIB_INIT_CFG_ALL cpu_to_le32(0xffffffff)
#define IWL_CALIB_CFG_FLAG_SEND_COMPLETE_NTFY_MSK cpu_to_le32(BIT(0))

/* This enum defines the bitmap of various calibrations to enable in both
* init ucode and runtime ucode through CALIBRATION_CFG_CMD.
*/
Expand All @@ -3187,6 +3184,19 @@ enum iwl_ucode_calib_cfg {
IWL_CALIB_CFG_TX_PWR_IDX = BIT(10),
};

#define IWL_CALIB_INIT_CFG_ALL cpu_to_le32(IWL_CALIB_CFG_RX_BB_IDX | \
IWL_CALIB_CFG_DC_IDX | \
IWL_CALIB_CFG_LO_IDX | \
IWL_CALIB_CFG_TX_IQ_IDX | \
IWL_CALIB_CFG_RX_IQ_IDX | \
IWL_CALIB_CFG_NOISE_IDX | \
IWL_CALIB_CFG_CRYSTAL_IDX | \
IWL_CALIB_CFG_TEMPERATURE_IDX | \
IWL_CALIB_CFG_PAPD_IDX | \
IWL_CALIB_CFG_SENSITIVITY_IDX | \
IWL_CALIB_CFG_TX_PWR_IDX)

#define IWL_CALIB_CFG_FLAG_SEND_COMPLETE_NTFY_MSK cpu_to_le32(BIT(0))

struct iwl_calib_cfg_elmnt_s {
__le32 is_enable;
Expand Down

0 comments on commit ad3f712

Please sign in to comment.